# openrpc-mpc-server

> MCP Server

This repository provides an OpenRPC MCP server, enabling JSON-RPC functionality. It includes tools for calling methods, discovering available methods, and debugging with the MCP Inspector, facilitating integration with Claude Desktop.

## Overview

- **Category:** Developer Tools
- **Language:** JavaScript
- **Stars:** 43
- **Forks:** 6
- **Owner:** shanejonas
- **GitHub:** https://github.com/shanejonas/openrpc-mpc-server
- **Created:** 2024-12-03T03:34:12+00:00
- **Updated:** 2025-03-23T21:19:41+00:00
- **Source:** https://model-context-protocol.com/servers/openrpc-json-rpc-model-context-server

## Setup

## Setup

Install dependencies:

```bash
npm install
```

Build the server:

```bash
npm run build
```

For development with auto-rebuild:

```bash
npm run watch
```

To use with Claude Desktop, add the server config:

On MacOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
On Windows: `%APPDATA%/Claude/claude_desktop_config.json`

```json
{
  "mcpServers": {
    "openrpc": {
      "command": "npx",
      "args": ["-y", "openrpc-mcp-server"]
    }
  }
}
```

Since MCP servers communicate over stdio, debugging can be challenging, using the MCP Inspector is recommended:

```bash
npm run inspector
```

The Inspector will provide a URL to access debugging tools in your browser.

## Tools

## Available Tools

		1. `rpc_call` (Call arbitrary JSON-RPC methods, specify server URL, method name, and parameters, and returns JSON-formatted results)
		2. `rpc_discover` (Discover available JSON-RPC methods using OpenRPC's `rpc.discover` specification, and lists all methods on a given server)
