MCP
Generate MCP URL with custom parameters
Changed onGenerates a Model Control Protocol (MCP) URL for an existing server with custom query parameters. The URL includes user-specific parameters and configuration flags that control the behavior of the MCP connection.
post/api/v3.1/mcp/servers/generate
Request
- Base URLhttps://backend.composio.dev
- URLhttps://backend.composio.dev/api/v3.1/mcp/servers/generate
- AuthAPI key in header x-api-key
Request body
Example request
{
"mcp_server_id": "550e8400-e29b-41d4-a716-446655440000",
"managed_auth_by_composio": true,
"user_ids": [
"user_123456",
"user_789012"
],
"connected_account_ids": [
"ca_1a2b3c4d5e6f",
"ca_7g8h9i0j1k2l",
"ca_3m4n5o6p7q8r"
]
}Response
Successfully generated MCP URL. Returns the complete URL with all specified query parameters.
Example response
{
"mcp_url": "https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000",
"connected_account_urls": [
"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?include_composio_helper_actions=true&connected_account_id=ca_1a2b3c4d5e6f",
"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?include_composio_helper_actions=true&connected_account_id=ca_7g8h9i0j1k2l"
],
"user_ids_url": [
"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?include_composio_helper_actions=true&user_id=user_123456",
"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?include_composio_helper_actions=true&user_id=user_789012"
]
}Changes
- info
api operation id
postV3_1McpServersGenerateremoved and replaced withpostMcpServersGenerate - info
api tag
Serversremoved - info
api tag
URL Generationremoved - info
endpoint deprecated
- info
request property
deprecated
- info
- info
the endpoint scheme security
CookieAuthwas removed from the API - info
the endpoint scheme security
UserApiKeyAuthwas removed from the API
- info