Ask MCP Server

Starknet MCP Server - Model Context Protocol server for Starknet blockchain

Local serverstdio

What is the Ask MCP server?

Connect Ask to Claude, Cursor or any other MCP client and it stops being a tab you switch to. Starknet MCP Server - Model Context Protocol server for Starknet blockchain. The ask mcp server is what makes that connection.

What the server does

A comprehensive collection of Model Context Protocol (MCP) servers for Starknet blockchain applications. This repository provides a unified Starknet MCP entrypoint that intelligently routes requests to specialized MCP servers, enabling AI applications to seamlessly interact with Starknet protocols, wallets, and DeFi applications.

Model Context Protocol (MCP) is an open standard that enables AI applications to securely connect to external data sources and tools. MCP servers act as connectors between AI models and external services, providing structured access to blockchain data and operations.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • Scarb — Cairo development, compilation, and proving tools
  • Contract — Smart contract declaration and deployment
  • Prerequisites — The Prerequisites tool exposed by this server
  • Installation — The Installation tool exposed by this server

Installation

Installation goes through your MCP client rather than a global install: point it at pnpm on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

Credentials and setup notes

Configuration is passed through the environment: STARKNET_ACCOUNT_ADDRESS, STARKNET_PRIVATE_KEY, STARKNET_RPC_URL, ANTHROPIC_API_KEY, GEMINI_API_KEY, OPENAI_API_KEY, MODEL_NAME. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

  • Node.js 16+ and pnpm - Starknet wallet credentials - AI application that supports MCP (like Claude Desktop, etc.)

Where it fits

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Ask's toolset — Scarb, Contract, Prerequisites and 1 more — is a fair guide to whether it matches your workflow. It is maintained by ijusttookadnatest; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Ask's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
ScarbCairo development, compilation, and proving tools
ContractSmart contract declaration and deployment
PrerequisitesThe Prerequisites tool exposed by this server.
InstallationThe Installation tool exposed by this server.

How to install the Ask MCP server

{
  "mcpServers": {
    "starknet-1": {
      "command": "npx",
      "args": ["-y", "pnpm"],
      "env": {
        "STARKNET_ACCOUNT_ADDRESS": "your-value",
        "STARKNET_PRIVATE_KEY": "your-value",
        "STARKNET_RPC_URL": "your-value",
        "ANTHROPIC_API_KEY": "your-value",
        "GEMINI_API_KEY": "your-value",
        "OPENAI_API_KEY": "your-value",
        "MODEL_NAME": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Node.js 16+ and pnpm - Starknet wallet credentials - AI application that supports MCP (like Claude Desktop, etc.)
VariableDescriptionRequired
STARKNET_ACCOUNT_ADDRESSConfiguration value read at startup.Optional
STARKNET_PRIVATE_KEYCredential the server authenticates with.Yes
STARKNET_RPC_URLEndpoint or connection string the server talks to.Yes
ANTHROPIC_API_KEYCredential the server authenticates with.Yes
GEMINI_API_KEYCredential the server authenticates with.Yes
OPENAI_API_KEYCredential the server authenticates with.Yes
MODEL_NAMEConfiguration value read at startup.Optional

Example prompts to try

  • Use Ask to Scarb.
  • Use Ask to Contract.
  • Use Ask to Prerequisites.

Frequently asked questions

It connects Ask to MCP-compatible AI assistants such as Claude and Cursor, exposing 4 tools (Scarb, Contract, Prerequisites, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Ask directly.