Overview
Starknet MCP Server is a Model Context Protocol (MCP) server that enables AI models to interact with the Starknet blockchain.
To use the Starknet MCP Server, you can install it via Smithery or manually clone the repository and set up the environment. Start the server in development or production mode to begin interacting with Starknet.
- Retrieve the latest block from the Starknet blockchain. - Supports interaction with AI models through the MCP protocol.
- Fetching real-time blockchain data for AI applications.
- Enabling AI models to make decisions based on blockchain events.
- Integrating with smart contracts on Starknet (future feature).
Add to your AI client
Use these steps to connect 🌐 Starknet MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"starknet-mcp-abdelstark": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-starknet-mcp-abdelstark"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"starknet-mcp-abdelstark": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-starknet-mcp-abdelstark"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"starknet-mcp-abdelstark": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-starknet-mcp-abdelstark"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"starknet-mcp-abdelstark": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-starknet-mcp-abdelstark"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"starknet-mcp-abdelstark": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-starknet-mcp-abdelstark"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"starknet-mcp-abdelstark": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-starknet-mcp-abdelstark"
]
}
}
}FAQ
What is the MCP protocol?
The Model Context Protocol (MCP) allows AI models to communicate and interact with various data sources, including blockchains.
Is Starknet MCP Server free to use?
Yes! Starknet MCP Server is open-source and free to use.
What are the prerequisites for running the server?
You need Node.js version 18 or higher to run the Starknet MCP Server.