developer-tools

Starknet

mcpdotdirect

by mcpdotdirect

Connect to Starknet for seamless blockchain data queries, token management, and transactions on mainnet and sepolia.

Provides a bridge to the Starknet blockchain for querying data, managing tokens, resolving IDs, and executing transactions on both mainnet and sepolia networks.

github stars

5

0 commentsdiscussion

Both formats append explainx.ai attribution and the canonical URL for this MCP server listing.

Supports mainnet and sepolia networksBuilt-in Starknet ID resolution

best for

  • / DeFi developers building on Starknet
  • / Wallet applications needing balance checks
  • / Blockchain analytics and monitoring
  • / Identity resolution for Starknet names

capabilities

  • / Query ETH and STRK token balances
  • / Resolve Starknet ID names to addresses
  • / Get blockchain network information
  • / Validate Starknet domain names
  • / Retrieve complete user profiles
  • / Check native token balances

what it does

Connects AI agents to Starknet blockchain networks for querying account balances, resolving Starknet IDs, and accessing network information. Works with both mainnet and sepolia testnets.

about

Starknet is a community-built MCP server published by mcpdotdirect that provides AI assistants with tools and capabilities via the Model Context Protocol. Connect to Starknet for seamless blockchain data queries, token management, and transactions on mainnet and sepolia. It is categorized under developer tools. This server exposes 25 tools that AI clients can invoke during conversations and coding sessions.

how to install

You can install Starknet in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

license

MIT

Starknet is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

readme

Starknet MCP Server

smithery badge License: MIT TypeScript MCP Starknet.js

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.

<a href="https://glama.ai/mcp/servers/@mcpdotdirect/starknet-mcp-server"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@mcpdotdirect/starknet-mcp-server/badge" alt="Starknet Server MCP server" /> </a>

📋 Contents

🔭 Overview

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.

Key capabilities include:

  • Reading 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 (similar to ENS for Ethereum)
  • Making both read and write operations with proper transaction handling

All services are exposed through a consistent interface of MCP tools and resources, making it easy for AI agents to discover and use Starknet blockchain functionality. Every tool that accepts Starknet addresses also supports StarknetID, automatically resolving human-readable identities to addresses behind the scenes.

✨ Features

  • 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
  • Dual Transport: Run as stdio server or HTTP server for different integration needs
  • AI-Ready: Designed to be used with Claude, GPT, and other AI assistants

Blockchain Information

  • Query chain information (chain ID, latest block)
  • Explore block details and transactions
  • View transaction receipts and status
  • Get address information and contract data

Native Token Operations

  • Get ETH and STRK balances for any address
  • Transfer ETH and STRK between accounts
  • View combined native token balances

Token Operations

  • Get ERC20 token balances and information
  • Transfer ERC20 tokens
  • View token supply and metadata
  • Check token ownership

NFT Operations

  • Check NFT ownership by token ID
  • Get NFT collection information
  • View NFT balances for addresses

Smart Contract Interaction

  • Call read-only contract functions
  • Execute contract writes with transaction confirmation
  • Get contract storage information
  • View ABIs and contract class information

StarknetID

  • Resolve Starknet addresses to Starknet IDs
  • Resolve Starknet IDs to addresses
  • Get complete Starknet ID profiles with verification data
  • Validate Starknet domains

🔧 Networks Supported

The server supports the following Starknet networks:

  • Mainnet: The primary Starknet production network
  • Sepolia: Starknet's testnet on Ethereum's Sepolia

🛠️ Prerequisites

  • Bun 1.0.0 or higher (recommended)
  • Node.js 18.0.0 or higher

📦 Installation

Installing via Smithery

To install starknet-mcp-server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @mcpdotdirect/starknet-mcp-server --client claude

Option 1: Use without installation (npx)

The easiest way to get started is to use npx to run the package directly:

# Run the stdio server without installation
npx @mcpdotdirect/starknet-mcp-server

# Run the HTTP server without installation
npx @mcpdotdirect/starknet-mcp-server http

This will automatically download and run the latest version without needing to install it first.

Option 2: Global installation

If you plan to use it frequently, you can install it globally:

# Install globally
npm install -g @mcpdotdirect/starknet-mcp-server

# Then run from anywhere
starknet-mcp-server
starknet-mcp-server http

Option 3: Local project installation

# Add to your project
npm install @mcpdotdirect/starknet-mcp-server

