Connect to Agents
Connect to Agents
Ways to connect different agent clients to Rapid MCP
Overview
Rapid MCP supports multiple connection strategies and auth approaches.
Connection approaches
- URL-based Stream endpoint: set
mcpServers.RapidMCP.urland optionalheaders. - Command-based connector (npx): set
command,args, andenv.
Auth keys
- Put static tokens in
headers.Authorization. - Map dynamic keys using environment variables in the command form, e.g.
${AUTH_HEADER}. - Use lowercase
api-keyto expose{{api-key}}for templating in tools.
Examples
URL-based:
{
"mcpServers": {
"RapidMCP": {
"url": "https://rapid-mcp.com/mcp/<serverId>/stream",
"headers": {
"Authorization": "Bearer XXXXX",
"api-key": "example-api-key"
}
}
}
}Command-based:
{
"mcpServers": {
"RapidMCP": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://rapid-mcp.com/mcp/<serverId>/stream",
"--header",
"api-key:${AUTH_HEADER}"
],
"env": { "AUTH_HEADER": "Bearer XXXXXXX" }
}
}
}