
GLEIF MCP Server
io.github.olgasafonova由 GitHub 账号 olgasafonova 发布v0.9.0更新于 Oct 24, 2026
Access the GLEIF LEI database for company verification, KYC, and ownership research.
概览
在 GLEIF 公开数据库中查询法人机构识别编码(LEI),让助手核验公司身份、交叉比对 BIC/ISIN 代码并追溯股权结构。
- 可以做什么
- 查询、校验并批量核对 LEI 编码,包括格式与校验位验证
- 按公司名称模糊搜索并分页,或按国家浏览、按前缀自动补全名称
- 解析金融标识:由 BIC/SWIFT 代码查找银行 LEI,由 ISIN 代码查找发行方 LEI
- 追溯公司与基金关系,如直接母公司、最终母公司、子公司、基金管理人及子基金
- 查看 LEI 发行机构(本地运营单位)以及二级数据申报例外
- 适用场景
- 适用于 KYC 与客户准入核验、MiFID II、EMIR、DORA 等合规申报、企业股权链条尽职调查,以及为批量公司名单补充 LEI 数据。
- 运行要求
- 作为本地进程运行,可用预编译二进制(macOS、Linux、Windows)安装,或用 Go 1.25+ 从源码构建。需要访问 GLEIF 公开 API 的网络连接;无需 API 密钥或账号。
安装
在 SourceWeft 中
- 打开 控制台中的 GLEIF MCP Server,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
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.
[CI] [lint] [License: MIT] [CodeScene Average Code Health]
12 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:
Build from Source
Requires Go 1.25+:
Install via Go
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:
Step 3: Open the config file
Mac: Open Finder, press Cmd + Shift + G, paste this path:
Windows: Press Win + R, paste this path:
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):
Windows (replace YOUR_USERNAME - note the double backslashes):
To find your username: Mac - open Terminal and type whoami. Windows - look at C:\Users\.
Step 5: Restart Claude Desktop
Quit completely (Cmd + Q on Mac) and reopen.
Step 6: Test it
Type in Claude Desktop:
You should see Claude call the GLEIF tool and return company data.
Claude Code (CLI)
Cursor IDE
Add to .cursor/mcp.json in your project or ~/.cursor/mcp.json for global config:
VS Code with Continue Extension
Add to .continue/config.json:
Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
Cline (VS Code Extension)
Add via Cline's MCP settings or in .vscode/cline_mcp_settings.json:
Antigravity
Add to ~/.antigravity/mcp.json:
Not working? Tell us what made it hard — even one sentence helps.
Tools Reference
Core Lookup Tools
Search Tools
Relationship Tools
LEI Issuer Tools
Compliance Tools
Usage Examples
Basic LEI Lookup
Prompt: "Look up LEI HWUPKR0MPOU8FGXBT394"
Returns: Full entity details for Apple Inc. including legal name, headquarters address, jurisdiction (US-CA), entity status, registration status, managing LOU, and next renewal date.
Company Search with Pagination
Prompt: "Search for Deutsche Bank, show page 2"
Tool call:
Returns: List of matching entities with pagination info (total results, current page, has more).
Batch LEI Lookup
Prompt: "Look up these LEIs: HWUPKR0MPOU8FGXBT394, 5493006MHB84DD0ZWV18, 549300GKFG0RYRRQ1414"
Returns: Summary of all three entities with LEI, legal name, country, city, and status.
Find Bank by BIC
Prompt: "Find the LEI for BIC DEUTDEFF"
Returns: Deutsche Bank AG's LEI record with full details.
Find Security Issuer
Prompt: "Who issued ISIN US0378331005?"
Returns: Apple Inc. (the issuer of AAPL stock).
Corporate Structure
Prompt: "Who is the ultimate parent of this subsidiary?"
Tool call:
LEI Validation
Prompt: "Is LEI HWUPKR0MPOU8FGXBT394 valid?"
Returns:
Check Reporting Exceptions
Prompt: "Why is parent info missing for this company?"
Tool call:
Returns: Exception categories and reasons (e.g., NON_CONSOLIDATING, NATURAL_PERSONS).
List All LEI Issuers
Prompt: "Show me all LEI issuers"
Returns: Complete list of LOUs (Local Operating Units) with name, country, status, and number of sponsored LEIs.
Response Format
All tools return JSON with relevant fields. Example entity record:
Search results include pagination:
Error Handling
The server returns structured errors:
Example error response:
Architecture
Technical Details
For developers who want the specifics:
API Reference
This server wraps the public GLEIF API:
- Base URL: https://api.gleif.org/api/v1
- Authentication: None required
- Rate Limit: 60 requests/minute
- Documentation: https://www.gleif.org/en/lei-data/gleif-api
Troubleshooting
Server won't start
- Check the binary has execute permissions:
chmod +x gleif-mcp-server - Verify the path in your MCP config is absolute, not relative
"Rate limit exceeded" errors
- The server automatically handles rate limiting with retries
- If persistent, reduce concurrent requests or wait a few minutes
"LEI not found" for valid LEI
- The GLEIF database updates daily; recently issued LEIs may not appear immediately
- Verify the LEI format (exactly 20 alphanumeric characters)
Slow responses
- First requests may be slower (cache warming)
- GLEIF API occasionally has latency spikes; retries handle this automatically
Claude Desktop doesn't show the server
- Restart Claude Desktop after editing config
- Check JSON syntax in config file
- Verify the binary path exists and is executable
Development
Contributing
Contributions welcome. Please open an issue first to discuss proposed changes.
License
MIT License - see LICENSE for details.
More MCP Servers
Check out my other MCP servers:
Acknowledgments
- GLEIF for the public LEI API
- Model Context Protocol for the MCP specification
来源:README.md,提交 6782396
工具
0版本历史
1- v0.9.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分