Legal
Data source: GLEIF
MCP Protocol
Endpoint
https://context.gnist.ai/mcp/gleif/
claude_desktop_config.json
{
"mcpServers": {
"gnist-gleif": {
"url": "https://context.gnist.ai/mcp/gleif/",
"headers": {
"Gnist-API-Key": "YOUR_API_KEY"
}
}
}
}
Shell
curl -X POST "https://context.gnist.ai/mcp/gleif/" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "Gnist-API-Key: YOUR_API_KEY" \
-d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "get_entity", "arguments": {"lei": "example"}}}'
REST API
API Root
https://context.gnist.ai/rest/gleif/
6 endpoints available:
GET /rest/gleif/search_entitiesGET /rest/gleif/get_entityGET /rest/gleif/get_ownership_chainGET /rest/gleif/resolve_bicGET /rest/gleif/resolve_isinGET /rest/gleif/report_feedback
Shell
curl "https://context.gnist.ai/rest/gleif/get_entity?lei=example" \ -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx
resp = httpx.get(
"https://context.gnist.ai/rest/gleif/get_entity",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
params={
"lei": "example"
},
)
print(resp.json())
Command Line
Command
gc gleif
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (6)
search_entitiesSearch GLEIF for registered legal entities by name, registration number, or jurisdiction.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | any | optional | Legal name or partial name to search for (e.g. "Apple Inc", "Deutsche Bank"). |
registration_number | any | optional | Company registration number from the national registry. |
jurisdiction | any | optional | ISO 3166-1 alpha-2 country code (e.g. "US", "DE", "NO", "GB"). |
status | any | optional | Registration status filter — "ISSUED" (active), "LAPSED" (expired renewal), "MERGED", "RETIRED", "PENDING_TRANSFER", or "ANNULLED". |
limit | integer | optional | Number of results to return (1–50, default 10). (default: 10) |
get_entityFetch the full GLEIF record for a Legal Entity Identifier (LEI).
| Parameter | Type | Required | Description |
|---|---|---|---|
lei | string | required | The 20-character LEI code (e.g. "HWUPKR0MPOU8FGXBT394" for Apple Inc). |
get_ownership_chainRetrieve ownership chain relationships for a legal entity.
| Parameter | Type | Required | Description |
|---|---|---|---|
lei | string | required | The 20-character LEI of the entity to look up. |
direction | string | optional | Which relationships to retrieve: - "direct_parent" — the entity that directly consolidates this one (default) - "ultimate_parent" — the topmost parent in the ownership chain - "children" — en... (default: "direct_parent") |
resolve_bicResolve a SWIFT BIC code to its corresponding LEI.
| Parameter | Type | Required | Description |
|---|---|---|---|
bic | string | required | The SWIFT Bank Identifier Code (8 or 11 characters, e.g. "DEUTDEDB"). |
resolve_isinResolve an ISIN (securities identifier) to the issuing entity's LEI.
| Parameter | Type | Required | Description |
|---|---|---|---|
isin | string | required | The 12-character International Securities Identification Number (e.g. "US0378331005" for Apple common stock). |
report_feedbackReport a bug, feature request, or general feedback for this data source.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |