Skip to main content
Connect Doconda’s remote MCP server with langchain-mcp-adapters (Python) or @langchain/mcp-adapters (TypeScript) and pass its tools to create_agent. When you ask for a spreadsheet, the agent calls create_document with format: "xlsx" and its last message carries the links to an Excel file with real formulas and its PDF.

Steps

  1. Put your Doconda API key (dashboard → API keys) in DOCONDA_API_KEY and your model provider’s key (here, ANTHROPIC_API_KEY).
  2. Install the dependencies.
  3. Connect the server and ask for the Excel file:
Any model LangChain supports works. To skip MCP, turn doconda.tools() into StructuredTool objects as in How do I return documents from a LangGraph agent?.

What you get back

create_document returns this summary to the agent:
  • An Excel file with real formulas (not pasted numbers), assumptions labelled where the reader sees them and no calculation errors, plus its PDF.
  • status: ready or failed. Failed documents are not charged.
  • Links expire after 5 minutes; the agent gets fresh ones with get_document.

FAQ

Yes, with edit_document: it changes only what you ask and new values are real formulas. Through the remote MCP server, the agent uploads the file by public URL or as base64.
Yes: { transport: "stdio", command: "npx", args: ["-y", "@doconda/mcp"] } with DOCONDA_API_KEY in env. The local server can also upload files from your disk.
A workbook from a sentence costs €0.15 at fast, €0.50 at standard and €1.50 at best; an edit costs €0.10, €0.30 or €1.00. See pricing.