MCP Providers
Only available for TypeScript SDK
At this time, MCP providers using the Composio SDK are only supported in the TypeScript SDK. Support for the Python SDK is coming soon.Integrating external tools into agent frameworks can be a complex and time-consuming process. Composio MCP (Model Context Protocol) servers simplify this workflow, enabling you to connect your framework to a wide array of tools and services with minimal configuration.
This guide introduces the primary MCP providers, each optimized for a popular agent framework. With these providers, you can focus on developing intelligent agent logic while Composio handles the integration details.
1. Anthropic Provider
The Anthropic Provider is purpose-built for use with the Anthropic Claude API. It supports Model Context Protocol (MCP) tools via a lightweight client that exposes a getServer
method for retrieving the appropriate Composio MCP Server URL, preconfigured for your user. This provider ensures seamless compatibility between Composio tools and Anthropic’s function calling APIs.
2. Mastra Provider
The Mastra Provider is tailored for the Mastra TypeScript-native agent framework. This client provides a getServer method to obtain the Composio MCP Server URL, configured for your user.
3. OpenAI SDK Provider
The OpenAI SDK Provider is designed for use with the OpenAI SDK and supports MCP tools through a streamlined client. This client provides a getServer
method to obtain the Composio MCP Server URL, configured for your user.
Managing Existing Servers
You can also work with previously created MCP servers:
Best Practices for Providers
- Always check connection status before using MCP servers to ensure users are authenticated
- Handle authentication gracefully by providing clear instructions and redirect URLs
- Use meaningful server names to make management easier
- Limit tools appropriately to only what your application needs
- Cache server configurations when possible to reduce API calls
- Monitor connection health and provide re-authentication flows when needed
By using Composio MCP Servers with these providers, you can quickly connect your agent framework to a wide range of external tools with minimal effort. This lets you streamline integration, reduce setup time, and focus more on building your AI agent.