Overview
OpenRPC is a Model Context Protocol (MCP) server that enables users to interact with and discover JSON-RPC APIs using the OpenRPC specification.
To use OpenRPC, install the required dependencies, build the server, and configure it for use with clients such as Claude Desktop.
rpc_call: Call arbitrary JSON-RPC methods specifying server URL, method name, and parameters, with results returned in JSON format. -rpc_discover: Discover available JSON-RPC methods utilizing OpenRPC'srpc.discoverspecification to list all methods on a server.
- Interfacing with JSON-RPC APIs for application development.
- Automating API interactions for testing and debugging.
- Discovering API capabilities for easier integration.
Add to your AI client
Use these steps to connect OpenRPC in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"openrpc": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-openrpc"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"openrpc": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-openrpc"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"openrpc": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-openrpc"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"openrpc": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-openrpc"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"openrpc": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-openrpc"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"openrpc": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-openrpc"
]
}
}
}FAQ
What is JSON-RPC?
JSON-RPC is a remote procedure call (RPC) protocol encoded in JSON that allows for communication between a client and a server.
Is OpenRPC compatible with other RPC protocols?
OpenRPC is specifically tailored for JSON-RPC APIs, ensuring a smooth experience for applications that use this protocol.
How can I debug the server?
You can use the MCP Inspector for debugging, which provides a URL for accessing debugging tools in your browser.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":67,"uuid":"0698aeb8-e097-467a-8931-6d77209efd0f","name":"openrpc","title":"OpenRPC","description":"Interact with and discover JSON-RPC APIs via OpenRPC.","avatar_url":"https://r2.trys.ai/imgs/clg81s2j-1733451370914.png","created_at":"$D2024-12-05T16:27:19.593Z","updated_at":"$D2024-12-13T07:46:49.865Z","status":"created","author_name":"","author_avatar_url":"","tags":"openrpc,json-rpc,api-discovery","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/shanejonas/openrpc-mpc-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]