GLEIF MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
git clone https://github.com/olgasafonova/gleif-mcp-server.git
cd gleif-mcp-server
go build -o gleif-mcp-server .
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add gleif-mcp-server -- node "<FULL_PATH_TO_GLEIF_MCP_SERVER>/dist/index.js"

Replace <FULL_PATH_TO_GLEIF_MCP_SERVER>/dist/index.js with the actual folder you prepared in step 1.

README.md

Verify any company's legal identity in one question.

GLEIF MCP Server

Verify any company's legal identity in one question. Look up LEI codes, validate counterparties, and trace corporate ownership structures using the official GLEIF database. Covers 2.8M+ entities across 200+ jurisdictions.

29 tools for LEI lookup, entity search, BIC/SWIFT cross-referencing, corporate ownership, and batch validation. Works with Claude Desktop, Claude Code, Cursor, VS Code, Windsurf, and other MCP-compatible tools.

Use Cases

  • KYC & Onboarding: Verify counterparty identities before signing contracts
  • Compliance Checks: Validate LEIs for MiFID II, EMIR, or DORA reporting
  • Due Diligence: Research corporate ownership chains and ultimate parents
  • Financial Analysis: Cross-reference securities (ISIN) and banks (BIC/SWIFT) with their legal entities
  • Data Enrichment: Batch-process company lists to add LEI data

What is LEI?

The Legal Entity Identifier (LEI) is a 20-character alphanumeric code that uniquely identifies legal entities participating in financial transactions worldwide. It's mandated by 200+ regulations including MiFID II, EMIR, Dodd-Frank, and DORA.

LEI Format (ISO 17442):

  • Characters 1-4: LOU (Local Operating Unit) prefix
  • Characters 5-18: Entity-specific identifier
  • Characters 19-20: Check digits (mod 97 validation)

Example: HWUPKR0MPOU8FGXBT394 (Apple Inc.)

Features

Core Capabilities

  • LEI Lookup: Get full entity details by LEI code
  • Batch Lookup: Look up multiple LEIs in a single request (up to 100)
  • Entity Search: Find companies by name with fuzzy matching and pagination
  • LEI Validation: Verify format, check digits (ISO 17442), and registration status

Financial Identifiers

  • BIC/SWIFT Lookup: Find bank LEIs from BIC codes
  • ISIN Lookup: Find security issuer LEIs from ISIN codes
  • Country Browse: List entities by jurisdiction

Relationships & Compliance

  • Corporate Ownership: Parent companies, subsidiaries, ultimate parents
  • Fund Relationships: Fund managers, umbrella funds, sub-funds
  • Reporting Exceptions: Level 2 data exceptions with reasons
  • LEI Issuers: List and details of all Local Operating Units (LOUs)

Performance & Reliability

  • Fast Responses: Results are cached locally, so repeat queries return instantly
  • No API Key Needed: Works out of the box with GLEIF's public API
  • Handles Errors Gracefully: Automatic retries on timeouts or temporary failures
  • Stays Within Limits: Built-in rate limiting prevents hitting GLEIF's quotas

Installation

Download Binary

Pre-built binaries for all platforms on the releases page:

Platform Binary
macOS (Apple Silicon) gleif-mcp-server-darwin-arm64
macOS (Intel) gleif-mcp-server-darwin-amd64
Linux (x64) gleif-mcp-server-linux-amd64
Linux (ARM64) gleif-mcp-server-linux-arm64
Windows (x64) gleif-mcp-server-windows-amd64.exe
# macOS/Linux - download and make executable
chmod +x gleif-mcp-server-darwin-arm64

Build from Source

Requires Go 1.25+:

git clone https://github.com/olgasafonova/gleif-mcp-server.git
cd gleif-mcp-server
go build -o gleif-mcp-server .

Install via Go

go install github.com/olgasafonova/gleif-mcp-server@latest

AI Agent Setup

Quickest start: Using Claude Desktop? Just add the config below and restart. Using an IDE like Cursor? Same idea, different config file. Pick your tool below.

Claude Desktop

Step 1: Download the binary

Go to the releases page and download the binary for your system:

  • Mac (Apple Silicon M1/M2/M3/M4): gleif-mcp-server-darwin-arm64
  • Mac (Intel): gleif-mcp-server-darwin-amd64
  • Windows: gleif-mcp-server-windows-amd64.exe
Step 2: Mac only - allow the file to run

macOS blocks downloaded files. Open Terminal and run:

chmod +x ~/Downloads/gleif-mcp-server-darwin-arm64
xattr -d com.apple.quarantine ~/Downloads/gleif-mcp-server-darwin-arm64
Step 3: Open the config file

Mac: Open Finder, press Cmd + Shift + G, paste this path:

~/Library/Application Support/Claude/

Windows: Press Win + R, paste this path:

%APPDATA%\Claude

Open claude_desktop_config.json. If it doesn't exist, create it.

Step 4: Add the config

Mac (replace YOUR_USERNAME with your actual username): ```json

Tools (5)

lei_lookupGet full entity details by LEI code
batch_lookupLook up multiple LEIs in a single request
entity_searchFind companies by name with fuzzy matching
bic_lookupFind bank LEIs from BIC codes
isin_lookupFind security issuer LEIs from ISIN codes

Configuration

claude_desktop_config.json
{"mcpServers": {"gleif": {"command": "/path/to/gleif-mcp-server"}}}

Try it

Find the LEI code for Apple Inc. and verify its current registration status.
Search for companies with 'Goldman Sachs' in their name and list their ultimate parent entities.
Validate the LEI code HWUPKR0MPOU8FGXBT394 to ensure it follows ISO 17442 standards.
Find the legal entity associated with the BIC code 'BOFAUS3N'.

Frequently Asked Questions

What are the key features of GLEIF MCP Server?

Full LEI entity lookup and validation. Batch processing for up to 100 LEIs. Fuzzy name search for entity discovery. Cross-referencing with BIC/SWIFT and ISIN codes. Corporate ownership and hierarchy tracing.

What can I use GLEIF MCP Server for?

KYC and counterparty onboarding verification. Compliance reporting for MiFID II, EMIR, and DORA. Due diligence research on corporate ownership chains. Financial analysis and security issuer identification. Batch enrichment of company lists with LEI data.

How do I install GLEIF MCP Server?

Install GLEIF MCP Server by running: go install github.com/olgasafonova/gleif-mcp-server@latest

What MCP clients work with GLEIF MCP Server?

GLEIF MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep GLEIF MCP Server docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare