@doctransit/mcp
v0.2.0
Published
DocTransit MCP server for AI agents
Downloads
44
Readme
@doctransit/mcp
MCP server so Cursor, Claude Desktop, and other agents can create and send DocTransit contracts.
Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"doctransit": {
"command": "npx",
"args": ["-y", "@doctransit/mcp"],
"env": {
"DOCTRANSIT_API_KEY": "dt_your_key_here",
"DOCTRANSIT_BASE_URL": "https://api.doctransit.com/v1"
}
}
}
}Tools
| Tool | Purpose |
|------|---------|
| list_templates | List templates |
| upload_file | Upload a local PDF (path) → file_url |
| create_document | Create from template_id or file_url (+ optional signers) |
| place_fields | Place widgets (x/y are 0–1, top-left); each signer needs signature |
| add_signers | Add human signers to a draft |
| send_document | Send (requires confirm: true) |
| get_document_status | Status + placeholders + next actions |
| get_sign_links | Human sign URLs |
| download_signed_document | Completed PDF URL |
| list_documents | Recent docs |
Ad-hoc PDF flow
upload_filewith a local pathcreate_documentwithfile_url+ signersplace_fields(normalized coords; at least onesignatureper signer)send_documentwithconfirm: true
Humans still sign via DocTransit links.
Local testing (before npm publish)
cd ../doctransit-sdk && npm run build
cd ../doctransit-mcp && npm install && npm run build
# Point MCP config at this package:
# "command": "node", "args": ["/absolute/path/to/doctransit-mcp/dist/server.js"]Get an API key in the DocTransit app: Developer → API Keys.
Published on npm as @doctransit/mcp.
Docs: https://docs.doctransit.com/mcp
