Connect Claude, ChatGPT, Cursor or any MCP client to Croma’s government data sources: the server URL, authentication and every tool exposed over MCP.
Croma exposes every data source as a tool over the Model Context
Protocol (MCP), served over Streamable HTTP
at:
https://api.croma.run/mcp
Any MCP client can connect. Interactive clients (Claude, ChatGPT, Cursor) use
the OAuth flow: add Croma to Claude in one click
and sign in with your Croma account. For your own code you authenticate with
the same API key as the REST API: send it as a bearer token and the tools
run scoped to your organization, sharing the same rate limits
and usage.
The AI SDK can load the Croma tools directly and hand them
to a model for tool calling. Pass your key in the Authorization header of the
transport:
import { experimental_createMCPClient as createMCPClient, generateText } from "ai";import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";import { anthropic } from "@ai-sdk/anthropic";const mcp = await createMCPClient({ transport: new StreamableHTTPClientTransport( new URL("https://api.croma.run/mcp"), { requestInit: { headers: { Authorization: `Bearer ${process.env.CROMA_API_KEY}` }, }, }, ),});// Every data source, exposed as a tool the model can call.const tools = await mcp.tools();const { text } = await generateText({ model: anthropic("claude-opus-4-8"), tools, // Let the model call tools and then answer. Consult the AI SDK docs for the // multi-step setting in your version (`stopWhen` / `maxSteps`). prompt: "Consulta los antecedentes de la Policía Nacional para la cédula 1234567890.",});await mcp.close();console.log(text);
Treat the key as a secret: load it from an environment variable or secrets
manager, never commit it, and close the client (mcp.close()) when you are
done so the connection is released.
Croma Chat Template is an
open-source Next.js chat built on this endpoint with the AI SDK and
AI Elements: streaming responses, tool calls
across every Croma source, a per-message source picker, and optional rate
limiting. Try the live deployment at
chat.usecroma.com, or use the repository’s
one-click Vercel deploy: it asks for your CROMA_API_KEY and a model key and
comes up ready to use.
Tools are named after their source, with underscores instead of hyphens, for
example policia_criminal_records, rues_entity_by_nit, and
rama_judicial_cases_by_radicado. Call mcp.tools() to list the full set with
their input schemas, or browse the API reference for the
fields each one accepts.Async lookups always wait inline over MCP: the tool call returns
the finished result, with no 202, polling, or callbacks.The monitor tools manage monitors for the connected organization:
create_monitor watches a dataset endpoint on a schedule and emails what is new,
list_monitors, get_monitor, update_monitor (rename, re-query, pause, resume),
run_monitor, list_monitor_matches and delete_monitor do the rest.
Monitors from Claude has prompts that work and what the agent
does with them.The submit_feedback tool sends Croma a report when a tool errors, returns a clearly wrong
result, or no tool covers a source you need. See Feedback.A source that answers only to a signed-in person, like
SUNARP, adds three connection tools: sunarp_connect
answers with a secure link where the user enters their own account’s details
in the Croma console, so credentials never pass through the conversation (the
account is checked with the source, encrypted on arrival, never returned),
sunarp_list_connections shows each one’s status and daily allowance, and
sunarp_delete_connection removes one.
DIAN has the same three as dian_muisca_connect,
dian_muisca_list_connections and dian_muisca_delete_connection, and
DIAN Electronic Invoicing as dian_facturacion_connect,
dian_facturacion_list_connections and dian_facturacion_delete_connection. Queries then
run as the organization’s connections on their own. The monitor and connection
tools are the only tools that write.
The AI SDK is one option. Because the endpoint speaks standard MCP over
Streamable HTTP, the official
MCP TypeScript SDK,
LangChain, and other MCP-aware frameworks connect the same way: point them at
https://api.croma.run/mcp and set the Authorization: Bearer header.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Croma API","description":"Build with government data.","colors":{"primary":"#18181b","light":"#fafafa","dark":"#18181b"},"logo":{"light":"https://mintcdn.com/croma/ioi13hN3s-Dcty8-/logo/light.svg?fit=max\u0026auto=format\u0026n=ioi13hN3s-Dcty8-\u0026q=85\u0026s=a4da0b4b29d11b13c5fd3219ead7027b","dark":"https://mintcdn.com/croma/ioi13hN3s-Dcty8-/logo/dark.svg?fit=max\u0026auto=format\u0026n=ioi13hN3s-Dcty8-\u0026q=85\u0026s=c1ebf3bbbe06d4d77db1bb3dd2802508","href":"https://usecroma.com"},"favicon":"https://mintcdn.com/croma/iCQnCBcqUh0vQX4t/favicon.svg?fit=max\u0026auto=format\u0026n=iCQnCBcqUh0vQX4t\u0026q=85\u0026s=00063a47226ac20619a926422d9a254c","appearance":{"default":"system"},"navbar":{"links":[{"href":"https://cal.com/tomas-calle-croma/api-integration?source=docs","label":"Talk to an engineer"}],"primary":{"type":"button","label":"Get API key","href":"https://platform.usecroma.com/sign-up"}},"footer":{"socials":{"website":"https://usecroma.com"}},"fonts":{"heading":{"family":"Ronzino","weight":700,"source":"fonts/Ronzino-Bold.woff","format":"woff"}},"styling":{"eyebrows":"section","codeblocks":"dark","latex":true},"contextual":{"options":["copy"],"display":"header"},"navigation":{"languages":[{"language":"en","default":true,"href":"introduction"},{"language":"es","href":"es/introduction"},{"language":"pt-BR","href":"pt/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"croma","hasAudioNarration":false,"actualSubdomain":"croma","customDomains":["docs.usecroma.com"],"gitSource":{"type":"github","owner":"camilocbarrera","repo":"croma","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aeffb5720a5c82e8b836dea","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"default","tag":"API Reference","count":207},{"language":"default","tag":"Countries","count":197},{"language":"en","tag":"Guides","count":158},{"language":"es","tag":"Guías","count":158},{"language":"pt-BR","tag":"Guias","count":156},{"language":"en","tag":"Countries","count":139},{"language":"es","tag":"Países","count":139},{"language":"pt-BR","tag":"Países","count":139},{"language":"en","tag":"Colombia","count":64},{"language":"es","tag":"Colombia","count":64},{"language":"pt-BR","tag":"Colômbia","count":64},{"language":"default","tag":"Colombia","count":61},{"language":"default","tag":"Courts \u0026 litigation","count":46},{"language":"default","tag":"Chile","count":42},{"language":"default","tag":"Laws \u0026 regulation","count":39},{"language":"en","tag":"Courts \u0026 litigation","count":38},{"language":"es","tag":"Justicia y litigios","count":38},{"language":"pt-BR","tag":"Justiça e litígios","count":38},{"language":"default","tag":"México","count":25},{"language":"en","tag":"Legal API","count":19},{"language":"es","tag":"API Legal","count":19},{"language":"en","tag":"United States","count":18},{"language":"es","tag":"Estados Unidos","count":18},{"language":"pt-BR","tag":"Estados Unidos","count":18},{"language":"default","tag":"Other","count":18},{"language":"default","tag":"El Salvador","count":18},{"language":"default","tag":"Peru","count":18},{"language":"en","tag":"Companies \u0026 tax","count":16},{"language":"en","tag":"Background checks","count":16},{"language":"es","tag":"Empresas e impuestos","count":16},{"language":"es","tag":"Verificación de personas","count":16},{"language":"pt-BR","tag":"Empresas e impostos","count":16},{"language":"pt-BR","tag":"Verificação de pessoas","count":16},{"language":"es","tag":"Primeros pasos","count":14},{"language":"en","tag":"Laws \u0026 regulation","count":13},{"language":"en","tag":"Peru","count":13},{"language":"es","tag":"Leyes y regulación","count":13},{"language":"pt-BR","tag":"Leis e regulação","count":13},{"language":"pt-BR","tag":"Peru","count":13},{"language":"pt-BR","tag":"Chile","count":10}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"nav-logo img,#nav-logo img,.nav-logo img,#navbar img,header a[href] img,img[alt*=\"logo\"i]{height:1rem!important;width:auto!important}#sidebar button[aria-expanded][style*=\"1.75rem\"],#navigation-items button[aria-expanded][style*=\"1.75rem\"]{pointer-events:none!important;font-weight:600!important;color:var(--color-gray-900, #18181b)!important;background:transparent!important}html.dark #sidebar button[aria-expanded][style*=\"1.75rem\"],html.dark #navigation-items button[aria-expanded][style*=\"1.75rem\"]{color:var(--color-gray-100, #f4f4f5)!important}#sidebar button[aria-expanded][style*=\"1.75rem\"] svg,#navigation-items button[aria-expanded][style*=\"1.75rem\"] svg{display:none!important}div:has(>img[src*=\"/flags/\"]){display:none!important}a.nav-tabs-item[href*=\"/legal/\"]{display:none!important}a.dataset-pill{display:inline-block;margin-left:0.25rem;padding:0 0.45rem;border:1px solid var(--color-gray-300, #d4d4d8);border-radius:9999px;font-size:0.675rem;font-weight:600;line-height:1.05rem;letter-spacing:0.03em;text-transform:uppercase;vertical-align:2px;color:var(--color-gray-600, #52525b)!important;background:transparent;text-decoration:none!important;transition:color 0.15s ease, border-color 0.15s ease}a.dataset-pill:hover{color:var(--color-gray-900, #18181b)!important;border-color:var(--color-gray-400, #a1a1aa)}html.dark a.dataset-pill{border-color:var(--color-gray-700, #3f3f46);color:var(--color-gray-400, #a1a1aa)!important}html.dark a.dataset-pill:hover{color:var(--color-gray-100, #f4f4f5)!important;border-color:var(--color-gray-500, #71717a)}"}],"page":{"pagePath":"mcp-server","slug":"/mcp-server","pageMetadata":{"title":"MCP","description":"Connect Claude, ChatGPT, Cursor or any MCP client to Croma's government data sources: the server URL, authentication and every tool exposed over MCP.","href":"/mcp-server"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Connect Claude, ChatGPT, Cursor or any MCP client to Croma’s government data sources: the server URL, authentication and every tool exposed over MCP.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Croma exposes every data source as a tool over the `,_jsx(_components.a,{href:`https://modelcontextprotocol.io`,children:`Model Context\nProtocol`}),` (MCP), served over Streamable HTTP\nat:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`https://api.croma.run/mcp`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Any MCP client can connect. Interactive clients (Claude, ChatGPT, Cursor) use\nthe OAuth flow: `,_jsx(_components.a,{href:`https://claude.ai/new?modal=add-custom-connector\u0026connectorName=Croma%20%7C%20The%20API%20for%20government%20data\u0026connectorUrl=https%3A%2F%2Fapi.croma.run%2Fmcp#settings/customize-connectors`,children:`add Croma to Claude in one click`}),`\nand sign in with your Croma account. For your own code you authenticate with\nthe `,_jsx(_components.strong,{children:`same API key as the REST API`}),`: send it as a bearer token and the tools\nrun scoped to your organization, sharing the same `,_jsx(_components.a,{href:`/rate-limits`,children:`rate limits`}),`\nand usage.`]}),`\n`,_jsx(Heading,{level:`2`,id:`use-it-from-the-ai-sdk`,children:`Use it from the AI SDK`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.a,{href:`https://ai-sdk.dev`,children:`AI SDK`}),` can load the Croma tools directly and hand them\nto a model for tool calling. Pass your key in the `,_jsx(_components.code,{children:`Authorization`}),` header of the\ntransport:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`28`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`28`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`experimental_createMCPClient`}),_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:` as`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` createMCPClient`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`generateText`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"ai\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`StreamableHTTPClientTransport`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"@modelcontextprotocol/sdk/client/streamableHttp.js\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`anthropic`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"@ai-sdk/anthropic\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#4FC1FF`,\"--shiki-dark\":`#4FC1FF`},children:` mcp`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:` createMCPClient`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` transport:`}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:` StreamableHTTPClientTransport`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:` URL`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.croma.run/mcp\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` requestInit:`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`Authorization:`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:\" `Bearer \"}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`process`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#4FC1FF`,\"--shiki-dark\":`#4FC1FF`},children:`CROMA_API_KEY`}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A9955`,\"--shiki-dark\":`#6A9955`},children:`// Every data source, exposed as a tool the model can call.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#4FC1FF`,\"--shiki-dark\":`#4FC1FF`},children:` tools`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` mcp`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`tools`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#4FC1FF`,\"--shiki-dark\":`#4FC1FF`},children:`text`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` } = `}),_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:` generateText`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` model:`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:` anthropic`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"claude-opus-4-8\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` tools`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A9955`,\"--shiki-dark\":`#6A9955`},children:` // Let the model call tools and then answer. Consult the AI SDK docs for the`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A9955`,\"--shiki-dark\":`#6A9955`},children:\" // multi-step setting in your version (`stopWhen` / `maxSteps`).\"})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` prompt:`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"Consulta los antecedentes de la Policía Nacional para la cédula 1234567890.\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` mcp`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`close`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`text`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Treat the key as a secret: load it from an environment variable or secrets\nmanager, never commit it, and close the client (`,_jsx(_components.code,{children:`mcp.close()`}),`) when you are\ndone so the connection is released.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`start-from-the-chat-template`,children:`Start from the chat template`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`https://github.com/croma-ai/croma-chat-template`,children:`Croma Chat Template`}),` is an\nopen-source Next.js chat built on this endpoint with the AI SDK and\n`,_jsx(_components.a,{href:`https://ai-sdk.dev/elements`,children:`AI Elements`}),`: streaming responses, tool calls\nacross every Croma source, a per-message source picker, and optional rate\nlimiting. Try the live deployment at\n`,_jsx(_components.a,{href:`https://chat.usecroma.com`,children:`chat.usecroma.com`}),`, or use the repository’s\none-click Vercel deploy: it asks for your `,_jsx(_components.code,{children:`CROMA_API_KEY`}),` and a model key and\ncomes up ready to use.`]}),`\n`,_jsx(Heading,{level:`2`,id:`tool-names`,children:`Tool names`}),`\n`,_jsxs(_components.p,{children:[`Tools are named after their source, with underscores instead of hyphens, for\nexample `,_jsx(_components.code,{children:`policia_criminal_records`}),`, `,_jsx(_components.code,{children:`rues_entity_by_nit`}),`, and\n`,_jsx(_components.code,{children:`rama_judicial_cases_by_radicado`}),`. Call `,_jsx(_components.code,{children:`mcp.tools()`}),` to list the full set with\ntheir input schemas, or browse the `,_jsx(_components.a,{href:`/api-reference`,children:`API reference`}),` for the\nfields each one accepts.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/async-jobs`,children:`Async lookups`}),` always wait inline over MCP: the tool call returns\nthe finished result, with no `,_jsx(_components.code,{children:`202`}),`, polling, or callbacks.`]}),`\n`,_jsxs(_components.p,{children:[`The monitor tools manage `,_jsx(_components.a,{href:`/monitors`,children:`monitors`}),` for the connected organization:\n`,_jsx(_components.code,{children:`create_monitor`}),` watches a dataset endpoint on a schedule and emails what is new,\n`,_jsx(_components.code,{children:`list_monitors`}),`, `,_jsx(_components.code,{children:`get_monitor`}),`, `,_jsx(_components.code,{children:`update_monitor`}),` (rename, re-query, pause, resume),\n`,_jsx(_components.code,{children:`run_monitor`}),`, `,_jsx(_components.code,{children:`list_monitor_matches`}),` and `,_jsx(_components.code,{children:`delete_monitor`}),` do the rest.\n`,_jsx(_components.a,{href:`/monitors-mcp`,children:`Monitors from Claude`}),` has prompts that work and what the agent\ndoes with them.`]}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`submit_feedback`}),` tool sends Croma a report when a tool errors, returns a clearly wrong\nresult, or no tool covers a source you need. See `,_jsx(_components.a,{href:`/feedback`,children:`Feedback`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`A source that answers only to a signed-in person, like\n`,_jsx(_components.a,{href:`/guides/peru/sunarp`,children:`SUNARP`}),`, adds three connection tools: `,_jsx(_components.code,{children:`sunarp_connect`}),`\nanswers with a secure link where the user enters their own account’s details\nin the Croma console, so credentials never pass through the conversation (the\naccount is checked with the source, encrypted on arrival, never returned),\n`,_jsx(_components.code,{children:`sunarp_list_connections`}),` shows each one’s status and daily allowance, and\n`,_jsx(_components.code,{children:`sunarp_delete_connection`}),` removes one.\n`,_jsx(_components.a,{href:`/guides/colombia/dian-muisca`,children:`DIAN`}),` has the same three as `,_jsx(_components.code,{children:`dian_muisca_connect`}),`,\n`,_jsx(_components.code,{children:`dian_muisca_list_connections`}),` and `,_jsx(_components.code,{children:`dian_muisca_delete_connection`}),`, and\n`,_jsx(_components.a,{href:`/guides/colombia/dian-facturacion`,children:`DIAN Electronic Invoicing`}),` as `,_jsx(_components.code,{children:`dian_facturacion_connect`}),`,\n`,_jsx(_components.code,{children:`dian_facturacion_list_connections`}),` and `,_jsx(_components.code,{children:`dian_facturacion_delete_connection`}),`. Queries then\nrun as the organization’s connections on their own. The monitor and connection\ntools are the only tools that write.`]}),`\n`,_jsx(Heading,{level:`2`,id:`any-mcp-client`,children:`Any MCP client`}),`\n`,_jsxs(_components.p,{children:[`The AI SDK is one option. Because the endpoint speaks standard MCP over\nStreamable HTTP, the official\n`,_jsx(_components.a,{href:`https://github.com/modelcontextprotocol/typescript-sdk`,children:`MCP TypeScript SDK`}),`,\nLangChain, and other MCP-aware frameworks connect the same way: point them at\n`,_jsx(_components.code,{children:`https://api.croma.run/mcp`}),` and set the `,_jsx(_components.code,{children:`Authorization: Bearer`}),` header.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"MCP","description":"Connect Claude, ChatGPT, Cursor or any MCP client to Croma's government data sources: the server URL, authentication and every tool exposed over MCP.","href":"/mcp-server"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Use it from the AI SDK","slug":"use-it-from-the-ai-sdk","depth":2,"children":[]},{"title":"Start from the chat template","slug":"start-from-the-chat-template","depth":2,"children":[]},{"title":"Tool names","slug":"tool-names","depth":2,"children":[]},{"title":"Any MCP client","slug":"any-mcp-client","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"croma","siteName":"Croma API","title":"MCP - Croma API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/mcp-server","matchLevel":0},"es":{"href":"/es/mcp-server","matchLevel":1},"pt-BR":{"href":"/pt/mcp-server","matchLevel":1}}},"lastModified":"2026-10-23T22:34:32.256Z","originalFileLocation":"mcp-server.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Connect Claude, ChatGPT, Cursor or any MCP client to Croma\u0026#x27;s government data sources: the server URL, authentication and every tool exposed over MCP.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Croma API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/croma/WB4AmZ7e3PEc7UXM/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/croma/WB4AmZ7e3PEc7UXM/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/croma/WB4AmZ7e3PEc7UXM/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/croma/WB4AmZ7e3PEc7UXM/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/croma/WB4AmZ7e3PEc7UXM/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/croma/WB4AmZ7e3PEc7UXM/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/croma/WB4AmZ7e3PEc7UXM/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/croma/WB4AmZ7e3PEc7UXM/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/croma/WB4AmZ7e3PEc7UXM/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"MCP - Croma API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Connect Claude, ChatGPT, Cursor or any MCP client to Croma\u0026#x27;s government data sources: the server URL, authentication and every tool exposed over MCP.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Croma API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.usecroma.com/mcp-server\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://croma.mintlify.site/_mintlify/api/og/v2?division=Get+started\u0026amp;title=MCP\u0026amp;description=Connect+Claude%2C+ChatGPT%2C+Cursor+or+any+MCP+client+to+Croma%27s+government+data+sources%3A+the+server+URL%2C+authentication+and+every+tool+exposed+over+MCP.\u0026amp;theme=27f398343599ad9c36ebea10\u0026amp;signature=db5541cb8674b21fb506ea74964b721b8179368da7c6e52268f9168bf1d1b807\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"MCP - Croma API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Connect Claude, ChatGPT, Cursor or any MCP client to Croma\u0026#x27;s government data sources: the server URL, authentication and every tool exposed over MCP.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://croma.mintlify.site/_mintlify/api/og/v2?division=Get+started\u0026amp;title=MCP\u0026amp;description=Connect+Claude%2C+ChatGPT%2C+Cursor+or+any+MCP+client+to+Croma%27s+government+data+sources%3A+the+server+URL%2C+authentication+and+every+tool+exposed+over+MCP.\u0026amp;theme=27f398343599ad9c36ebea10\u0026amp;signature=db5541cb8674b21fb506ea74964b721b8179368da7c6e52268f9168bf1d1b807\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/croma/WB4AmZ7e3PEc7UXM/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Croma API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#18181b\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.usecroma.com/mcp-server\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/mcp-server.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.usecroma.com/mcp-server\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.usecroma.com/es/mcp-server\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://docs.usecroma.com/pt/mcp-server\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.usecroma.com/mcp-server\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.usecroma.com/#organization\",\"name\":\"Croma API\",\"url\":\"https://docs.usecroma.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/croma/ioi13hN3s-Dcty8-/logo/light.svg?fit=max\u0026auto=format\u0026n=ioi13hN3s-Dcty8-\u0026q=85\u0026s=a4da0b4b29d11b13c5fd3219ead7027b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.usecroma.com#website\",\"name\":\"Croma API\",\"url\":\"https://docs.usecroma.com\",\"publisher\":{\"@id\":\"https://docs.usecroma.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.usecroma.com/mcp-server#webpage\",\"url\":\"https://docs.usecroma.com/mcp-server\",\"name\":\"MCP\",\"description\":\"Connect Claude, ChatGPT, Cursor or any MCP client to Croma's government data sources: the server URL, authentication and every tool exposed over MCP.\",\"dateModified\":\"2026-10-23T22:34:32.256Z\",\"isPartOf\":{\"@id\":\"https://docs.usecroma.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.usecroma.com/mcp-server#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.usecroma.com/mcp-server#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Get started\",\"item\":\"https://docs.usecroma.com/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MCP\",\"item\":\"https://docs.usecroma.com/mcp-server\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.usecroma.com/mcp-server#article\",\"headline\":\"MCP\",\"name\":\"MCP\",\"description\":\"Connect Claude, ChatGPT, Cursor or any MCP client to Croma's government data sources: the server URL, authentication and every tool exposed over MCP.\",\"url\":\"https://docs.usecroma.com/mcp-server\",\"mainEntityOfPage\":{\"@id\":\"https://docs.usecroma.com/mcp-server#webpage\"},\"dateModified\":\"2026-10-23T22:34:32.256Z\",\"publisher\":{\"@id\":\"https://docs.usecroma.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.usecroma.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Croma API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Croma API","nav":{"global":null,"languages":[{"language":"en","default":true,"tabs":[{"tab":"Guides","groups":[{"group":"Get started","pages":[{"title":"Croma docs","href":"/introduction"},{"title":"Quickstart","href":"/quickstart"},{"title":"Authentication","description":"Where to create Croma API keys, how the bearer scheme works, how keys belong to your organization and environments, and what to do the moment a key leaks.","href":"/authentication"},{"title":"MCP","href":"/mcp-server"},{"title":"Credits","description":"How Croma credits work: what a live lookup and a dataset request cost, what spends nothing, when the balance resets and what a 402 looks like.","href":"/credits"},{"title":"Rate limits","href":"/rate-limits"},{"title":"Errors","href":"/errors"},{"title":"Versioning and deprecation","href":"/versioning"}]},{"group":"Request types","pages":[{"title":"Live lookups","href":"/live-lookups"},{"title":"Datasets","href":"/datasets"},{"title":"Async jobs","href":"/async-jobs"},{"title":"Batch requests","href":"/batch"},{"title":"Connections","href":"/connections"}]},{"group":"Monitors","pages":[{"title":"Monitors","href":"/monitors"},{"title":"Monitors from Claude","href":"/monitors-mcp"},{"title":"Monitorable sources","href":"/monitors-sources"}]},{"group":"Feedback","pages":[{"title":"Feedback","href":"/feedback"}]},{"group":"Countries","pages":[{"group":"Colombia","pages":[{"group":"Courts \u0026 litigation","expanded":true,"pages":[{"title":"Rama Judicial","href":"/guides/colombia/rama-judicial"},{"title":"SAMAI (Consejo de Estado)","href":"/guides/colombia/samai"},{"title":"SAMAI Relatoría","href":"/guides/colombia/samai-rulings"},{"title":"Consejo de Estado","href":"/guides/colombia/consejo-estado"},{"title":"CNDJ","href":"/guides/colombia/cndj"},{"title":"Fiscalía (SPOA)","href":"/guides/colombia/fiscalia"},{"title":"Superfinanciera","href":"/guides/colombia/superfinanciera"},{"title":"Superfinanciera Doctrina","href":"/guides/colombia/superfinanciera-doctrine"},{"title":"Banco de la República","href":"/guides/colombia/banrep"},{"title":"Banco de la República: research and reports","href":"/guides/colombia/banrep-research"},{"title":"SIC","href":"/guides/colombia/sic-normativa"},{"title":"SIC Sanctions","href":"/guides/colombia/sic-sanctions"},{"title":"SIC Acts","href":"/guides/colombia/sic-actos"},{"title":"SIC Filings","href":"/guides/colombia/sic-tramites"},{"title":"SIC Industrial Property Gazette","href":"/guides/colombia/sic-gazette"},{"title":"SIC Industrial Property","href":"/guides/colombia/sic-ip"},{"title":"SIMEV","href":"/guides/colombia/simev"},{"title":"Imprenta Nacional","href":"/guides/colombia/imprenta"},{"title":"Función Pública","href":"/guides/colombia/funcion-publica"},{"title":"Colombian government procedures (SUIT)","href":"/guides/colombia/suit"},{"title":"Entity procedure pages","href":"/guides/colombia/gov-pages"},{"title":"CREG","href":"/guides/colombia/creg"},{"title":"Corte Constitucional","href":"/guides/colombia/corte-constitucional"},{"title":"Corte Suprema de Justicia","href":"/guides/colombia/corte-suprema"},{"title":"ANM","href":"/guides/colombia/anm"},{"title":"INVIMA","href":"/guides/colombia/invima"},{"title":"MinEducación","href":"/guides/colombia/mineducacion"},{"title":"ICFES","href":"/guides/colombia/icfes"}]},{"group":"Background checks","expanded":true,"pages":[{"title":"Registraduría","href":"/guides/colombia/registraduria"},{"title":"Registro Civil","href":"/guides/colombia/registro-civil"},{"title":"Policía Nacional","href":"/guides/colombia/policia"},{"title":"Policía Nacional: corrective measures","href":"/guides/colombia/policia-rnmc"},{"title":"Procuraduría","href":"/guides/colombia/procuraduria"},{"title":"Contraloría","href":"/guides/colombia/contraloria"},{"title":"Contaduría","href":"/guides/colombia/contaduria"},{"title":"ADRES","href":"/guides/colombia/adres"},{"title":"DNP (Sisbén IV and RUI)","href":"/guides/colombia/dnp"},{"title":"DNP TerriData","href":"/guides/colombia/terridata"},{"title":"SICAAC","href":"/guides/colombia/sicaac"},{"title":"RUAF","href":"/guides/colombia/ruaf"},{"title":"ReTHUS","href":"/guides/colombia/rethus"}]},{"group":"Companies \u0026 tax","expanded":true,"pages":[{"title":"RUES","href":"/guides/colombia/rues"},{"title":"Supersociedades","href":"/guides/colombia/supersociedades"},{"title":"Supersociedades Baranda Virtual","href":"/guides/colombia/supersociedades-baranda"},{"title":"Supersociedades doctrine and jurisprudence","href":"/guides/colombia/supersociedades-relatoria"},{"title":"DIAN","href":"/guides/colombia/dian"},{"title":"DIAN My Tax Account","href":"/guides/colombia/dian-muisca"},{"title":"DIAN Electronic Invoicing","href":"/guides/colombia/dian-facturacion"},{"title":"DIAN Importers and Exporters","href":"/guides/colombia/dian-trade"},{"title":"DIAN Tariff","href":"/guides/colombia/dian-arancel"},{"title":"VUCE","href":"/guides/colombia/vuce"},{"title":"Bancolombia My Accounts","href":"/guides/colombia/bancolombia"}]},{"group":"Public procurement","expanded":true,"pages":[{"title":"SECOP","href":"/guides/colombia/secop"},{"title":"ANCP-CCE","href":"/guides/colombia/ancp-cce"}]},{"group":"Vehicles \u0026 transit","expanded":true,"pages":[{"title":"RUNT","href":"/guides/colombia/runt"},{"title":"SIMIT","href":"/guides/colombia/simit"},{"title":"TransMilenio","href":"/guides/colombia/transmilenio"}]},{"group":"Other","expanded":true,"pages":[{"title":"Legalize","href":"/guides/colombia/legalize"},{"title":"SIATA","href":"/guides/colombia/siata"},{"title":"SIATA Geoportal","href":"/guides/colombia/siata-geoportal"},{"title":"IGAC","href":"/guides/colombia/igac"},{"title":"DANE","href":"/guides/colombia/dane"},{"title":"IGAC Property Transactions","href":"/guides/colombia/igac-transactions"},{"title":"UPRA Rural Land Prices","href":"/guides/colombia/upra"}]}]},{"group":"Peru","pages":[{"group":"Identity \u0026 tax","expanded":true,"pages":[{"title":"SUNAT","href":"/guides/peru/sunat"},{"title":"RREE","href":"/guides/peru/rree"},{"title":"SAT Lima","href":"/guides/peru/sat-lima"}]},{"group":"Property \u0026 registries","expanded":true,"pages":[{"title":"SUNARP Public Registries","href":"/guides/peru/sunarp"},{"title":"SUNARP Vehicle Lookup","href":"/guides/peru/sunarp-vehicular"}]},{"group":"Vehicles \u0026 transit","expanded":true,"pages":[{"title":"SAT Lima Capture Orders","href":"/guides/peru/sat-lima-capturas"},{"title":"Callao Traffic Tickets","href":"/guides/peru/callao-papeletas"},{"title":"SUTRAN Infraction Record","href":"/guides/peru/sutran-infracciones"},{"title":"APESEG SOAT Certificate History","href":"/guides/peru/apeseg-soat"},{"title":"SBS SOAT, CAT and Vehicle Insurance Report","href":"/guides/peru/sbs-soat"}]},{"group":"Public procurement","expanded":true,"pages":[{"title":"OECE Contrataciones Abiertas","href":"/guides/peru/oece"}]},{"group":"Courts \u0026 litigation","expanded":true,"pages":[{"title":"Tribunal Constitucional","href":"/guides/peru/tribunal-constitucional"},{"title":"Tribunal del Servicio Civil","href":"/guides/peru/servir-tsc"}]}]},{"group":"México","pages":[{"group":"Laws \u0026 regulation","expanded":true,"pages":[{"title":"DOF","href":"/guides/mexico/dof"},{"title":"Cámara de Diputados","href":"/guides/mexico/diputados"},{"title":"CNBV","href":"/guides/mexico/cnbv"},{"title":"CNSF","href":"/guides/mexico/cnsf"},{"title":"Banxico","href":"/guides/mexico/banxico"}]},{"group":"Courts \u0026 prosecutors","expanded":true,"pages":[{"title":"SCJN","href":"/guides/mexico/scjn"},{"title":"Fiscalías (México)","href":"/guides/mexico/fiscalias"}]},{"group":"Other","expanded":true,"pages":[{"title":"SIEM","href":"/guides/mexico/siem"}]}]},{"group":"United States","pages":[{"group":"Companies","expanded":true,"pages":[{"title":"Sunbiz","href":"/guides/united-states/sunbiz"},{"title":"Delaware","href":"/guides/united-states/delaware"},{"title":"FinCEN MSB Registrations","href":"/guides/united-states/fincen"},{"title":"USPTO trademarks","href":"/guides/united-states/uspto"},{"title":"New York Corporations","href":"/guides/united-states/ny-dos"},{"title":"Colorado Business Entities","href":"/guides/united-states/colorado-sos"},{"title":"Connecticut Businesses","href":"/guides/united-states/ct-sos"}]},{"group":"Liens","expanded":true,"pages":[{"title":"Colorado UCC Liens","href":"/guides/united-states/colorado-ucc"},{"title":"Connecticut UCC Liens","href":"/guides/united-states/ct-ucc"}]},{"group":"Securities \u0026 funding","expanded":true,"pages":[{"title":"SEC EDGAR","href":"/guides/united-states/sec"},{"title":"SEC Form ADV","href":"/guides/united-states/iapd"},{"title":"SEC Form 13F","href":"/guides/united-states/sec-13f"},{"title":"SEC Crowdfunding and Regulation A","href":"/guides/united-states/sec-offerings"}]},{"group":"Sanctions \u0026 screening","expanded":true,"pages":[{"title":"OFAC Sanctions","href":"/guides/united-states/ofac"},{"title":"Consolidated Screening List","href":"/guides/united-states/csl"},{"title":"SAM.gov Exclusions","href":"/guides/united-states/sam"}]},{"group":"Public procurement","expanded":true,"pages":[{"title":"SAM.gov Contract Opportunities","href":"/guides/united-states/sam-opportunities"}]},{"group":"Employment \u0026 visas","expanded":true,"pages":[{"title":"DOL H-1B and PERM Labor Certifications","href":"/guides/united-states/dol-oflc"}]}]},{"group":"Brazil","pages":[{"group":"Courts \u0026 litigation","expanded":true,"pages":[{"title":"DJEN","href":"/guides/brazil/djen"}]},{"group":"Background checks","expanded":true,"pages":[{"title":"CGU Sanctions","href":"/guides/brazil/cgu"},{"title":"MTE (slave labour register)","href":"/guides/brazil/mte"},{"title":"IBAMA (embargoes)","href":"/guides/brazil/ibama"}]},{"group":"Companies \u0026 tax","expanded":true,"pages":[{"title":"PGFN","href":"/guides/brazil/pgfn"},{"title":"TST","href":"/guides/brazil/tst"},{"title":"Caixa (FGTS)","href":"/guides/brazil/caixa"}]},{"group":"Laws \u0026 regulation","expanded":true,"pages":[{"title":"Planalto (federal legislation)","href":"/guides/brazil/planalto"}]},{"group":"Statistics","expanded":true,"pages":[{"title":"IBGE","href":"/guides/brazil/ibge"}]}]},{"group":"Bolivia","pages":[{"group":"Courts \u0026 litigation","expanded":true,"pages":[{"title":"Tribunal Constitucional Plurinacional","href":"/guides/bolivia/tcp"},{"title":"Tribunal Supremo de Justicia","href":"/guides/bolivia/tsj"}]}]},{"group":"Japan","pages":[{"group":"Companies","expanded":true,"pages":[{"title":"National Tax Agency (法人番号)","href":"/guides/japan/nta"}]},{"group":"Courts \u0026 litigation","expanded":true,"pages":[{"title":"Courts of Japan (裁判例)","href":"/guides/japan/courts"}]}]},{"group":"Chile","pages":[{"group":"Courts \u0026 litigation","expanded":true,"pages":[{"title":"Poder Judicial","href":"/guides/chile/pjud"},{"title":"Tribunal Constitucional","href":"/guides/chile/tribunal-constitucional"},{"title":"Tribunales Tributarios y Aduaneros","href":"/guides/chile/tta"}]},{"group":"Laws \u0026 regulation","expanded":true,"pages":[{"title":"SII","href":"/guides/chile/sii"},{"title":"Contraloría General de la República","href":"/guides/chile/contraloria"},{"title":"CMF","href":"/guides/chile/cmf"},{"title":"Ley Chile","href":"/guides/chile/leychile"},{"title":"Dirección del Trabajo","href":"/guides/chile/direccion-del-trabajo"},{"title":"Superintendencia de Seguridad Social","href":"/guides/chile/suseso"}]},{"group":"Property \u0026 registries","expanded":true,"pages":[{"title":"SII Mapas","href":"/guides/chile/sii-mapas"}]}]},{"group":"Venezuela","pages":[{"group":"Identity \u0026 tax","expanded":true,"pages":[{"title":"SENIAT: taxpayer registry (RIF)","href":"/guides/venezuela/seniat"}]}]},{"group":"El Salvador","pages":[{"group":"Companies \u0026 tax","expanded":true,"pages":[{"title":"CNR","href":"/guides/el-salvador/cnr"},{"title":"Electronic invoicing","href":"/guides/el-salvador/facturacion-electronica"}]},{"group":"Courts \u0026 litigation","expanded":true,"pages":[{"title":"Corte Suprema de Justicia","href":"/guides/el-salvador/csj"}]},{"group":"Laws \u0026 regulation","expanded":true,"pages":[{"title":"Asamblea Legislativa","href":"/guides/el-salvador/asamblea"}]},{"group":"Public procurement","expanded":true,"pages":[{"title":"COMPRASAL","href":"/guides/el-salvador/compras-publicas"}]},{"group":"Other","expanded":true,"pages":[{"title":"Ministerio de Turismo","href":"/guides/el-salvador/turismo"}]}]},{"group":"Global","pages":[{"title":"Web Search","href":"/guides/global/web-search"},{"title":"Extract","href":"/guides/global/extract"},{"title":"Generate","href":"/guides/global/generate"},{"title":"Research","href":"/guides/global/research"},{"title":"GLEIF (LEI)","href":"/guides/global/gleif"},{"title":"World Bank indicators","href":"/guides/global/world-bank"}]}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/overview"}]},{"tab":"Legal API","hidden":true,"searchable":true,"pages":[{"title":"Legal API","href":"/legal/introduction"}]}]},{"language":"es","pages":[{"title":"es","href":"/es/mcp-server"}]},{"language":"pt-BR","pages":[{"title":"pt-BR","href":"/pt/mcp-server"}]}]},"basePath":"","title":"MCP - Croma API","buildId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","deploymentId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","dynamics":[],"chunks":[]}