Starknet MCP Server

by milancermak

starknet-mcp

MCP server for Starknet. Makes the following Starknet RPC method available through MCP:

starknet_getBlockWithTxHashes starknet_getBlockWithTxs starknet_getBlockWithReceipts starknet_getStateUpdate starknet_getStorageAt starknet_getTransactionStatus starknet_getTransactionByHash starknet_getTransactionByBlockIdAndIndex starknet_getTransactionReceipt starknet_getClass starknet_getClassHashAt starknet_getClassAt starknet_getBlockTransactionCount starknet_call starknet_getEvents starknet_getNonce starknet_blockNumber starknet_blockHashAndNumber starknet_chainId starknet_syncing starknet_specVersion

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:

{ "mcpServers": { "starknet": { "command": "bun", "args": ["/PATH/TO/THIS/REPO/starknet-mcp/index.ts"], "env": { "STARKNET_RPC_URL": "https://starknet-mainnet.public.blastapi.io/rpc/v0_7" } } } }

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.

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

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.

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.

  1. Installation
    1. Usage
      1. Quirks

        Related MCP Servers

        • A
          security
          F
          license
          A
          quality
          An MCP server that connects Claude to BrianKnows' blockchain knowledge base, allowing users to search for blockchain/DeFi information and interact with a specialized agent across multiple knowledge bases.
          Last updated -
          3
          JavaScript
        • -
          security
          A
          license
          -
          quality
          An MCP server that provides seamless integration with the Neo N3 blockchain, allowing Claude to interact with blockchain data, manage wallets, transfer assets, and invoke smart contracts.
          Last updated -
          139
          2
          TypeScript
          MIT License
          • Linux
          • Apple
        • -
          security
          F
          license
          -
          quality
          An MCP server that connects Claude for Desktop with blockchain functionality, allowing users to check balances and send tokens on EVM and Solana chains through natural language interactions.
          Last updated -
          TypeScript
          • Apple
        • A
          security
          A
          license
          A
          quality
          A tool that enables users to interact with blockchain data to retrieve token total supply, chain IDs, and filtered RPC endpoints across different blockchain networks.
          Last updated -
          6
          9
          JavaScript
          MIT License

        View all related MCP servers

        ID: kfj96s92mg