MCP Servers for developers
Composio MCP lets you build custom MCP servers that your users can connect to and use to perform actions. You can manage these servers via our Dashboard, or use the SDK/API for greater control and flexibility.
The MCP SDK has been updated to use positional parameters instead of object parameters for better performance and simpler usage. All examples below reflect the latest API structure.
Creating MCP Servers and Onboarding End Users
Configure Authentication
-
Create and Configure Toolkit permissions:
- Select the specific scopes and permissions your integration requires for each connected application. This ensures your MCP server has the right level of access.
- Check this guide on what auth config is and how to configue it - Auth Config setup guide
-
Customize the authentication experience (Optional):
- Create a seamless, branded experience by providing your own OAuth credentials and customizing the consent screens.
- Learn more here - Custom auth configs
Managing MCP Servers
Check User Connection Status
Before using an MCP server, you can check if a user has the necessary connected accounts:
Find Servers by Name
List All Servers
Update Server Configuration
Authentication Configuration
Option 1: Pre-authenticate Users (Recommended)
Authenticate users upfront via the Composio SDK/API before they use the MCP server:
Option 2: Agent-guided Authentication
Let the agent authenticate users on-demand by including helper actions:
Pre-authentication is recommended for production applications as it provides better user experience and more predictable behavior.
Best Practices
- Use meaningful server names - This helps with organization and makes servers easier to find.
- Limit tools appropriately - Only include the tools your users actually need.
- Check connection status - Always verify user authentication before using server URLs.
- Handle authentication gracefully - Provide clear instructions when users need to authenticate.
- Use the server ID - Store the server ID from the create response for generating URLs.
SSE support is deprecated. If you’re using /sse
endpoints or transport=sse
query parameters, migrate to the standard /mcp
endpoints.
Configuring Authentication
You or your users need to authenticate against an app to use its MCP server through Composio. This can be done in two ways:
- Authenticate users upfront via the Composio SDK/API. Follow custom auth configs to learn how to connect users. This is recommended for most use cases.
- Let the agent authenticate users on demand. Passing
include_composio_helper_actions=true
in the URL will include Composio’s helper actions, and the agent will guide the user through authentication on demand.