ERIP

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

ToolDescriptionCredits
search_companiesSearch the European company index by name, LEI, or registration number1
get_company_detailReturn full risk intelligence for a company ID from search_companies50

search_companies

Searches the index and returns a JSON array of matching companies. Supply one of:

  • name - partial company name, case-insensitive, minimum 4 characters
  • lei - Legal Entity Identifier (LEI) code
  • registrationNumber + 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/json

The 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

  1. Accept your tenant invite → sign in via the magic link → JWT session
  2. Create an API key - POST /v1/auth/api-keys (user) or POST /v1/tenant/api-keys/service (service)
  3. Configure your MCP client - set url to https://api.erip.io/mcp and X-Api-Key to the raw key
  4. Search - call search_companies with name="Heidelberg" → JSON array of matching companies
  5. Detail - call get_company_detail with the id from step 4 → full risk intelligence document

On this page