Set up Model Context Protocol connections via HTTP, stdio, and SSE for external tool discovery
The Model Context Protocol (MCP) enables OpenRails to discover and use tools provided by external servers. MCP uses a standard open protocol for communication and supports three transport modes: HTTP, stdio, and Server-Sent Events (SSE). Connected MCP servers expose tools that agents can invoke during execution.
| Mode | Description | Best For |
|---|---|---|
| HTTP | Standard HTTP POST requests to a remote MCP server endpoint | Remote servers, cloud-hosted tools, microservices |
| stdio | Communication via standard input/output with a local process | Local tools, CLI-based integrations, development |
| SSE | Server-Sent Events for streaming responses from MCP servers | Long-running tools, streaming results, real-time data |
From the sidebar, go to Tools > MCP Servers to view existing connections.
Click Add MCP Server to open the connection configuration form.
Choose the transport mode based on how your MCP server is deployed:
https://mcp.example.com/rpc)node /path/to/server.js)If the MCP server requires authentication, provide the necessary credentials (API key, bearer token, or client certificate).
Click Discover Tools to query the server for available tools. OpenRails will display all available tools with their schemas.
Click Health Check to verify the connection is stable and the server is responding correctly.
Click Save to store the MCP server connection. Discovered tools are now available in the agent tool catalog.
MCP supports approval and clarification workflows for sensitive tool invocations: