MCP Server
Call ERIP company tools directly from AI agents using the Model Context Protocol (MCP).
The ERIP Gateway exposes a built-in MCP (Model Context Protocol) server at /mcp. AI agents - Claude Desktop, custom LLM workflows, or any MCP-compatible client - can call the same company search and detail endpoints as LLM-native tools, authenticated with the same API key used for the REST API.
Available Tools
| Tool | Description | Credits |
|---|---|---|
search_companies | Search the European company index by name, LEI, or registration number | 1 |
get_company_detail | Return full risk intelligence for a company ID from search_companies | 50 |
search_companies
Searches the index and returns a JSON array of matching companies. Supply one of:
name- partial company name, case-insensitive, minimum 4 characterslei- Legal Entity Identifier (LEI) coderegistrationNumber+countryCode- national registration number with ISO 3166-1 alpha-2 country code
Use the id field from the results as input to get_company_detail.
get_company_detail
Returns the full company detail document for a given id, including:
- Risk signals (covenant tightening, auditor language change, liquidity risk, going concern)
- Covenant monitoring data (thresholds, headroom, status, lender details)
- Ownership structure (parent/child company graph)
- Financial events (filings ingested, charges registered, director changes)
- Sentiment time series (social network and news sentiment scores)
Connect from Claude Desktop
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"elia-sephirot": {
"type": "http",
"url": "https://api.erip.io/mcp",
"headers": {
"X-Api-Key": "erip_YOUR_API_KEY"
}
}
}
}Replace erip_YOUR_API_KEY with either a user key (scoped to one member's identity) or a tenant service key (scoped to the tenant itself, survives user turnover - recommended for shared workspaces and CI). See Authentication for the differences.
Connect from a Custom Agent
Any MCP HTTP client can connect to the same endpoint. Pass the API key in the X-Api-Key header on every request:
POST /mcp
X-Api-Key: erip_YOUR_API_KEY
Content-Type: application/jsonThe server follows the standard MCP HTTP transport (JSON-RPC over HTTP with SSE for streaming).
Authentication
The MCP endpoint uses the same authentication as the REST API data plane. Every connection is validated against the key (and, for user keys, the owning member's status) before any tool call is processed. An invalid, revoked, or tenant-suspended key returns 401 Unauthorized.
See Authentication to accept an invite and create a key.
Credits
Each tool call deducts credits from the tenant's balance, using the same per-operation costs as the equivalent REST endpoint. If the balance is insufficient, the tool returns an error describing the cost and remaining balance:
Insufficient credits. This operation costs 50 credits; 3 remaining.Unlike the REST API, the MCP transport does not return X-Credits-Remaining or X-Credits-Cost headers - credit usage is visible in the error message on exhaustion and via GET /v1/tenant/credits on the REST API.
Transactions are attributed to the caller:
- User key → the owning member's user id
- Service key →
userId: null
Tenant admins can review GET /v1/tenant/credits/history to see which member or integration drove each deduction.
Quick Start
- Accept your tenant invite → sign in via the magic link → JWT session
- Create an API key -
POST /v1/auth/api-keys(user) orPOST /v1/tenant/api-keys/service(service) - Configure your MCP client - set
urltohttps://api.erip.io/mcpandX-Api-Keyto the raw key - Search - call
search_companieswithname="Heidelberg"→ JSON array of matching companies - Detail - call
get_company_detailwith theidfrom step 4 → full risk intelligence document