Skip to main content

How to Cut MCP Token Usage in Claude Code, Cursor and VS Code

The Didit MCP server lists every tool by default, which costs roughly 50,000 to 115,000 tokens on every request. Add toolsets=core to the URL for about 30 tools, or read_only=true for about 20.

How to Cut MCP Token Usage in Claude Code, Cursor and VS Code

Contents

In this guide

Jump to the part you need.

If your client sends the whole Didit MCP catalog on every request, you pay roughly 50,000 to 115,000 tokens of tool definitions before your first question. The fix is one URL parameter: load core for about 30 tools, or a read-only connection for about 20. This guide is for developers wiring Didit into Claude Code, Cursor, VS Code or Codex. The MCP server is free on every plan. The caveat: a tool you did not load needs one search step before the model can run it.

Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.

Add Didit to Claude · Open Didit in ChatGPT · MCP setup for every client

What each Didit MCP connection loads, and what it costs in context
ConnectionTools listedTokens per requestBest for
No parameter (default)Every tool your role may use, up to 233 on a hosted connection signed in with your Didit userRoughly 50,000 to 115,000, by tokenizerConversations that move across many areas and where context cost does not matter
?toolsets=coreAbout 30About a tenthDaily work: verification sessions, users, businesses, cases, transactions, docs search
?toolsets=core,workflowsCore plus the workflow toolsMore than core, less than everythingBuilding, validating and publishing verification workflows
?read_only=trueAbout 20, read tools onlyLess than a tenthReporting, exploring an account, an agent you do not want to act on its own

Start free in the sandbox at business.didit.me, no sales call. Developers who want the connector first can start at MCP setup for every client and check module prices on the Didit pricing page.

Why the tool list is in your context before the question

An MCP client sends the definition of every listed tool to the model before the first turn. Each definition carries a name, a description and an input schema. A catalog of 233 tools therefore becomes tens of thousands of tokens on every request, even when the agent will call two of them. Two things follow. The tokens are spent before any task context arrives, so long sessions fill earlier. And some clients cap how many tools they accept, so a connection that lists everything can hit that cap.

Didit Academy lesson showing the Didit MCP server connected to Claude
The Didit MCP server connects Claude, Cursor, VS Code, Codex and other clients to one hosted endpoint. Toolsets change what that endpoint lists.

Which toolset to load: the core list and the rest

Add toolsets to the server URL as a comma-separated list. Naming toolsets lists exactly those, so ?toolsets=cases gives you the case tools plus didit_context_get, which every connection gets, and nothing else. Add core when you want the short list as well.

core is the list most work starts from. It covers your organizations and applications, verification sessions (create, find, decide, explain, simulate in the sandbox, read webhook deliveries), finding workflows, analytics and balance, your application API key and webhooks, finding cases, users, businesses and transactions, and the documentation search.

Didit MCP toolsets, what they list, and when to load them
ToolsetWhat it listsLoad it when
coreAbout 30 tools: orgs and apps, sessions, workflow search, analytics and balance, API keys and webhooks, search over cases, users, businesses and transactions, docs searchDefault for day-to-day verification work
sessionsVerification sessions: create, find, decide, review, share, import, PDFs, webhook deliveriesThe whole task is sessions and you also want core for lookups
casesCase management: create, assign, escalate, resolveReview queues and investigations
transactionsTransaction monitoring, wallet screening and rules with backtestingFraud rules, wallet checks, alert triage
workflowsVerification workflows and questionnaires: build, edit, validate, publishYou are editing flows, not running checks
vendorsVendor users and vendor businessesKYB work and per-customer lookups
accountOrganizations, applications, API keys, members, rolesAdmin and setup sessions
billingPlan, credit balance, payment methods, receipts, billing detailsCost reviews
reportsAnalytics, exports, audit logRead-only reporting connections
verificationStandalone verification APIs: ID document, face, AML, proof of address, phone, email, database and business checksServer-to-server checks outside a session
travel_ruleTravel Rule settings, VASP directory, networks, wallet addresses, transfers and messagesVASP data exchange
docsSearch of the Didit documentationA documentation-only agent
allEvery tool your role may use. This is the defaultRare, wide-ranging conversations

The toolsets page in the docs lists the full set, which also includes lists, investigator, webhooks, branding, marketplace, networks and compliance. Every tool, its read, write or destructive type and the role permission it needs is in the tools reference.

