
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 分