Overview
Composio provides full support for the Model Context Protocol (MCP), enabling seamless integration between AI models and external services. With MCP, you can create server instances that connect your AI tools to 500+ apps like Gmail, Slack, GitHub, and Notion.What is MCP?
The Model Context Protocol (MCP) is a standardized protocol that allows AI models to interact with external tools and services in a consistent way. Composio’s MCP implementation provides:- Unified Access: Connect to 500+ apps through a single interface
- User-Specific Instances: Generate unique server instances for each user
- Flexible Authentication: Support for both chat-based and manual authentication
- Multi-Client Support: Use with Claude Desktop, Cursor, VS Code, and other MCP-compatible clients
Key Features
MCP Server Management
Composio’s MCP class provides complete server lifecycle management:- Create and configure MCP servers with specific toolkits and tools
- List and filter existing MCP servers
- Update server configurations dynamically
- Generate user-specific server instances
- Delete servers when no longer needed
Authentication Options
Choose between two authentication modes:- Chat-Based Authentication (
manuallyManageConnections: false): Users authenticate through conversational prompts when using the MCP server - Manual Authentication (
manuallyManageConnections: true): Pre-configure account connections outside of the MCP server
Basic Usage
Creating an MCP Server
Create a new MCP server configuration with specific toolkits and tools:Creating Server with Auth Configs
For more control, specify auth configurations for each toolkit:Generating User-Specific Instances
Create a server instance for a specific user:Listing MCP Servers
Retrieve and filter existing MCP servers:Retrieving Server Details
Get detailed information about a specific server:Updating Server Configuration
Modify existing server settings:Deleting an MCP Server
Permanently remove a server configuration:MCP Server Instance
When you generate an MCP server instance, you receive:url field to connect your MCP client to the server instance.
Integration with AI Clients
Composio MCP servers work with popular AI clients:- Claude Desktop: Use the Claude setup command from
server.commands.claude - Cursor: Use the Cursor setup command from
server.commands.cursor - Windsurf: Use the Windsurf setup command from
server.commands.windsurf - VS Code: Configure using the MCP URL
- Custom Clients: Connect using the standard MCP protocol
Best Practices
- Use Descriptive Names: Give your MCP servers clear, descriptive names
- Limit Tool Access: Only include necessary tools in
allowedToolsfor security - Choose Authentication Mode: Use chat-based auth for better UX, manual auth for more control
- Monitor Instance Count: Track
serverInstanceCountto understand usage - Clean Up Unused Servers: Delete servers you no longer need
Error Handling
Next Steps
- Learn about Rube - Composio’s pre-built MCP server
- Explore Available Toolkits
- Configure Authentication
- See MCP.ts Source Code