Starknet MCP Server — Claude Code MCP server: setup
This MCP server lets AI agents read Starknet data, handle tokens, and call contracts. It covers Mainnet and Sepolia workflows.
MIT 784 installs ★ 7 updated 2025-11-26
Open on GitHubWhat Starknet MCP Server does
Starknet MCP Server gives an AI agent an MCP interface to Starknet. It can inspect chain details, blocks, transactions, ETH, STRK and ERC20 balances, plus token and NFT data.
The server supports read-only contract calls and contract writes with transaction handling. It can transfer ETH, STRK and other tokens, while StarknetID names can be resolved to addresses and back. It runs over stdio or HTTP.
Run it with Bun 1.0.0 or later, or Node.js 18.0.0 or later. HTTP mode uses port 3000 and host 0.0.0.0 by default, so account for that network exposure when starting the server.
What it helps with
- read an ETH or STRK balance for an address
- inspect a transaction and its receipt
- call a Cairo contract function
- send ERC20 tokens between accounts
- resolve a StarknetID name to an address
Example prompts for the agent
- Show the ETH and STRK balances for
0x...on Mainnet. - Check transaction
0x...and return its receipt. - Call the read-only contract function at
0x...with these arguments.
How to install Starknet MCP Server
Install
The MCP registry has no launch command for it: see the repository README
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Starknet MCP Server
How do I install Starknet MCP Server in Claude Code?
Start the server with npx @mcpdotdirect/starknet-mcp-server. For HTTP mode, run npx @mcpdotdirect/starknet-mcp-server http.
What does Starknet MCP Server do?
It exposes Starknet tools for an agent: chain data, balances, tokens, NFTs, StarknetID lookups, contract calls and transactions.
Which Starknet networks does it support?
It supports Mainnet and the Sepolia testnet.