# Using yarn
yarn add @mcpdotdirect/starknet-mcp-server

# Using pnpm
pnpm add @mcpdotdirect/starknet-mcp-server

Then add to your package.json scripts:

"scripts": {
  "starknet-mcp": "starknet-mcp-server",
  "starknet-mcp-http": "starknet-mcp-server http"
}

Option 4: Running from source

If you want to run from source or develop locally:

# Clone the repository
git clone https://github.com/mcpdotdirect/starknet-mcp-server.git
cd starknet-mcp-server

# Install dependencies
npm install

# Start the stdio server
npm start

# Or start the HTTP server
npm run start:http

For development with auto-reload:

# Development mode with stdio
npm run dev

# Development mode with HTTP
npm run dev:http

⚙️ Server Configuration

The server uses the following default configuration:

  • Default Network: Mainnet
  • Server Port: 3000 (HTTP mode)
  • Server Host: 0.0.0.0 (accessible from any network interface)

These values are hardcoded in the application. If you need to modify them, you can edit the following files:

  • For network configuration: src/core/chains.ts
  • For server configuration: src/server/http-server.ts

🔍 Usage

Running the Server

You can run the Starknet MCP Server in two modes:

# Run the server in stdio mode (for CLI tools and AI assistants)
npx @mcpdotdirect/starknet-mcp-server

# Run the server in HTTP mode (for web applications)
npx @mcpdotdirect/starknet-mcp-server http

The HTTP server runs on port 3000 by default and provides both a REST API and Server-Sent Events (SSE) for real-time communication.

Connecting from Cursor

To connect to the Starknet MCP server from Cursor:

  1. Open Cursor and go to Settings (gear icon in the bottom left)

  2. Click on "Features" in the left sidebar

  3. Scroll down to "MCP Servers" section

  4. Click "Add new MCP server"

  5. Enter the following details:

    • Server name: starknet-mcp-server
    • Type: command
    • Command: npx @mcpdotdirect/starknet-mcp-server
  6. Click "Save"

Once connected, you can use the MCP server's capabilities directly within Cursor. The server will appear in the MCP Servers list and can be enabled/disabled as needed.

Using mcp.json with Cursor

For a more portable configuration that you can share with your team or use across projects, you can create an .cursor/mcp.json file in your project's root directory:

{
  "mcpServers": {
    "starknet-mcp-server": {
      "command": "npx",
      "args": [
        "@mcpdotdirect/starknet-mcp-server"
      ]
    },
    "starknet-mcp-http": {
      "command": "npx",
      "args": [
        "@mcpdotdirect/starknet-mcp-server",
        "http"
      ]
    }
  }
}

Place this file in your project's .cursor directory (create it if it doesn't exist), and Cursor will automatically detect and use these MCP server configurations when working in that project.

HTTP Mode with SSE

If you're developing a web application and want to connect to the HTTP server with Server-Sent Events (SSE), you can use this configuration:

{
  "mcpServers": {
    "starknet-mcp-sse": {
      "url": "http://localhost:3000/sse"
    }
  }
}

Connecting using Claude CLI

If you're using Claude CLI, you can connect to the MCP server with just two commands:

# Add the MCP server using npx
claude mcp add starknet-mcp-server npx @mcpdotdirect/starknet-mcp-server

# Start Claude with the MCP server enabled
claude

Example: Using the MCP Server in Cursor

After configuring the MCP server, you can easily use it in Cursor. For example:

  1. Create a new JavaScript/TypeScript file in your project:
// starknet-example.js
async function main() {
  try {
    // When using with Cursor, you can simply ask Cursor to:
    // "Check the ETH balance of address 0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7 on Starknet mainnet"
    // Or "Lookup the Starknet ID for address 0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"
    
    // Cursor will use the MCP server to execute these operations 
    // without requiring any additional code from you
  } catch (error) {
    console.error("Error:", error.message);
  }
}

main();
  1. With the file open in Cursor, you can ask Cursor to:
    • "Check the ETH balance of vitalik.stark"
    • "Get information about the latest block on Starknet"
    • "Look up the owner of NFT #123 in collection 0x..."

Example: Getting an ETH Balance with Starknet ID

//

---

FAQ

What is the Starknet MCP server?
Starknet is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
How do MCP servers relate to agent skills?
Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
How are reviews shown for Starknet?
This profile displays 45 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.8 out of 5—verify behavior in your own environment before production use.

Use Cases