A session overview with its warnings in the Didit Business Console
A session with its warnings, the kind of record the core and sessions toolsets read without any other toolset loaded.

Prerequisites

  • A Didit account. Sign in at business.didit.me once before you connect, so the OAuth handshake has a session to attach to.
  • A client that speaks remote HTTP MCP with OAuth: Claude Code, Cursor, VS Code in Copilot agent mode, or the Codex CLI and IDE extension. The per-client walkthroughs are Claude, Cursor, VS Code and Codex.
  • A browser for Log in with Didit. On a machine with no browser, the local server signs in with a device code.
  • Sandbox work is free and unlimited, so you can test a short tool list before it touches a production app.

Step by step: cut the tool list in Claude Code

  1. Add the server with the toolsets parameter on the URL. Keep the quotes: without them the shell can swallow the query string, and the server then lists every tool.

    claude mcp add --transport http didit "https://mcp.didit.me/mcp?toolsets=core"
  2. Start Claude Code and run /mcp. It opens the browser for Log in with Didit. Approve the permissions for the organizations you want the agent to reach.

  3. Confirm the server and its connection state.

    claude mcp list
  4. Add a second, read-only connection for reporting, under its own name so both can coexist. Use & between parameters.

    claude mcp add --transport http didit-reporting "https://mcp.didit.me/mcp?toolsets=core,reports&read_only=true"
  5. Ask a question that proves the short list works:

    Use the Didit MCP server to call didit_context_get and list my organizations and applications.

If you would rather not edit the URL, run every Didit tool through the hosted connector and trim inside the client. Which route fits depends on the client: Claude Code and Cursor take the URL parameter, VS Code takes the URL parameter plus its own tool picker, and Codex can also filter by tool name.

Cursor: one edit in ~/.cursor/mcp.json

Put the toolset in the url value. Keep any servers you already have inside mcpServers.

{
  "mcpServers": {
    "didit": {
      "url": "https://mcp.didit.me/mcp?toolsets=core"
    }
  }
}

On first use Cursor registers itself with Didit and opens the browser for Log in with Didit. The same file works at project level in .cursor/mcp.json. Full walkthrough in the Cursor guide.

VS Code: one edit in .vscode/mcp.json

VS Code uses servers, not mcpServers. Point it at the full /mcp path with the query string.

{
  "servers": {
    "didit": {
      "type": "http",
      "url": "https://mcp.didit.me/mcp?toolsets=core"
    }
  }
}

If Copilot still warns about the number of tools, open the tools picker in the chat input and keep only the Didit groups the task needs. The VS Code guide shows the install link and the command palette route as well.

Codex: one command

codex mcp add didit --url "https://mcp.didit.me/mcp?toolsets=core"

Codex writes the entry to ~/.codex/config.toml, sees that sign-in is needed and starts it. If you cancel, run codex mcp login didit later. Codex can also filter by name, which is a second, client-side cut on top of the toolset:

[mcp_servers.didit]
url = "https://mcp.didit.me/mcp?toolsets=core"
enabled_tools = ["didit_context_get", "didit_session_create", "didit_session_list", "didit_session_get_decision"]

disabled_tools does the reverse. See the Codex guide.

Running the server yourself

Self-hosting takes the same two switches as flags or as environment variables, which helps when you cannot edit the hosted URL.

npx -y @didit-protocol/mcp-server --toolsets=core,workflows --read-only
DIDIT_TOOLSETS=core,workflows
DIDIT_READ_ONLY=true

The self-hosted build still authenticates the user over OAuth, with a device code or a user bearer token for headless runs. Installation and self-hosting notes are in the installation guide.

Expected output: what a short list looks like

  • The client's tool menu shows about 30 Didit tools with ?toolsets=core, or about 20 with ?read_only=true. The full catalog is 233 tools on a hosted connection signed in with your user.
  • didit_context_get is present on every connection and returns your organizations and applications, nested, plus the default org and app when there is only one.
  • Four helper tools appear so nothing is out of reach: didit_tool_search, didit_tool_describe, didit_tool_call_read and didit_tool_call_write. On a read-only connection the write helper is not offered.
  • A write attempt on a read-only connection is refused by the server, every time, even if your client remembers a tool from an earlier connection.
  • A list that can be long answers one page at a time: 20 workflows, 50 of most other things, with limit up to 200 and offset, and count in the answer.

