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

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. If you’d rather not use MCP, turn doconda.tools() into StructuredTool as in the LangGraph guide.

What you get back

  • An Excel file with real formulas (not pasted numbers), assumptions in their own cells and no calculation errors.
  • Its PDF, and status: ready, ready_with_warnings, needs_review or failed (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 the changes use real formulas. Through the remote MCP server, the file is uploaded by URL or as base64.
Yes: { transport: "stdio", command: "npx", args: ["-y", "@doconda/mcp"] } with DOCONDA_API_KEY in env. Locally it can also upload files from your disk.
You pay per delivered document; failed ones are not charged. See pricing.

Keep reading