Nanonets MCP server for AI agents

Live

API KEY

DOCUMENT EXTRACTION

AI

Nanonets gives your agent document data extraction in your Nanonets account: send documents to workflows, run OCR models on file URLs, review and correct extracted fields and tables, and verify results.

  • Per-user credentials: each call uses the actual user's API key, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Nanonets
agent · Acme Q3
Run
Send this invoice PDF to my Invoices workflow for extraction.
S
nanonets_document_upload
1350ms
Document processing agent
Sent the invoice at the public URL to the Invoices workflow and returned its document ID and processing status.
Sources: Nanonets workflow, 1 document
nanonets
1 document
18:29
Message Claude...

Tools your document extraction agent reaches for on Nanonets, scoped per user.

CALL ANY TOOL
28 tools for document extraction in Nanonets: upload documents, run OCR models, read extracted fields and tables, correct and verify values, and manage workflows.
nanonets_classification_model_list
List classification model
List the image classification models in the Nanonets account using the v2 API. Returns each model's model_id, model_type, state and categories with counts. Use nanonets_classification_model_list to find classification models. Use nanonets_workflow_list for OCR and extraction workflows.
Parameters
Name
Type
Required
Description
—
No parameters required
nanonets_document_delete
Delete document
nanonets_document_field_add
Add document field
nanonets_document_field_update
Update document field
nanonets_document_field_verify
Verify document field
nanonets_document_get
Get document
nanonets_document_list
List document
nanonets_document_page_get
Get document page
nanonets_document_table_cell_update
Update document table cell
nanonets_document_table_verify
Verify document table
nanonets_document_upload
Upload document
nanonets_document_verify
Verify document
nanonets_ocr_file_approve
Approve ocr file
nanonets_ocr_model_get
Get ocr model
nanonets_ocr_prediction_async_create
Create ocr prediction async
nanonets_ocr_prediction_create
Create ocr prediction
nanonets_ocr_prediction_file_get
Get ocr prediction file
nanonets_ocr_prediction_list
List ocr prediction
nanonets_ocr_prediction_page_get
Get ocr prediction page
nanonets_workflow_create
Create workflow
nanonets_workflow_field_delete
Delete workflow field
nanonets_workflow_field_update
Update workflow field
nanonets_workflow_fields_set
Set workflow fields
nanonets_workflow_get
Get workflow
nanonets_workflow_list
List workflow
nanonets_workflow_settings_update
Update workflow settings
nanonets_workflow_type_list
List workflow type
nanonets_workflow_update
Update workflow
Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Nanonets tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["nanonets"], toolNames: [
    "nanonets_document_upload",
    "nanonets_document_get",
    "nanonets_document_verify"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Send this invoice to my Invoices workflow, show the extracted fields, and mark the document as verified" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["nanonets"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Send this invoice to my Invoices workflow, show the extracted fields, and mark the document as verified" }],
  tools,
});

// Execute the tool call with the user's vaulted Nanonets API key
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["nanonets"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Send this invoice to my Invoices workflow, show the extracted fields, and mark the document as verified" }],
  tools,
});

// Tool call runs with the user's vaulted Nanonets API key
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["nanonets"] }, pageSize: 100,
});

const agent = new Agent({
  name: "document_extraction_agent",
  model: "gemini-2.5-pro",
  instruction: "Nanonets tools scoped to this user",
  tools,
});

await agent.run("Send this invoice to my Invoices workflow, show the extracted fields, and mark the document as verified");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Nanonets tool. Click to copy, paste into your agent, done.
Extract documents
Copy the prompt
Copied
Send this invoice PDF to my Invoices workflow.
Copy the prompt
Copied
Run my OCR model on this file URL and wait for the extracted data.
Copy the prompt
Copied
Queue this scan for background processing by my OCR model.
Review and correct
Copy the prompt
Copied
Show the extracted data for page 1 of this document.
Copy the prompt
Copied
Correct the invoice total on this document page.
Copy the prompt
Copied
Mark every field on this document as verified.
Workflows and models
Copy the prompt
Copied
List my document extraction workflows.
Copy the prompt
Copied
Show the fields the Invoices workflow extracts.
Copy the prompt
Copied
List the files my OCR model processed in the last 7 days.
SEE HOW AUTH WORKS
Each user connects their own Nanonets API key once, and Scalekit sends it with every call. Keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Nanonets
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Nanonets
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Nanonets
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Nanonets
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other AI connectors.
People Ops and HR teams
Offer letter routing agent
Drafts the offer in PandaDoc, blocks on the hiring manager's approval in Slack, then emails the candidate their e-signature link. Every call runs as the recruiter who triggered it, never a shared HR bot.
Test other agents
See the same per-user auth pattern across other AI connectors.
PEOPLE OPS
Offer letter routing agent
Draft the offer in PandaDoc, gate it on hiring manager approval in Slack, then email the candidate their signature link.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Nanonets API key looks fine in a demo. In production every document looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Nanonets today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Nanonets as the user or through a shared key?
As the user. Each user connects their own Nanonets API key once, and Scalekit sends it with every call. Audit logs attribute every upload and correction to that user, not a shared service account.
Where is the Nanonets API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Nanonets?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the list and get tools without nanonets_document_delete, which permanently deletes a processed document and its extracted data, or nanonets_workflow_field_delete. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Nanonets access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
How do the OCR tools differ from the workflow tools?
The OCR tools work with OCR models through the Nanonets v2 API: nanonets_ocr_prediction_create runs a model on a file URL and waits for the extracted data, and nanonets_ocr_prediction_async_create queues the file for background processing. The workflow and document tools work with document extraction workflows, where nanonets_document_upload sends a document by public URL.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""nanonets"": {
""url"": ""https://mcp.scalekit.com/nanonets"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.nanonets]
url = ""https://mcp.scalekit.com/nanonets""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""nanonets"": {
""url"": ""https://mcp.scalekit.com/nanonets"",
""type"": ""http""
}
}
}