Failure cases and recovery

Common problems after adding a toolset, and the fix
What you seeWhyFix
The tool list is still enormousThe URL reached the server without its query string, usually because the shell dropped it or the client rewrote the URLRe-add the server with the query string in quotes and check the stored entry in the client config
A toolset name seems to do nothingA name the server does not know is ignored, and the connection still worksThe server tells the model which name it ignored and which names are valid. Compare against the toolsets table in the docs and fix the spelling
The model says it has no Didit toolsThe server is installed but the sign-in did not finish, or the server is disabled in the clientLog in at business.didit.me first, then reconnect. Claude Code: run /mcp. Cursor: check the Didit server is enabled in MCP settings
A tool answers with missing_scopeYour role in that organization lacks the permission the tool needsThe error names the permission. Ask an owner or admin to grant it, per roles and permissions
A create or update is refusedYou are on a read-only connection, which is the pointAdd a second entry without read_only for the work that writes
The client warns about the number of toolsA client-side cap, not a Didit limitUse core or read_only=true, or the client's own filter: the VS Code tools picker, Codex enabled_tools
The agent only sees application toolsIt connected with an application API key, which lists 199 tools because it acts as that applicationUse the user sign-in when the agent needs account, billing or compliance tools
Sign-in loopsThe browser session and the connector disagreeLog in at business.didit.me, then restart the server from the client

Inputs and what they change

Parameters and tools that control how much the model sees
InputValueEffect
toolsets on the server URLComma-separated names, for example core,transactionsLists exactly those toolsets. It does not grant or remove a permission, and a tool outside the list still runs when the model calls it by name
read_only on the server URLtrueLists only tools that read, and the server refuses every call that would create, change or delete something
Client-side name filterFor example Codex enabled_toolsThe client never sends the definitions of the tools you excluded
didit_tool_searchA plain-language goal, or a toolset nameFinds a tool by what you want to do. Each match says what it does, its parameters, and whether it reads, writes or is destructive
didit_tool_describeUp to five tool namesReturns the full description and input schema
didit_tool_call_read and didit_tool_call_writeTool name plus argumentsRuns a tool outside the list. The call is checked exactly like a direct call, with the same role permissions

What is free, what bills, and where review stops

The MCP server itself is free on every plan, and so is the workflow orchestrator. What bills is the work the tools trigger: a completed check at its published price. Sandbox testing is free and unlimited, so a short tool list costs you nothing to try.

Review boundaries sit in three places. Every client asks you to confirm write and destructive calls before they run, and billable standalone checks count as writes, so they get that prompt. A read-only connection refuses writes on the server for every call, which holds even if the client remembers a tool. And your role still applies: a toolset decides what is listed, never what you may run, so a permission gap returns missing_scope with the permission named.

One transaction monitoring rule in the Didit Business Console
A transaction monitoring rule. Rules and wallet screening sit behind the transactions toolset, so load it only when the agent works on monitoring.

A worked cost example

Tokens are not on your Didit bill, because the MCP server is free. The checks the agent runs are. Take a month of 1,000 completed KYC checks, each with AML screening, at list prices:

  • Full ID check: ID document verification $0.15 + passive liveness $0.10 + face match 1:1 $0.05 + device and IP analysis $0.03 = $0.33 per completed check.
  • Add AML screening at $0.20: $0.33 + $0.20 = $0.53 per person screened.
  • 1,000 checks without AML: 1,000 x $0.33 = $330.00.
  • 1,000 checks with AML: 1,000 x $0.53 = $530.00.
  • On Growth, 4% off every Didit price: $0.33 x 0.96 = $0.3168, and $0.20 x 0.96 = $0.192, so $0.5088 per person. 1,000 x $0.5088 = $508.80.
  • On Scale, 10% off: $0.297 + $0.18 = $0.477 per person. 1,000 x $0.477 = $477.00.

Now the context side. At 100,000 tokens of tool definitions per request, dropping to a tenth leaves roughly 90,000 tokens per request for task context and conversation. We do not publish a model token price, so that saving lands on your model provider bill, not ours. What we control is the size of the list, and core is the cheapest useful starting point.

Didit Academy lesson explaining credits, auto-recharge and volume discounts
How Didit billing works: credits, auto-recharge and volume discounts. The MCP server is free, and completed checks draw from the same credit balance.

