Starknet MCP Server
by mcpdotdirect
A comprehensive Model Context Protocol (MCP) server for the Starknet blockchain. This server provides AI agents with the ability to interact with Starknet networks, query blockchain data, manage wallets, and interact with smart contracts.
Last updated: N/A
What is Starknet MCP Server?
The Starknet MCP Server leverages the Model Context Protocol to provide blockchain services to AI agents. It offers a comprehensive interface to the Starknet ecosystem, powering AI assistants with the ability to interact with Starknet blockchain data and operations through natural language.
How to use Starknet MCP Server?
The server can be run in stdio or HTTP mode. In stdio mode, it's suitable for CLI tools and AI assistants. In HTTP mode, it provides a REST API and Server-Sent Events (SSE) for web applications. Configuration can be done via command-line arguments or a .cursor/mcp.json
file. It can be used with AI assistants like Claude and GPT by configuring the assistant to use the MCP server.
Key features of Starknet MCP Server
Starknet Integration: Full Starknet blockchain integration using Starknet.js
Network Support: Supports both Mainnet and Sepolia testnet
StarknetID Integration: Resolution of Starknet IDs to addresses and vice versa
Native Token Support: Support for both ETH and STRK native tokens
Smart Contract Interaction: Call and query Starknet smart contracts
Use cases of Starknet MCP Server
Querying blockchain state (balances, transactions, blocks)
Interacting with Cairo smart contracts
Transferring tokens (ETH, STRK, and other ERC20 tokens)
Working with NFTs and token metadata
Resolving StarknetID domains
Making both read and write operations with proper transaction handling
FAQ from Starknet MCP Server
What networks are supported?
What networks are supported?
The server supports Starknet Mainnet and Sepolia testnet.
How do I install the server?
How do I install the server?
You can use npx
to run it directly, install it globally with npm install -g @mcpdotdirect/starknet-mcp-server
, or install it locally in your project.
How do I run the server?
How do I run the server?
You can run it in stdio mode with npx @mcpdotdirect/starknet-mcp-server
or in HTTP mode with npx @mcpdotdirect/starknet-mcp-server http
.
How do I configure the server?
How do I configure the server?
The server uses default configurations for network and port. You can modify these in src/core/chains.ts
and src/server/http-server.ts
respectively.
How do I use the server with an AI assistant like Cursor?
How do I use the server with an AI assistant like Cursor?
You can configure Cursor to use the MCP server by adding a new MCP server in Cursor's settings, specifying the command to run the server. Alternatively, you can create a .cursor/mcp.json
file.