Create a new MCP server
Creates a new Model Control Protocol (MCP) server instance for the authenticated project. An MCP server provides a connection point for AI assistants to access your applications and services. The server is configured with specific authentication and tool permissions that determine what actions the connected assistants can perform.
Authorization
ApiKeyAuth API key authentication
In: header
Request Body
application/json
Human-readable name to identify this MCP server instance (4-30 characters, alphanumeric, spaces, and hyphens only)
^[a-zA-Z0-9- ]+$4 <= length <= 30ID references to existing authentication configurations
List of NO_AUTH apps to enable for this MCP server
List of tool slugs that should be allowed for this server. If not provided, all available tools for the authentication configuration will be enabled.
[]Whether the MCP server is managed by Composio
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://backend.composio.dev/api/v3/mcp/servers" \ -H "Content-Type: application/json" \ -d '{ "name": "GitHub Integration Server", "auth_config_ids": [ "auth_cfg_abc123def456" ] }'{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "GitHub Integration Server",
"auth_config_ids": [
"auth_cfg_abc123def456",
"auth_cfg_xyz789"
],
"allowed_tools": [
"github-issues",
"github-repos",
"github-pull-requests"
],
"mcp_url": "https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john",
"toolkits": [
"github",
"jira",
"slack"
],
"toolkit_icons": {
"github": "https://assets.composio.dev/logos/github.png",
"jira": "https://assets.composio.dev/logos/jira.png",
"slack": "https://assets.composio.dev/logos/slack.png"
},
"commands": {
"cursor": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client cursor",
"claude": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client claude",
"windsurf": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client windsurf"
},
"updated_at": "2023-06-15T14:30:00.000Z",
"created_at": "2023-06-10T09:15:00.000Z",
"server_instance_count": 5,
"managed_auth_via_composio": true
}{
"error": {
"message": "string",
"code": 0,
"slug": "string",
"status": 0,
"request_id": "string",
"suggested_fix": "string",
"errors": [
"string"
]
}
}{
"error": {
"message": "string",
"code": 0,
"slug": "string",
"status": 0,
"request_id": "string",
"suggested_fix": "string",
"errors": [
"string"
]
}
}{
"error": {
"message": "string",
"code": 0,
"slug": "string",
"status": 0,
"request_id": "string",
"suggested_fix": "string",
"errors": [
"string"
]
}
}{
"error": {
"message": "string",
"code": 0,
"slug": "string",
"status": 0,
"request_id": "string",
"suggested_fix": "string",
"errors": [
"string"
]
}
}{
"error": {
"message": "string",
"code": 0,
"slug": "string",
"status": 0,
"request_id": "string",
"suggested_fix": "string",
"errors": [
"string"
]
}
}