Sources

The next step is the sandbox, not a sales call. Create an organization at business.didit.me, add the Didit server with ?toolsets=core, and run one sandbox session to see the short list and the token count in your own client before you point it at production checks.

Try it

Try this in the sandbox

Run the check this guide describes, free.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

Questions

Frequently asked questions

How many tokens does the Didit MCP server add to every request?

With no parameter the server lists every tool your role may use, up to 233 on a hosted connection signed in with your Didit user, which is roughly 50,000 to 115,000 tokens depending on the model tokenizer. Loading core cuts that to about a tenth, and a read-only connection to less than a tenth. The definitions are sent before your first question, so the cost repeats on every request.

What is in the Didit MCP core toolset?

core lists about 30 tools: your organizations and applications, verification sessions (create, find, decide, explain, simulate in the sandbox, read webhook deliveries), workflow search, analytics and balance, your application API key and webhooks, search over cases, users, businesses and transactions, and documentation search. It is the list most work starts from, and you add one toolset at a time when a task needs more.

Which toolset should I load for verification sessions?

Load core when the session work needs lookups across users, businesses, cases or transactions as well, because core already covers session create, find, decide and explain. Load sessions when the task is only sessions and you want the full session set for review, share, import and PDFs. Combine them with ?toolsets=core,sessions when you want both.

Which toolset should I load for cases?

Load cases for case management: create, assign, escalate and resolve. Naming it lists the case tools plus didit_context_get and nothing else, so add core if the agent also needs to find the sessions behind a case: ?toolsets=core,cases.

Which toolset should I load for transactions?

Load transactions for transaction monitoring, wallet screening and rules with backtesting. Most fraud work also needs to look up sessions or cases, so ?toolsets=core,transactions is the practical combination. Load transactions alone only when the agent is dedicated to monitoring.

Do I lose the tools I did not load?

No. A tool outside your selection still runs when the model calls it by name, with the same role permissions as always. The server also adds four helper tools, didit_tool_search, didit_tool_describe, didit_tool_call_read and didit_tool_call_write, so the model can find and run anything else on demand. The cost of not loading a tool is one extra search step.

Does read-only mode hold if my client remembers a tool?

Yes. A read-only connection lists only tools that read, and the server refuses every call that would create, change or delete something. The refusal happens on the server for every call, so it holds even when your client still has a tool from an earlier connection. To allow changes again, connect without read_only.

Is the Didit MCP server free?

Yes. The MCP server is listed as free on every plan, and so is the workflow orchestrator. You pay for completed checks, such as a full ID check at $0.33 or AML screening at $0.20, from prepaid credit. Sandbox testing is free and unlimited.

Does loading fewer tools make the model pick the wrong tool?

Sometimes, by a small margin. A model that sees every tool picks the right one a little more often than a model that has to search first, which is the trade-off the docs describe. Load everything when a conversation works across many areas and context cost does not matter, and load core plus the toolsets you use most when it does.

My client caps how many tools it accepts. What should I change?

Cut at the server first: ?toolsets=core drops the list to about 30 tools, and ?read_only=true to about 20. If the client still complains, use its own filter, such as the tools picker in VS Code or enabled_tools in Codex. The cap is a client setting, not a Didit limit.

Does a toolset change my permissions?

No. A toolset decides what is listed, not what you may run. Your role in the organization still applies on every call, and a tool that needs a permission you lack returns missing_scope naming that permission. Ask an owner or admin to grant it rather than adding a toolset.

Compliance built in

Audited, certified and attested.

We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center

  • Regulation encoded into your flows

    Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.

  • Ready for AMLR

    Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.

  • Tested in Spain's Treasury sandbox

    Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.

  • Audited, not self-declared

    iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • SOC 2 Type 2
  • ISO 27001
  • iBeta Level 1 and Level 2
  • EU regulator attestation
  • FSM youth protection
  • GDPR
  • EBA remote onboarding
  • MiCA compatible
  • FIDO Alliance member
  • AMLREU AML Regulation ready

Integration · Didit MCP

Run Didit from your own AI agent

Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
  • Run investigationsAsk why a session was declined, review cases, search people and companies.
  • Change rulesCreate payment rules, test them on past data and switch them on.
  • Pull reportsAsk for numbers, exports or the audit log.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.