{
  "markdown": "# @pipeworx/gleif\n\nGlobal Legal Entity Identifier Foundation MCP — LEI lookup, ISIN/BIC-to-entity mapping, and corporate hierarchy, no auth.\n\nPart of [Pipeworx](https://pipeworx.io) — an MCP gateway connecting AI agents to 1476+ live data sources.\n\n## Tools\n\n- `search_lei(query, country?, status?, page_size?)` — fuzzy entity-name search. If `country` narrows the result to nothing, the filter is dropped and the response says so via `country_filter_dropped` — GLEIF filters on the *registered legal address*, which often is not where the entity operates (no Sberbank-named record has a Russian one; they sit in CY/SK/LU/GB).\n- `get_lei(lei)` — full Level 1 record: legal name, addresses, jurisdiction, legal form, and LEI registration status. Accepts a company **name** as well as a 20-character LEI; a resolved name is echoed back as `resolved_from_name`.\n- `get_lei_relationships(lei)` — Level 2 direct parent, ultimate parent, direct children (one hop).\n- `isin_to_lei(isin)` — resolve a security's ISIN to the legal entity that issued it (LEI + legal name). A valid-but-unmapped ISIN is reported as `mapped: false, reason: \"isin_unmapped\"` — the mapping lags new issuance, so unmapped ≠ nonexistent.\n- `lei_to_isins(lei)` — all ISINs issued by an entity (LEI or company name accepted). Returns the full set — one entity issues many securities.\n- `bic_to_lei(bic)` — resolve a SWIFT/BIC (8 or 11 chars) to the bank's legal entity. 8-char codes are padded to the `XXX` head-office form (GLEIF's filter matches 11-char BICs only); a branch BIC with no mapping of its own falls back to the head office and says so.\n- `lei_hierarchy_tree(lei, depth?)` — multi-hop ownership: ancestor chain up to the ultimate parent plus a breadth-first subsidiary tree (depth 1–4, default 2, node budget 150/call).\n\n## Data source\n\n`https://api.gleif.org/api/v1/` — public JSON:API, no key required. ISIN and BIC joins use GLEIF's official ISIN-to-LEI and BIC-to-LEI mapping files as served through the same API (`filter[isin]`, `filter[bic]`, `/lei-records/{lei}/isins`).\n\n## Passing an LEI\n\nEvery tool that takes an `lei` argument also takes a company **name** — the name is resolved\nagainst the registry and the match is returned alongside the answer. Pass the name whenever\nthat is what you have.\n\n**Never construct an LEI code.** A guessed 20-character string that happens to be a real LEI\nbelongs to some other company, and GLEIF returns its record with nothing to indicate the wrong\nentity was fetched — a request for Wirecard AG once came back as Baader Bank\nAktiengesellschaft. Codes are checked against the ISO 17442 (ISO 7064 MOD 97-10) check digits\nbefore any request is made, and a code that fails is rejected with a message naming\n`search_lei`; that catches roughly 96 of every 97 invented codes, but not one that collides\nwith a live record, which is why the name path exists.\n\n## Quick Start\n\nAdd to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):\n\n```json\n{\n  \"mcpServers\": {\n    \"gleif\": {\n      \"url\": \"https://gateway.pipeworx.io/gleif/mcp\"\n    }\n  }\n}\n```\n\n### What this endpoint actually serves\n\n`tools/list` at `https://gateway.pipeworx.io/gleif/mcp` returns the tools in the table\nabove **plus the shared Pipeworx meta-tools** — `ask_pipeworx`,\n`discover_tools`, `search_within`, `remember`/`recall` and the rest of the\ngateway-wide set. So the tool count you see is larger than this table: a\nsingle-pack endpoint currently lists roughly 30 shared tools alongside the\npack's own. The connection's `initialize` response states its exact scope, and\nis the authoritative answer for a given day.\n\nThis is deliberate, not multiplexing by accident. The meta-tools are what let a\nscoped connection answer a question this pack does not cover — via\n`ask_pipeworx`, which routes across the whole catalog — without you adding a\nsecond MCP server. There is currently no way to mount a pack endpoint without\nthem; if the extra schemas cost you more context than the routing is worth,\nconnect to the full gateway once rather than to several pack endpoints.\n\nOr connect to the full Pipeworx gateway to get every pack's tools listed\ndirectly, instead of just this one's:\n\n```json\n{\n  \"mcpServers\": {\n    \"pipeworx\": {\n      \"url\": \"https://gateway.pipeworx.io/mcp\"\n    }\n  }\n}\n```\n\nBoth URLs reach the same gateway and the same 1476+ data sources. The\nonly difference is which pack's tools are listed **directly**; `ask_pipeworx`\nreaches all of them from either one.\n\n## Using with ask_pipeworx\n\nInstead of calling tools directly, you can ask questions in plain English —\nthis works on the pack endpoint above as well as on the full gateway:\n\n```\nask_pipeworx({ question: \"your question about Gleif data\" })\n```\n\nThe gateway picks the right tool and fills the arguments automatically.\n\n## More\n\n- [Docs and guides](https://pipeworx.io/docs)\n- [pipeworx.io](https://pipeworx.io)\n\n## License\n\nMIT\n",
  "bytes": 4898,
  "sha": "881407ffcb7a43c372499e76474f05219fb4a9cb68774a3cfccddbf82d32b2b8",
  "repo_slug": "pipeworx-io/mcp-gleif",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_pipeworx_io_gleif_5a00d63b/readme"
}