- OAuth, for interactive clients (Claude, ChatGPT, Cursor, and any client that supports dynamic client registration). The user signs in with their Croma Legal account and the tools run against their organization. Every member of the organization can connect this way; no API key needed.
- API key, for your own code (AI SDK, scripts, agents). Send the same key as the REST API as a bearer token; the tools resolve straight to the organization that owns it. Usage and rate limits are shared with the REST API.
Connect Claude or ChatGPT
The dashboard’s Desarrolladores → Conexión MCP tab walks through the same steps with copy buttons. In short:- Claude
- ChatGPT
- Click Add Croma Legal to Claude:
Claude opens Add custom connector with the name
Croma Legaland the server URLhttps://api.legal.usecroma.com/mcpalready filled in. (By hand: open Settings → Connectors, click + Add custom connector and paste them.) - Check the values and click Add.
- Click Connect on the new connector and sign in with your Croma Legal account. The tools appear in every new chat.
The account you sign in with must belong to a Croma Legal organization. If it
doesn’t, the connection succeeds but every tool answers that the account has
no organization; ask an administrator to add you and reconnect.
Use it from the AI SDK
The AI SDK can load the tools directly and hand them to a model. Pass your key in theAuthorization header of the transport:
Authorization: Bearer header.
Tools
Thirteen tools cover the same data as the REST API, plus helpers that only make sense for an agent. Tool results are JSON; empty results come back as a short Spanish sentence, since the people reading them are Spanish speakers.
Call
mcp.tools() to get the full input schema of each tool.
Notes on query_data
- The views are already filtered to your organization; there is no organization column to filter on.
- One statement per call,
SELECT(orWITH … SELECT) only. Results are capped at 500 rows (200 by default); whentruncatedistrue, useexport_datafor the complete set. - Unfiltered queries over the full actuaciones history can exceed the statement timeout; bound them by date, office or defendant.
- Measure procedural activity with the judicial dates (
registration_date,last_action_date), never withaction_created_atorlast_discovery_date.describe_dataspells out each column’s meaning.
Discovery
The server publishes its card athttps://api.legal.usecroma.com/.well-known/mcp/server-card.json (name,
description and the current tool list) and the OAuth metadata at
/.well-known/oauth-authorization-server and
/.well-known/oauth-protected-resource/mcp, so clients that support
auto-discovery need nothing beyond the URL.
REST API Reference
The same data over plain HTTP, with a playground.