GLEIF AI Connect: How LEI Search Integrated the Global LEI Index Into Our Smart Agent
GLEIF has released official AI Connectors, remote MCP servers that expose the Global LEI Index and LEI Statistics directly to AI assistants. Here is what they are, how we wired them into the LEI Smart Agent, and how you can use them.
The Global Legal Entity Identifier Foundation (GLEIF) has launched AI Connectors, a set of official, remote Model Context Protocol (MCP) servers that let AI assistants query the Global LEI Index in real time. We have integrated both connectors into the LEI Smart Agent, so every answer it gives about an entity, a relationship, or LEI population data is now grounded in live GLEIF data.
What Is GLEIF AI Connect?
As GLEIF explains on ai.gleif.org/connect-ai, AI Connect is a free, official way to make Legal Entity Identifier data directly accessible to AI agents and assistants. Instead of teaching a model to navigate APIs, you point it at a GLEIF-hosted MCP server and the model gains a structured set of tools it can call on demand.
GLEIF currently publishes two remote MCP servers:
- LEI Search (GLEIF API) at
https://mcp.gleif.org/gleif-api/mcp, exposing entity lookup, fuzzy search, relationship data, and reporting exceptions from the full Global LEI Index. - LEI Statistics (Global LEI Index) at
https://mcp.gleif.org/lei-statistics/mcp, exposing aggregate statistics, country breakdowns, registration status counts, and population trends.
Both servers speak the Model Context Protocol, the open standard adopted by Anthropic, OpenAI, and the broader AI ecosystem. Any MCP-capable client, Claude Desktop, ChatGPT, Cursor, or a custom agent, can connect, list the available tools, and call them with no API key required.
Why this matters
The LEI is the global reference identifier for legal entities in finance, supply chain, and regulatory reporting. AI Connect turns the 2.7M+ record Global LEI Index into a first-class data source for AI agents, with the same authority and freshness as the underlying GLEIF API.
How We Integrated It Into the LEI Smart Agent
The LEI Smart Agent on this site is our in-app AI assistant. Until now it answered LEI questions from a curated knowledge base. After GLEIF released AI Connect, we rebuilt the back end so the agent can call the official GLEIF tools directly.
1. MCP Client Inside Our Edge Function
The agent runs in a serverless edge function. On every chat request the function opens a Streamable HTTP MCP session to both GLEIF servers in parallel, calls initialize, then tools/list to fetch the live tool catalog.
2. Namespaced Tool Exposure
Tools from each server are exposed to the model with a namespace prefix, gleif_api_* for LEI Search and lei_stats_* for Statistics, so the model can always tell where a piece of data came from and we can route the call back to the correct MCP server.
3. Tool-Calling Loop
The model (Gemini via the Lovable AI Gateway) decides which tools to call based on the user's question. The edge function executes each tools/call against the right GLEIF server, feeds the result back, and repeats until the model has a complete answer. The streamed response is sent to your browser in the existing chat UI, no front-end changes required.
4. Grounded, Cited Answers
Because the data comes straight from GLEIF, the agent's answers reflect the current state of the Global LEI Index, including newly issued LEIs, lapsed renewals, and updated parent/child relationships, with no caching layer in between.
What You Can Ask the Smart Agent Now
Open the chat bubble at the bottom of any page and try questions like:
- Entity lookup: "Find the LEI for Apple Inc and show its registration status."
- Fuzzy search: "Which entities match 'Deutsche Bank' in Germany?"
- Relationship data: "Who is the ultimate parent of LEI 5493001KJTIIGC8Y1R12?"
- Renewal status: "When does this LEI need to be renewed?"
- Reporting exceptions: "Does this entity report a parent, and if not, why?"
- Global statistics: "How many active LEIs are there worldwide right now?"
- Country breakdowns: "Which country has issued the most LEIs in the last year?"
- Population trends: "What share of LEIs are currently lapsed?"
Example session
You: How many active LEIs are there globally, and what is the top country by issuance?
Smart Agent: Calls lei_stats_* tools against GLEIF's Statistics MCP, returns the live active count and the leading country, with both numbers pulled directly from the Global LEI Index that morning.
How You Can Use GLEIF AI Connect Yourself
If you run your own AI agent or assistant, you can connect to the same GLEIF MCP servers we use. The general flow is:
- Add the server URL to your MCP-compatible client (Claude Desktop, Cursor, or any framework that supports remote MCP).
- Authorize the connection, no API key is required for the public servers.
- Ask the model LEI questions in natural language. It will choose the right tool, call it, and ground its reply in live GLEIF data.
For developers, GLEIF's documentation at ai.gleif.org/connect-ai covers the full tool catalog, schemas, and example prompts.
Why This Is a Step Change for LEI Tooling
Until now, every LEI integration required custom code against the GLEIF REST API, with developers handling pagination, relationship traversal, and statistics endpoints by hand. MCP collapses that into a self-describing tool catalog any AI agent can use immediately. For end users it means LEI answers in plain English, backed by the authoritative source, inside the assistants they already use.
Our integration brings that experience to LEI Search visitors out of the box. Open the Smart Agent on any page and the full power of the Global LEI Index is one question away.
Try it now, click the chat bubble in the bottom corner and ask the LEI Smart Agent any LEI or GLEIF statistics question.