# GLEIF API

```json
{
  "name": "GLEIF API",
  "slug": "gleif",
  "url": "https://composio.dev/toolkits/gleif",
  "markdown_url": "https://composio.dev/toolkits/gleif.md",
  "logo_url": "https://logos.composio.dev/api/gleif",
  "categories": [
    "finance & accounting"
  ],
  "is_composio_managed": false,
  "updated_at": "2026-09-16T05:33:49.082Z"
}
```

![GLEIF API logo](https://logos.composio.dev/api/gleif)

## Description

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with GLEIF API MCP or direct API to search LEI records, retrieve entity details, explore ownership relationships, and map external identifiers through natural language.

## Summary

GLEIF provides free public access to Legal Entity Identifier records and related reference data.
Access standardized LEI data, ownership relationships, and identifier mappings.

## Categories

- finance & accounting

## Toolkit Details

- Tools: 20

## Images

- Logo: https://logos.composio.dev/api/gleif

## Authentication

- **No Auth**
  - Type: `custom`
  - Description: No Auth authentication for GLEIF API.
  - Setup:
    - Configure No Auth credentials for GLEIF API.
    - Use the credentials when creating an auth config in Composio.

## Suggested Prompts

- Lookup LEI details for 5493001KJTIIGC8Y1R12
- List ultimate parents for LEI 213800K2R6R5MVYQ4D30
- Map external identifiers to LEI for company

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `GLEIF_EXPORT_LEI_RECORDS` | Export LEI Records | Download up to 5,000 LEI records using the complete closed field-filter and sort surface as CSV, XLSX, JSON, or XML. |
| `GLEIF_GET_AUTOCOMPLETIONS` | Get Autocompletions | Return prefix-based GLEIF search suggestions from the provider's data collection, defaulting absent top-level metadata and links to empty objects. Highlighting is untrusted provider HTML and must be sanitized before rendering. |
| `GLEIF_GET_FUND_OR_BRANCH_RELATIONSHIP` | Get Fund or Branch Relationship | Get the complete relationship record linking an LEI to its fund manager, umbrella fund, master fund, or head office. |
| `GLEIF_GET_FUZZY_COMPLETIONS` | Get Fuzzy Completions | Find approximate GLEIF search matches for misspelled or incomplete input. Results are complete provider resources from the data-only collection when no top-level metadata or links are supplied; they are fragments, not full LEI records or proof of identity. |
| `GLEIF_GET_LEI_ISSUER_FOR_RECORD` | Get LEI Issuer for Record | Get the complete LEI-issuer reference resource associated with a specified LEI record. |
| `GLEIF_GET_LEI_RECORD` | Get LEI Record | Retrieve one LEI record with complete provider attributes, relationships, links, and Golden Copy metadata when its LEI is known. |
| `GLEIF_GET_PARENT_INFORMATION` | Get Parent Information | Get a direct or ultimate parent LEI plus complete relationship evidence, or the complete reporting exception when no parent is reported. |
| `GLEIF_GET_REFERENCE_ITEM` | Get Reference Item | Get one complete item from a selected GLEIF reference collection by its collection-specific identifier. |
| `GLEIF_GET_RELATED_LEI_RECORD` | Get Related LEI Record | Follow a selected associated-entity, managing-LOU, fund, or head-office link and return the complete related LEI record. |
| `GLEIF_LIST_CHILD_ENTITIES` | List Child Entities | List one page of complete direct or ultimate accounting-child LEI records. |
| `GLEIF_LIST_CHILD_RELATIONSHIPS` | List Child Relationships | List one page of complete direct or ultimate accounting-child relationship records for an LEI. |
| `GLEIF_LIST_FUND_OR_BRANCH_ENTITIES` | List Fund or Branch Entities | List one page of complete managed-fund, sub-fund, feeder-fund, or international-branch LEI records. |
| `GLEIF_LIST_FUND_OR_BRANCH_RELATIONSHIPS` | List Fund or Branch Relationships | List one page of complete fund-management, sub-fund, feeder-fund, or international-branch relationship records. |
| `GLEIF_LIST_LEI_FIELD_MODIFICATIONS` | List LEI Field Modifications | List one page of complete LEI, relationship, or reporting-exception field-history resources with optional type, XPath, and date filters. |
| `GLEIF_LIST_LEI_ISINS` | List LEI ISINs | Return one page of complete GLEIF-ANNA ISIN mappings for an issuer LEI. |
| `GLEIF_LIST_LEI_ISSUER_JURISDICTIONS` | List LEI Issuer Jurisdictions | List one page of complete jurisdiction resources for which an LEI issuer is accredited. |
| `GLEIF_LIST_REFERENCE_DATA` | List Reference Data | List one complete JSON:API page from a selected GLEIF field, code, or issuer reference collection. Use GLEIF_LIST_REGISTRATION_AGENTS for the unpaginated registration-agent collection. |
| `GLEIF_LIST_REGISTRATION_AGENTS` | List Registration Agents | List all GLEIF registration agents, optionally filtered by issuer LEI or registration-agent LEI. This provider operation returns the complete collection and does not support pagination. |
| `GLEIF_LIST_SUCCESSOR_ENTITIES` | List Successor Entities | List one page of all successor LEI records for an entity. Prefer this action over the deprecated GLEIF_GET_SUCCESSOR_ENTITY lookup. |
| `GLEIF_SEARCH_LEI_RECORDS` | Search LEI Records | Search LEI records with closed, field-aware filters and sorting, returning one complete JSON:API page. |

## Supported Triggers

None listed.

## Installation and MCP Setup

### Path 1: SDK Installation

#### Path 1, Step 1: Install Composio

Install the Composio SDK
```python
pip install composio_openai
```

```typescript
npm install @composio/openai
```

#### Path 1, Step 2: Initialize Composio and Create Tool Router Session

Import and initialize Composio client, then create a Tool Router session
```python
from openai import OpenAI
from composio import Composio
from composio_openai import OpenAIResponsesProvider

composio = Composio(provider=OpenAIResponsesProvider())
openai = OpenAI()
session = composio.create(user_id='your-user-id')
```

```typescript
import OpenAI from 'openai';
import { Composio } from '@composio/core';
import { OpenAIResponsesProvider } from '@composio/openai';

const composio = new Composio({
  provider: new OpenAIResponsesProvider(),
});
const openai = new OpenAI({});
const session = await composio.create('your-user-id');
```

#### Path 1, Step 3: Execute GLEIF API Tools via Tool Router with Your Agent

Get tools from Tool Router session and execute GLEIF API actions with your Agent
```python
tools = session.tools
response = openai.responses.create(
  model='gpt-4.1',
  tools=tools,
  input=[{
    'role': 'user',
    'content': 'YOUR_SPECIFIC_PROMPT_HERE'
  }]
)
result = composio.provider.handle_tool_calls(
  response=response,
  user_id='your-user-id'
)
print(result)
```

```typescript
const tools = session.tools;
const response = await openai.responses.create({
  model: 'gpt-4.1',
  tools: tools,
  input: [{
    role: 'user',
    content: 'YOUR_SPECIFIC_PROMPT_HERE'
  }],
});
const result = await composio.provider.handleToolCalls(
  'your-user-id',
  response.output
);
console.log(result);
```

### Path 2: MCP Server Setup

#### Path 2, Step 1: Install Composio

Install the Composio SDK for Python or TypeScript
```python
pip install composio claude-agent-sdk
```

```typescript
npm install @composio/core ai @ai-sdk/openai @ai-sdk/mcp
```

#### Path 2, Step 2: Initialize Client and Create Tool Router Session

Import and initialize the Composio client, then create a Tool Router session for GLEIF API
```python
from composio import Composio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions

composio = Composio(api_key='your-composio-api-key')
session = composio.create(user_id='your-user-id')
url = session.mcp.url
```

```typescript
import { Composio } from '@composio/core';

const composio = new Composio({ apiKey: 'your-api-key' });
const session = await composio.create('your-user-id');
console.log(`Tool Router session created: ${session.mcp.url}`);
```

#### Path 2, Step 3: Connect to AI Agent

Use the MCP server with your AI agent (Anthropic Claude or Mastra)
```python
import asyncio

options = ClaudeAgentOptions(
    permission_mode='bypassPermissions',
    mcp_servers={
        'tool_router': {
            'type': 'http',
            'url': url,
            'headers': {
                'x-api-key': 'your-composio-api-key'
            }
        }
    },
    system_prompt='You are a helpful assistant with access to GLEIF API tools.',
    max_turns=10
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query('YOUR_SPECIFIC_PROMPT_HERE')
        async for message in client.receive_response():
            if hasattr(message, 'content'):
                for block in message.content:
                    if hasattr(block, 'text'):
                        print(block.text)

asyncio.run(main())
```

```typescript
import { openai } from '@ai-sdk/openai';
import { experimental_createMCPClient as createMCPClient } from '@ai-sdk/mcp';
import { generateText } from 'ai';

const client = await createMCPClient({
  transport: {
    type: 'http',
    url: session.mcp.url,
    headers: {
      'x-api-key': 'your-composio-api-key',
    },
  },
});

const tools = await client.tools();
const { text } = await generateText({
  model: openai('gpt-4o'),
  tools,
  messages: [{
    role: 'user',
    content: 'YOUR_SPECIFIC_PROMPT_HERE'
  }],
  maxSteps: 5,
});

console.log(`Agent: ${text}`);
```

## Why Use Composio?

### 1. AI Native GLEIF API Integration

- Supports both GLEIF API MCP and direct API based integrations
- Structured, LLM-friendly schemas for reliable tool execution
- Rich coverage for reading, writing, and querying your GLEIF API data

### 2. Managed Auth

- Built-in OAuth handling with automatic token refresh and rotation
- Central place to manage, scope, and revoke GLEIF API access
- Per user and per environment credentials instead of hard-coded keys

### 3. Agent Optimized Design

- Tools are tuned using real error and success rates to improve reliability over time
- Comprehensive execution logs so you always know what ran, when, and on whose behalf

### 4. Enterprise Grade Security

- Fine-grained RBAC so you control which agents and users can access GLEIF API
- Scoped, least privilege access to GLEIF API resources
- Full audit trail of agent actions to support review and compliance

## Use GLEIF API with any AI Agent Framework

Choose a framework you want to connect GLEIF API with:

- [ChatGPT Work](https://composio.dev/toolkits/gleif/framework/chatgpt)
- [Claude Cowork](https://composio.dev/toolkits/gleif/framework/claude-cowork)
- [Hermes](https://composio.dev/toolkits/gleif/framework/hermes-agent)

## Related Toolkits

- [Stripe](https://composio.dev/toolkits/stripe) - Stripe is a global online payments platform offering APIs for managing payments, customers, and subscriptions. Trusted by businesses for secure, efficient, and scalable payment processing worldwide.
- [44API](https://composio.dev/toolkits/44api) - 44API is an API service for validating VAT and tax identifiers and returning company details. Use it to verify business tax data and manage account IP whitelists quickly.
- [Airwallex](https://composio.dev/toolkits/airwallex) - Airwallex is a global financial platform providing business accounts, payments, payouts, FX, and cards. Built to simplify cross-border payments and streamline financial operations for businesses.
- [Aiwyn Tax MCP](https://composio.dev/toolkits/aiwyn_tax_mcp) - Aiwyn Tax MCP is a tax estimation service powered by Aiwyn's federal and state tax engine. It helps teams estimate tax outcomes without building tax calculation logic from scratch.
- [Alpaca](https://composio.dev/toolkits/alpaca) - Alpaca is a stock and crypto trading platform for commission-free trading, real-time market data, and algorithmic strategies. Use it to build brokerage apps, trading bots, and portfolio workflows with market connectivity.
- [Alpha vantage](https://composio.dev/toolkits/alpha_vantage) - Alpha Vantage is a financial data platform offering real-time and historical stock market APIs. Get instant, reliable access to equities, forex, and technical analysis data for smarter trading decisions.
- [Altoviz](https://composio.dev/toolkits/altoviz) - Altoviz is a cloud-based billing and invoicing platform for businesses. It streamlines online payments, expense tracking, and customizable invoice management.
- [Benzinga](https://composio.dev/toolkits/benzinga) - Benzinga provides real-time financial news and data APIs for market coverage. It helps you track breaking news and actionable market insights instantly.
- [Bigdata.com MCP](https://composio.dev/toolkits/bigdata_com_mcp) - Bigdata.com MCP provides grounded access to financial news, transcripts, filings, and entity intelligence. Ideal for building research workflows and generating timely market insights.
- [Billsby](https://composio.dev/toolkits/billsby) - Billsby is a subscription billing platform for managing customers, subscriptions, invoices, products, plans, usage counters, add-ons, and allowances. It helps SaaS and subscription teams automate billing operations without building complex billing logic from scratch.
- [Brex](https://composio.dev/toolkits/brex) - Brex provides corporate credit cards and spend management tailored for startups and tech businesses. It helps optimize company cash flow, streamline accounting, and accelerate business growth.
- [Cashfree Payments MCP](https://composio.dev/toolkits/cashfree_payments_mcp) - Cashfree Payments MCP is a merchant payments platform that handles collection, payouts, subscriptions, settlements, refunds, and identity verification. Simplifies merchant money lifecycle management with unified, API-driven workflows.
- [Chaser](https://composio.dev/toolkits/chaser) - Chaser is accounts receivable automation software that sends invoice reminders and helps businesses get paid faster. It streamlines the collections process to save time and improve cash flow.
- [Clarity AI MCP](https://composio.dev/toolkits/clarity_ai_mcp) - Clarity AI MCP is an MCP toolkit for simulating SFDR 2.0 fund classifications from a fund name, ISIN, or CUSIP. Use it to tap Clarity AI disclosure data and modeling without building custom sustainability-data workflows.
- [Clientary](https://composio.dev/toolkits/clientary) - Clientary is a platform for managing clients, invoices, projects, proposals, and more. It streamlines client work and saves you serious admin time.
- [Coinbase](https://composio.dev/toolkits/coinbase) - Coinbase is a platform for buying, selling, and storing cryptocurrency. It makes exchanging and managing crypto simple and secure for everyone.
- [Coinranking](https://composio.dev/toolkits/coinranking) - Coinranking is a comprehensive cryptocurrency market data platform offering access to real-time coin prices, market caps, and historical data. Get accurate, up-to-date stats for thousands of digital assets in one place.
- [Coupa](https://composio.dev/toolkits/coupa) - Coupa is a business spend management platform for procurement, invoicing, and expenses. It helps organizations streamline purchasing, control costs, and gain complete visibility over financial operations.
- [CurrencyScoop](https://composio.dev/toolkits/currencyscoop) - CurrencyScoop is a developer-friendly API for real-time and historical currency exchange rates. Easily access fiat and crypto data for smart, up-to-date financial applications.
- [Daffy](https://composio.dev/toolkits/daffy) - Daffy is a modern charitable giving platform with a donor-advised fund. Easily set aside funds, grow them tax-free, and donate to over 1.7 million U.S. charities.

## Frequently Asked Questions

### Do I need my own developer credentials to use GLEIF API with Composio?

No — GLEIF data is public and requires no authentication. You can get started immediately with Composio's GLEIF API integration without developer credentials. Composio still handles request routing, structured tool schemas, and secure session management for your agents.

### Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. [Learn more](https://docs.composio.dev/tool-router/overview).

### Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. [Learn more](https://trust.composio.dev).

### What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
