Extracta AI MCP server for AI agents

Live

BEARER TOKEN

DOCUMENT EXTRACTION

Files & Documents

Extracta AI gives your agent document data extraction in your Extracta account: create extraction templates, read extracted data by batch, classify documents by type, and check your remaining processing credits.

  • Per-user credentials: each call uses the actual user's access token, 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.
Extracta AI
agent · Acme Q3
Run
How many Extracta credits do I have left?
S
extracta_credits_get
131ms
Document agent
You have 1,240 processing credits left. Each credit covers 1 page.
Sources: Extracta account, 1 balance
extracta
1,240 credits
18:29
Message Claude...

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

CALL ANY TOOL
13 tools for document extraction in Extracta AI: create and update extraction templates, read extracted data, set up document classifications, and check credits.
extracta_classification_batch_delete
Delete classification batch
Permanently delete one batch, with its files and results, from an Extracta document classification. Returns status and a confirmation message. Use extracta_classification_files_delete to remove only some files.
Parameters
Name
Type
Required
Description
batch_id
string
Required
Batch ID. Each upload of files (in the Extracta dashboard or API) creates a batch. Example: -OQc1Ab2Cd3Ef4Gh5Ij.
classification_id
string
Required
Classification ID returned by extracta_classification_create. Example: -OQb7Lk2Hn3XyZ9aB1cD.
extracta_classification_batch_results_get
Get classification batch results
extracta_classification_create
Create classification
extracta_classification_delete
Delete classification
extracta_classification_files_delete
Delete classification files
extracta_classification_get
Get classification
extracta_classification_update
Update classification
extracta_credits_get
Get credits
extracta_extraction_batch_results_get
Get extraction batch results
extracta_extraction_create
Create extraction
extracta_extraction_delete
Delete extraction
extracta_extraction_get
Get extraction
extracta_extraction_update
Update extraction
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);

// Extracta AI tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["extracta"], toolNames: [
    "extracta_extraction_get",
    "extracta_extraction_batch_results_get",
    "extracta_credits_get"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Show the settings of my invoice extraction, get the extracted data for the latest batch, and tell me how many credits are left" }] });
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: ["extracta"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Show the settings of my invoice extraction, get the extracted data for the latest batch, and tell me how many credits are left" }],
  tools,
});

// Execute the tool call with the user's vaulted Extracta AI access token
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: ["extracta"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Show the settings of my invoice extraction, get the extracted data for the latest batch, and tell me how many credits are left" }],
  tools,
});

// Tool call runs with the user's vaulted Extracta AI access token
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: ["extracta"] }, pageSize: 100,
});

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

await agent.run("Show the settings of my invoice extraction, get the extracted data for the latest batch, and tell me how many credits are left");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Extracta AI tool. Click to copy, paste into your agent, done.
Extraction
Copy the prompt
Copied
Show the settings of this extraction template.
Copy the prompt
Copied
Get the extracted data for this batch of invoices.
Copy the prompt
Copied
Create an extraction that pulls the invoice number, date, and total from documents.
Classification
Copy the prompt
Copied
Show the document types in this classification.
Copy the prompt
Copied
Get the predicted document types for this batch of files.
Copy the prompt
Copied
Add a receipt document type to this classification.
Credits and cleanup
Copy the prompt
Copied
How many processing credits do I have left?
Copy the prompt
Copied
Update the description of this extraction template.
Copy the prompt
Copied
Permanently delete this old extraction batch.
SEE HOW AUTH WORKS
Each user connects their own Extracta AI access token once, and Scalekit sends it with every call. Tokens stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Extracta AI
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
Extracta AI
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
Extracta AI
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
Extracta AI
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 document and 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 document and 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 Extracta AI access token looks fine in a demo. In production every extraction and classification 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 token
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Extracta AI 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 Extracta AI as the user or through a shared access token?
As the user. Each user connects their own Extracta AI access token once, and Scalekit sends it with every call. Every extraction and classification in your audit trail is attributed to that user, not a shared service account.
Where is the Extracta AI access token stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new access token. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Extracta AI?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the result and settings tools without extracta_extraction_delete and extracta_classification_delete, which permanently delete an extraction or classification with all its batches and results. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Extracta AI 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.
What does the agent read from an extraction?
extracta_extraction_get returns the template's settings and extracta_extraction_batch_results_get returns the extracted data for a batch of documents. Classification works the same way with extracta_classification_get and extracta_classification_batch_results_get.
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"": {
""extracta"": {
""url"": ""https://mcp.scalekit.com/extracta"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.extracta]
url = ""https://mcp.scalekit.com/extracta""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""extracta"": {
""url"": ""https://mcp.scalekit.com/extracta"",
""type"": ""http""
}
}
}