Skip to main content
All environment variables:
AI SDK
Connect any LLM to your metadata catalog with OpenMetadata’s MCP tools. Available across Python, TypeScript, and Java.
AI SDK
The AI SDK gives you programmatic access to OpenMetadata’s MCP tools — use them to build custom AI applications with any LLM by connecting to your metadata catalog. Available across Python, TypeScript, and Java.Available SDKs
Prerequisites
You need:- An OpenMetadata instance (self-hosted or Collate)
- A Bot JWT token for API authentication
Configuration
Set the following environment variables:| Variable | Required | Default | Description |
|---|---|---|---|
AI_SDK_HOST | Yes | - | Your OpenMetadata server URL |
AI_SDK_TOKEN | Yes | - | Bot JWT token |
AI_SDK_TIMEOUT | No | 120 | Request timeout in seconds |
AI_SDK_VERIFY_SSL | No | true | Verify SSL certificates |
AI_SDK_MAX_RETRIES | No | 3 | Number of retry attempts |
AI_SDK_RETRY_DELAY | No | 1.0 | Base delay between retries (seconds) |
Client Initialization
MCP Tools
OpenMetadata exposes an MCP server that turns your metadata into a set of tools any LLM can use. Unlike generic MCP connectors that only read raw database schemas, OpenMetadata’s MCP tools give your AI access to the full context of your data platform — descriptions, owners, lineage, glossary terms, tags, and data quality results. The MCP endpoint is available atPOST /mcp using the JSON-RPC 2.0 protocol.
