Ask Starknet MCP
Exposes the ask-starknet MCP server to Zed as a context server.
MCP servers
How to install
With Forge Super installed, the button above opens the app on this extension, where you press Install. Nothing is installed until you do.
You can also open the Extensions panel in the app and search for Ask Starknet MCP. The extension's id is ask-starknet-mcp.
Don't have Forge Super yet? Download it here.
README
From the extension's repository, written by its authors and not by Mentenaz. See the source.
Ask Starknet MCP Extension for Zed
A Zed extension that exposes the ask-starknet MCP server as a context server, enabling AI assistants to interact with the Starknet blockchain directly from Zed.
Features
- Query Starknet blockchain data (blocks, transactions, account balances)
- Deploy and interact with smart contracts
- Access to all ask-starknet MCP tools through Zed's AI assistant
- Configurable LLM providers (Anthropic Claude, OpenAI, Google Gemini)
Prerequisites
- Zed Editor
- Node.js ≥ 18
- The ask-starknet repository built locally
Installation
-
Build ask-starknet:
git clone https://github.com/KasarLabs/ask-starknet cd ask-starknet pnpm install pnpm -w build -
Install the extension in Zed:
- Clone this repository
- In Zed: Extensions → Ask Starknet MCP
- Select install
-
Configure settings in Zed (
Cmd/Ctrl + ,):{ "context_servers": { "ask-starknet-mcp": { "enabled": true, "settings": { "ask_starknet_path": "/absolute/path/to/ask-starknet", "anthropic_api_key": "sk-ant-...", "starknet_rpc_url": "https://starknet-mainnet.public.blastapi.io", "starknet_account_address": "0x...", "starknet_private_key": "0x..." } } } }
Configuration
Required Settings
ask_starknet_path: Absolute path to your ask-starknet repository- At least one LLM API key:
anthropic_api_key: For Claude models (recommended)gemini_api_key: For Google Gemini modelsopenai_api_key: For OpenAI models
Optional Settings
starknet_rpc_url: Starknet RPC endpointstarknet_account_address: Your Starknet account addressstarknet_private_key: Your account private key (for transactions)model_name: Specific model to use (defaults based on API key)
Usage
- Open the Agent Panel in Zed (
View → Agent Panel) - Enable the "Ask Starknet" context server for your assistant
- Ask Starknet-related questions:
- "What's the current block number?"
- "Check the balance of address 0x..."
- "Deploy a simple storage contract"
Troubleshooting
- "ask_starknet_path not found": Ensure the path is absolute and points to your built ask-starknet repo
- "index.js not found": Run
pnpm -w buildin the ask-starknet directory - "At least one LLM API key required": Set a valid API key in your settings
- Process not starting: Run
zed --foregroundto see detailed logs
Development
# Build the extension
cargo clean
cargo build --target wasm32-wasi --release
# Or use Zed's rebuild button in Extensions
License
MIT - See LICENSE file for details.