The Model Context Protocol (MCP) is an open standard for connecting AI agents to external tools and data sources. Definable’s MCP module lets you connect to any MCP-compatible server and use its capabilities inside your agents.Documentation Index
Fetch the complete documentation index at: https://docs.definable.ai/llms.txt
Use this file to discover all available pages before exploring further.
What MCP Provides
MCP servers expose three types of capabilities:| Capability | Description | Example |
|---|---|---|
| Tools | Functions the agent can call | File operations, database queries, API calls |
| Resources | Data the agent can read | Files, configurations, live data feeds |
| Prompts | Reusable prompt templates | Analysis templates, code review prompts |
Architecture
Transport Types
Definable supports all three MCP transport types:| Transport | Protocol | Best For |
|---|---|---|
| stdio | Subprocess stdin/stdout | Local CLI tools, npm packages |
| SSE | HTTP + Server-Sent Events | Remote servers, legacy MCP |
| HTTP | Streamable HTTP | Remote servers, modern MCP |
Quick Example
Connect to a filesystem MCP server and use it in an agent:Key Components
Getting Started
Connect to your first MCP server step by step.
Configuration
Configure servers, transports, timeouts, and tool filtering.
Resources
Read data from MCP resource providers.
Prompts
Use reusable prompt templates from MCP servers.
Error Handling
Handle connection failures, timeouts, and reconnection.
Mock Servers
Test MCP integrations without real servers.