Extended AI Capabilities

Add new capabilities to Claude beyond text generation

Example

Access external data sources, execute code, interact with tools and services

Transform Claude from chatbot to action-taking agent

Context Enhancement

Provide Claude with access to relevant context and data

Example

Load project documentation, access knowledge bases, query databases

Get more accurate, context-aware responses

Workflow Automation

Automate multi-step workflows combining AI and external tools

Example

Research → Summarize → Create document → Send notification

Complete complex tasks end-to-end without manual steps

Implementation Guide

Prerequisites

  • Claude Desktop 0.7.0+ or Cursor IDE with MCP support
  • Basic understanding of MCP architecture and capabilities
  • Access credentials for integrated services (if required)
  • Willingness to experiment and iterate on configuration

Time Estimate

15-60 minutes depending on server complexity

Installation Steps

  1. 1.Install MCP server: npm install -g [package-name] or via GitHub
  2. 2.Add server configuration to ~/.claude/mcp.json
  3. 3.Provide required credentials and configuration
  4. 4.Restart Claude Desktop to load new server
  5. 5.Test basic functionality with simple prompts
  6. 6.Explore capabilities and experiment with use cases
  7. 7.Document successful patterns for reuse

Troubleshooting

  • MCP server not loading: Check config syntax, verify installation
  • Connection errors: Check network, firewall, credentials
  • Feature not working: Read server docs, check required parameters
  • Performance issues: Monitor resource usage, check for network latency
  • Conflicts with other servers: Check port assignments, namespace collisions

Best Practices

✓ Do

  • +Read server documentation thoroughly before setup
  • +Start with simple use cases to validate functionality
  • +Test in non-production environment first
  • +Monitor resource usage and performance
  • +Keep servers updated for bug fixes and new features
  • +Document configuration for team members
  • +Use environment variables for sensitive configuration

✗ Don't

  • Don't grant overly permissive access to MCP servers
  • Don't skip reading security considerations in docs
  • Don't expose sensitive data without proper controls
  • Don't run untrusted MCP servers without code review
  • Don't ignore error messages—investigate root cause

💡 Pro Tips

  • Combine multiple MCP servers for powerful workflows
  • Create custom MCP servers for your specific needs
  • Share successful configurations with team
  • Use MCP inspector for debugging
  • Join MCP community for tips and troubleshooting

Technical Details

Architecture

Model Context Protocol standardizes how AI hosts (Claude, Cursor) communicate with external tools and data sources through server implementations.

Protocols

  • Model Context Protocol (MCP)
  • JSON-RPC 2.0
  • stdio or HTTP transport

Compatibility

  • Claude Desktop
  • Cursor IDE
  • Custom MCP clients

When to Use This

✓ Use When

Use when you need Claude to access external data, execute actions, or integrate with tools. Best for extending AI capabilities beyond conversation.

✗ Avoid When

Avoid when native integrations exist (use official APIs directly), for real-time critical systems, or when security/compliance requires zero external dependencies.

Integration

  • Tool composition: Chain multiple MCP tools in workflows
  • Context augmentation: Provide AI with relevant external data
  • Action delegation: Let AI execute tasks on external systems
  • Bidirectional sync: Keep AI context and external systems in sync

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.

List & Promote Your MCP Server

Share your MCP server with the developer community

GET_STARTED →
MCP server reviews

Ratings

4.845 reviews
  • Dhruvi Jain· Dec 28, 2024

    Starknet is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.

  • Ira Patel· Dec 16, 2024

    Starknet is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.

  • Oshnikdeep· Nov 19, 2024

    We evaluated Starknet against two servers with overlapping tools; this profile had the clearer scope statement.

  • Ira Gupta· Nov 7, 2024

    We wired Starknet into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.

  • Ava Ghosh· Nov 7, 2024

    Starknet reduced integration guesswork — categories and install configs on the listing matched the upstream repo.

  • Charlotte Anderson· Oct 26, 2024

    According to our notes, Starknet benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.

  • Nia Park· Oct 26, 2024

    I recommend Starknet for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.

  • Ganesh Mohane· Oct 10, 2024

    Starknet has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.

  • Naina Martinez· Sep 13, 2024

    We wired Starknet into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.

  • Luis Malhotra· Sep 9, 2024

    We evaluated Starknet against two servers with overlapping tools; this profile had the clearer scope statement.

showing 1-10 of 45

1 / 5