Docana MCP
Docana's hosted MCP server connects your AI client to your workforce. Create and improve employees, search enterprise knowledge, and manage work in Docana from the conversation you already use. The employees and their configuration stay in Docana, so your team can also use them through connected channels and the API.
Claude, ChatGPT, Cursor, and other clients can connect when they support remote MCP servers. The tools available in a conversation depend on the client, its settings, and your Docana permissions.
Use the connection to:
- Create and improve employees. Describe a workflow, validate the agent specification, and import it into an application. See Build Your AI Workforce.
- Work with your enterprise context. Search documents, organize collections, and review conversations from your AI client.
- Keep one home for the work. Continue in Docana, connect channels for your team, or call the same workflows from your own code.
This page is about using Docana from your AI tools. To give your Docana agents tools from external MCP servers, see MCP Servers.
Connect
The server lives at https://mcp.docana.com/mcp. There are two ways in:
- Sign in with your Docana account. For claude.ai and Claude Desktop: add the connector, sign in, done. No key to create or paste.
- Use a Docana API key. Send it in the
Authorizationheader with theApiKeyscheme (notBearer), and make it a Full access key. Right for Claude Code, Cursor, and anything driven by a config file or running headless.
Either way, the connection acts as you: it can do exactly what your account or key can do, nothing more.
- Claude
- Claude Code
- Cursor
- Other clients
Works on claude.ai and in the Claude desktop app:
-
Open Settings → Connectors.
-
Click Add custom connector and paste the server URL:
https://mcp.docana.com/mcp -
Click Connect and sign in with your Docana account.
To disconnect later, remove the connector from the same Connectors settings.
One command:
claude mcp add --transport http docana https://mcp.docana.com/mcp \
--header "Authorization: ApiKey your_api_key_here"
Prefer signing in over managing a key? Drop the header and run /mcp inside Claude Code to authenticate with your Docana account:
claude mcp add --transport http docana https://mcp.docana.com/mcp
Add to .cursor/mcp.json (or via Settings → MCP):
{
"mcpServers": {
"docana": {
"url": "https://mcp.docana.com/mcp",
"headers": { "Authorization": "ApiKey your_api_key_here" }
}
}
}
Any MCP client that supports remote servers over Streamable HTTP works:
- URL:
https://mcp.docana.com/mcp - Auth: OAuth sign-in if the client supports it, or the header
Authorization: ApiKey your_api_key_here
A client that only speaks local (stdio) servers can bridge to the remote one with mcp-remote:
{
"mcpServers": {
"docana": {
"command": "npx",
"args": [
"-y", "mcp-remote", "https://mcp.docana.com/mcp",
"--header", "Authorization: ApiKey your_api_key_here"
]
}
}
}
Things to ask for
Once connected, talk to it normally. Your AI tool picks the right Docana capabilities:
- "Search my knowledge for our refund policy and summarize it."
- "Create a collection called Contracts and upload this PDF into it."
- "Upload https://example.com/handbook.pdf to the Onboarding collection."
- "List my applications and show yesterday's conversation threads for the support app."
- "Build an agent that triages support tickets by urgency and hands the urgent ones to a human."
- "Validate this agent spec and tell me what's wrong with it."
- "Rename document 4231 to signed-contract and archive the old draft."
- "Register this WhatsApp template payload for application 12 and enable it."
What your AI tool can do
| Capability | What's in it |
|---|---|
| Tools | Knowledge, documents, collections, file connectors, conversations, agents, applications, MCP server registrations, and search. Tools carry read-only or destructive annotations; your client decides how to present confirmations. |
| Resources | Your content as attachable context: collections (with their documents), document files, conversation transcripts, and the agent-building guide. |
| Prompts | build-agent: the same expertise Docana's own agent builder works with, so your AI tool designs agents like Docana does. upload-document: teaches the right upload path for where a file lives. |
Uploading files
The upload method depends on where the file is available. The upload-document prompt helps your client choose:
- A URL: Docana downloads it (
https://links, up to 25 MB). - Text it already has: sent inline.
- A local file: sent directly as raw bytes through a one-time upload link (up to 100 MB per request on the hosted platform, and the link reports the exact ceiling), so binaries like PDFs upload cleanly. Bigger files go through the chunked protocol the prompt describes.
Building agents
Ask your connected client to describe the workflow, load the build-agent prompt when supported, validate the specification, and import it into the intended application. Inspect the resulting configuration and run representative test cases before making it available to users. Validation checks the specification; evaluations check behavior.
For clients that cannot run a workflow directly, open it in Docana or use the CLI or API. See Build Your AI Workforce for an example and a review checklist.
Troubleshooting
| Symptom | Fix |
|---|---|
| Custom connector won't finish connecting | The sign-in step opens a Docana login. Complete it in the account you want the connector to act as, then approve access. |
401 on every call (API key) | The header scheme is ApiKey, not Bearer: Authorization: ApiKey your_api_key_here. |
Tools exist but calls return 403 | The account lacks access. Widget-only and Routine-only keys are locked to their endpoints. Use a Full access key. |
| A recently added capability doesn't show up | MCP clients cache the tool list per connection. Reconnect the server (or restart the session). |
Next steps
- Generating API Keys: The key the MCP authenticates with
- API Overview: Integrate from your own backend
- CLI: Work your agents from the terminal