The MCP (Model Context Protocol), developed by Anthropic, is an open protocol that standardizes how applications provide context to LLMs.Documentation Index
Fetch the complete documentation index at: https://framework.beeai.dev/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- BeeAI Framework installed with
pip install beeai-framework - BeeAI Framework extension for MCP installed with
pip install 'beeai-framework[mcp]'
MCP Client
MCPTool allows you to consume external tools exposed via MCP protocol. See the MCP Tool page for more information.MCP Server
MCPServer allows you to expose your components (Tools, Agents, Chat Models, Runnable) to external systems that support the Model Context Protocol (MCP) standard, enabling seamless integration with LLM tools ecosystems. Key benefits- Fast setup with minimal configuration
- Support for multiple transport options
- Register multiple tools on a single server
- Custom server settings and instructions
Configuration
The MCP Server Adapter uses theMCPServerConfig class to configure the MCP server:
stdio: Uses standard input/output for communication (default)streamable-http: Uses HTTP POST and GET requests (replacessse)sse: Uses server-sent events over HTTP (deprecated)
Custom Instances
If you want to make your custom class compatible with an MCP server, you can do so by registering a custom mapper viaMCPServer.register_factory(...).