GnistAI GnistAI
Log in

GLEIF (LEI)

Legal Entity Identifier (LEI) lookup — corporate identity, ownership, and registration.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 6 tools tools 6 6 Legal

Data source: GLEIF

MCP 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"}}}'

API REST API

API Root https://context.gnist.ai/rest/gleif/

6 endpoints available:

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())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc gleif

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (6)

search_entities
Search GLEIF for registered legal entities by name, registration number, or jurisdiction.
ParameterTypeRequiredDescription
nameanyoptionalLegal name or partial name to search for (e.g. "Apple Inc", "Deutsche Bank").
registration_numberanyoptionalCompany registration number from the national registry.
jurisdictionanyoptionalISO 3166-1 alpha-2 country code (e.g. "US", "DE", "NO", "GB").
statusanyoptionalRegistration status filter — "ISSUED" (active), "LAPSED" (expired renewal), "MERGED", "RETIRED", "PENDING_TRANSFER", or "ANNULLED".
limitintegeroptionalNumber of results to return (1–50, default 10). (default: 10)
get_entity
Fetch the full GLEIF record for a Legal Entity Identifier (LEI).
ParameterTypeRequiredDescription
leistringrequiredThe 20-character LEI code (e.g. "HWUPKR0MPOU8FGXBT394" for Apple Inc).
get_ownership_chain
Retrieve ownership chain relationships for a legal entity.
ParameterTypeRequiredDescription
leistringrequiredThe 20-character LEI of the entity to look up.
directionstringoptionalWhich 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_bic
Resolve a SWIFT BIC code to its corresponding LEI.
ParameterTypeRequiredDescription
bicstringrequiredThe SWIFT Bank Identifier Code (8 or 11 characters, e.g. "DEUTDEDB").
resolve_isin
Resolve an ISIN (securities identifier) to the issuing entity's LEI.
ParameterTypeRequiredDescription
isinstringrequiredThe 12-character International Securities Identification Number (e.g. "US0378331005" for Apple common stock).
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related