mcp-server MCP Server
Assinatura eletrônica no Brasil (ICP-Brasil): envie, assine e verifique com sua conta SignDocs.
mcp-server scores 70 (Good), licensed MIT and written in TypeScript. It can be reached as a remote MCP endpoint. It declares 19 tools. Filed under AI and memory. GitHub shows 1 stars. Package registries report about 135 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
70 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade B
79/100 for listing completeness. Lost points: 15 of 19 tools barely described, short summary.
How quality is graded
Where the 70 comes from
22 + 20 + 4 + 10 + 4 + 10 = 70. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 4 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Remote auth: API key required. Get a key or token from the provider first, then add it as a header in your client config. How remote auth works
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "signdocsbrasil-signdocs-mcp-server": { "command": "npx", "args": [ "-y", "@signdocs-brasil/mcp-server@0.11.0" ], "env": { "SIGNDOCS_CLIENT_ID": "", "SIGNDOCS_CLIENT_SECRET": "YOUR_SIGNDOCS_CLIENT_SECRET", "SIGNDOCS_ENVIRONMENT": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
SIGNDOCS_CLIENT_ID | Required | OAuth2 client ID from app.signdocs.com.br → API |
SIGNDOCS_CLIENT_SECRETSecret | Required | OAuth2 client secret from app.signdocs.com.br → API |
SIGNDOCS_ENVIRONMENT | Optional | Target environment: hml (sandbox) or production |
Tools19Tool docs quality grade D
All capabilitiesAdd a signer, returns signingUrl
Cancel a session
Cancel a transaction
create_envelopetoolMulti-signer envelope
Create single-signer session, returns signingUrl
Presigned download URLs
get_envelopetoolEnvelope details
Combined stamped PDF URL
get_evidencetoolCryptographic evidence
Full session bootstrap
Poll session status
get_transactiontoolTransaction details
About
SignDocs Brasil — MCP Server
A Model Context Protocol server for the SignDocs Brasil e-signature API. It lets MCP-capable AI clients (Claude Desktop, Claude Code, Cursor, …) create signing sessions, manage multi-signer envelopes, upload/download documents, verify signatures, and manage webhooks — the same action catalog as the official n8n, Zapier, and Make.com integrations.
It is a thin adapter over the official @signdocs-brasil/api
SDK, which owns OAuth2 token exchange, caching, retries, and error handling.
Install
npm install -g @signdocs-brasil/mcp-server # or run on demand with npx
Credentials
Create an API credential in the SignDocs dashboard (app.signdocs.com.br → API) and expose it as environment variables:
| Variable | Required | Default | Notes |
|---|---|---|---|
SIGNDOCS_CLIENT_ID | yes | — | OAuth2 client id |
SIGNDOCS_CLIENT_SECRET | yes | — | OAuth2 client secret |
SIGNDOCS_ENVIRONMENT | no | hml | hml (staging) or production |
SIGNDOCS_BASE_URL | no | derived | override the resolved base URL |
SIGNDOCS_SCOPES | no | full set | space-separated scope override |
Start in
hml. HML data expires after ~7 days and is safe for testing. Switch toproductiononly when you intend to create real, legally-binding signatures.
Connect an AI client
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"signdocs": {
"command": "npx",
"args": ["-y", "@signdocs-brasil/mcp-server"],
"env": {
"SIGNDOCS_CLIENT_ID": "your_client_id",
"SIGNDOCS_CLIENT_SECRET": "your_client_secret",
"SIGNDOCS_ENVIRONMENT": "hml"
}
}
}
}
Claude Code:
claude mcp add signdocs \
-e SIGNDOCS_CLIENT_ID=your_client_id \
-e SIGNDOCS_CLIENT_SECRET=your_client_secret \
-e SIGNDOCS_ENVIRONMENT=hml \
-- npx -y @signdocs-brasil/mcp-server
n8n (AI Agent + MCP Client Tool): point the MCP Client at the hosted
endpoint (https://mcp-hml.signdocs.com.br/mcp or https://mcp.signdocs.com.br/mcp),
transport HTTP Streamable, and send your credentials as the headers
X-SignDocs-Client-Id / X-SignDocs-Client-Secret.
Known n8n issue (seen on n8n 2.47.4): add an Edit Fields node after the Chat Trigger. When an AI Agent calls a tool, n8n merges the agent's input item into the tool arguments. Behind a When chat message received trigger, that item carries
action: "sendMessage", and ourcreate_signing_sessiontool has an optionalactionparameter, so when the model leavesactionout, n8n sends"sendMessage"in its place. The call then fails withpath: ["action"], Expected object, received string, although neither the model nor the MCP Client node's Input panel shows anaction. Some models then work around it by inventing anactionobject.Workaround: put an Edit Fields (Set) node between the Chat Trigger and the AI Agent that keeps only
chatInput({{ $json.chatInput }}) andsessionId({{ $json.sessionId }}), with Include Other Input Fields off. The same merge affects any other trigger field whose name matches a tool parameter, so keep the agent's input item down to what the agent actually needs.
Tools
| Tool | Action | Safety |
|---|---|---|
create_signing_session | Create single-signer session, returns signingUrl | ⚠️ binding + quota |
get_signing_session_status | Poll session status | read |
get_signing_session | Full session bootstrap | read |
list_signing_sessions | List by status | read |
cancel_signing_session | Cancel a session | ⚠️ irreversible |
resend_signing_session_otp | Resend OTP | write |
create_envelope | Multi-signer envelope | ⚠️ binding + quota |
get_envelope | Envelope details | read |
add_session_to_envelope | Add a signer, returns signingUrl | ⚠️ binding + quota |
get_envelope_combined_stamp | Combined stamped PDF URL | read |
upload_document | Attach a PDF to a transaction | write |
download_document | Presigned download URLs | read |
list_transactions | Search/list transactions | read |
get_transaction | Transaction details | read |
cancel_transaction | Cancel a transaction | ⚠️ irreversible |
get_evidence | Cryptographic evidence | read |
verify_evidence | Public evidence verification | read |
verify_envelope | Public envelope verification | read |
verify_document | Detect signatures in a PDF | ⚠️ PROD-only + quota |
register_webhook / list_webhooks / delete_webhook / test_webhook | Webhook management | mixed |
⚠️ tools carry destructiveHint annotations and a warning in their
description so compliant clients prompt the human before invoking them.
Annotations are only hints — review your client's auto-approval settings.
Not yet exposed
Trust sessions (/v1/trust-sessions) and resend-invite are not in
@signdocs-brasil/api v1.6.1 yet; they'll be added when the SDK supports them.
Digital ICP-Brasil A1 signing runs through the lower-level transaction/advance
flow rather than a hosted-session profile.
Resources
The server exposes grounding resources the model can read on demand:
signdocs://quickstart— the minimal signing flow + safety notessigndocs://policy-profiles— validpolicyProfilevalues and CUSTOM stepssigndocs://webhook-events— all subscribable event types
Remote HTTP transport (multi-tenant)
The same tools are also served over Streamable HTTP so a single deployment can serve many AI agents/tenants — each authenticates per session with its own SignDocs credentials (no shared secret baked into the server).
npm run start:http # or: signdocs-mcp-http (listens on PORT, default 3000)
# or containerized:
docker build -t signdocs-mcp . && docker run -p 3000:3000 signdocs-mcp
Endpoint: POST /mcp (Streamable HTTP). Auth is required on the MCP
initialize request, via the Authorization header:
Authorization: Bearer <token>— a SignDocs OAuth2 access token (from/oauth2/token), passed straight through to the API.Authorization: Basic base64(clientId:clientSecret)— the server runs theclient_credentialsexchange for you.X-SignDocs-Client-Id+X-SignDocs-Client-Secret— the same client credentials as two plain headers (no base64), for header-only clients that can't transform values.
Pick the environment per session with X-SignDocs-Environment: hml|production
(defaults to the server's configured default).
The server behaves as an OAuth 2.0 Resource Server: it serves
GET /.well-known/oauth-protected-resource (RFC 9728, pointing at the SignDocs
authorization server) and answers an unauthenticated initialize with 401 +
WWW-Authenticate. The SignDocs API remains the authoritative token validator.
GET /healthz is an unauthenticated health probe.
Example client config (Bearer):
{
"mcpServers": {
"signdocs-remote": {
"type": "http",
"url": "https://your-host.example/mcp",
"headers": {
"Authorization": "Bearer <signdocs_access_token>",
"X-SignDocs-Environment": "hml"
}
}
}
}
Server env vars: PORT, HOST, SIGNDOCS_ENVIRONMENT (default env),
MCP_PUBLIC_URL (for resource metadata behind a proxy), MCP_CORS_ORIGIN,
MCP_DNS_REBINDING_PROTECTION=true + MCP_ALLOWED_HOSTS / MCP_ALLOWED_ORIGINS
(recommended in production).
Sessions are held in process memory, so run a single instance or use sticky routing. For multi-instance/serverless, front it with sticky sessions or swap the session map for a shared store + EventStore (resumability). Deploying onto the existing
external-apiLambda + API Gateway as a NestedStack is the intended production path.
AWS Lambda
For serverless hosting, @signdocs-brasil/mcp-server/lambda exports
createLambdaHandler — an API Gateway HTTP API v2 handler that runs the MCP
transport statelessly (one server per invocation, no session store), with the
same Bearer/Basic auth. SignDocs hosts this on mcp-hml.signdocs.com.br /
mcp.signdocs.com.br.
import { createLambdaHandler } from '@signdocs-brasil/mcp-server/lambda';
export const handler = createLambdaHandler({ defaultEnvironment: 'hml' });
Development
npm install
npm run build # tsc → dist/
npm test # vitest (pure unit tests, no network)
npm run inspect # build + launch MCP Inspector against the stdio server
Roadmap
- v0.1: local stdio server, full tool catalog, env credentials.
- v0.2 (this release): remote Streamable-HTTP transport with per-session, per-tenant auth (Bearer passthrough or Basic client-credentials) and OAuth Resource Server discovery. Tool layer is shared between both transports.
- Next: deploy the HTTP transport onto
external-api(Lambda + API Gateway NestedStack); optional edge JWT validation + shared-store sessions for horizontal scale.
Frequently asked questions
What is mcp-server MCP Server?
Assinatura eletrônica no Brasil (ICP-Brasil): envie, assine e verifique com sua conta SignDocs.
How do I install mcp-server MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. mcp-server MCP Server runs locally from the npm package @signdocs-brasil/mcp-server with the command npx -y @signdocs-brasil/mcp-server@0.11.0.
Is mcp-server MCP Server free and open source?
Yes. mcp-server MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does mcp-server MCP Server support remote (HTTP) connections?
Yes. mcp-server MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.
What tools does mcp-server MCP Server provide?
mcp-server MCP Server provides 19 tools, including add_session_to_envelope, cancel_signing_session, cancel_transaction, and create_envelope. See the full tool list for descriptions and parameters.
How is mcp-server MCP Server's trust score calculated?
mcp-server MCP Server scores 70 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.