The Starknet MCP Server provides read-only access to the Starknet blockchain through various RPC methods, including:
- Read Blockchain Data: Access blocks, transactions, receipts, state updates, and storage information
- Query Blockchain State: Retrieve class hashes, class definitions, nonces, and chain ID
- Event Handling: Get events from the blockchain
- Blockchain Status: Check syncing status, block numbers/hashes, and get chain specifications
- Contract Interaction: Perform read-only contract calls
Writing operations and fee estimation methods are currently not supported.
starknet-mcp
MCP server for Starknet. Makes the following Starknet RPC method available through MCP:
Write methods are not yet supported.
Installation
Install Bun. Clone this repo. Install the dependencies with bun install
. Update Claude's MCP config - see instructions 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.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
Facilitates interaction with Starknet blockchain via MCP by exposing various RPC methods, allowing users to query chain states, transaction details, and block information using natural language queries.
Related Resources
Related MCP Servers
- -securityAlicense-qualityThis MCP server provides connection to Starrocks allows you to explore this query engine with minimum effort.Last updated -1PythonMIT License
- AsecurityAlicenseAqualityInteract with the NEAR blockchain through MCP callsLast updated -20220TypeScriptMIT License
- AsecurityAlicenseAqualityAn MCP server that enables LLMs to perform blockchain operations on the Base network through natural language commands, including wallet management, balance checking, and transaction execution.Last updated -46612TypeScriptMIT License
- AsecurityFlicenseAqualityAn MCP server that fetches on-chain blockchain data via the Ankr API, allowing LLMs to retrieve token balances for wallet addresses on specific networks.Last updated -16681TypeScript