Generate MCP URL with custom parameters

Generates 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.

Headers

x-api-keystringRequired

Request

This endpoint expects an object.
mcp_server_idstringRequired
Unique identifier of the MCP server to generate URL for
managed_auth_by_composiobooleanOptionalDefaults to false
Flag indicating if Composio manages authentication
user_idslist of stringsOptional
List of user identifiers for whom the URL is generated
connected_account_idslist of stringsOptional
List of connected account identifiers

Response

Successfully generated MCP URL. Returns the complete URL with all specified query parameters.
mcp_urlstring
Base MCP URL without any query parameters
connected_account_urlslist of strings
List of URLs generated for each connected account ID
user_ids_urllist of strings
List of URLs generated for each user ID

Errors