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
- Put your Doconda API key (dashboard → API keys) in
DOCONDA_API_KEYand your model provider’s key (here,ANTHROPIC_API_KEY). - Install the dependencies.
- Connect the server and ask for the Excel file:
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:readyorfailed. Failed documents are not charged.- Links expire after 5 minutes; the agent gets fresh ones with
get_document.
FAQ
Can it edit an Excel file I already have?
Can it edit an Excel file I already have?
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.Can I run the MCP server locally?
Can I run the MCP server locally?
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.How much does it cost?
How much does it cost?
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.Related
- LangChain: the full guide.
- MCP server: local and remote, and how to authenticate.