starknet.com
starknet.com logo

Starknet

Integrates with Starknet's JSON-RPC API to enable querying blockchain state, retrieving transaction data, and executing...

Created byApr 23, 2025

starknet-mcp

[MCP](https://modelcontextprotocol.io) server for Starknet. Makes the following Starknet RPC method available through MCP:
Write methods are not yet supported.
<a href="https://glama.ai/mcp/servers/kfj96s92mg"><img width="380" height="200" src="https://glama.ai/mcp/servers/kfj96s92mg/badge" alt="Starknet Server MCP" /></a>

Installation

Install [Bun](https://bun.sh/). Clone this repo. Install the dependencies with `bun install`. Update Claude's MCP config - see [instructions](https://modelcontextprotocol.io/quickstart/user) for your particular OS. You'll want something like this in the `claude_desktop_config.json` file:

Usage

After correctly configuring Claude Desktop, it will have access to all the available methods. You can start asking Claude questions about the state of the chain, e.g. "What is the latest block hash and number on Starknet?". If Claude determines it has to use an MCP method to answer your question, it will ask you for permissions:
You'll see the used method, its input and output inline in the chat.

Quirks

Methods `starknet_estimateFee` and `starknet_estimateMessageFee` are not yet supported.
Claude doesn't 100% follow the tool inputSchema. It prefers sending strings over anything else. Some of this is prevented in the code, but if you encounter any error, please open an issue.