ask-starknet
Provides integration with OKX wallet for managing accounts and transactions on Starknet.
Provides integration with OpenZeppelin account for account management and transaction signing on Starknet.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ask-starknetWhat's my STRK token balance?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
Table of Contents
Related MCP server: Starknet MCP Server
What is MCP?
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.
Quick Start
Prerequisites
Node.js 16+ and pnpm
Starknet wallet credentials
AI application that supports MCP (like Claude Desktop, etc.)
Installation
git clone https://github.com/kasarlabs/ask-starknet.git
cd ask-starknet
pnpm install
pnpm buildEnvironment Configuration
Required Environment Variables
The Snaknet MCP requires at least one LLM API key to function:
# At least one of these is required
export ANTHROPIC_API_KEY="sk-..." # For Claude models (recommended)
export GEMINI_API_KEY="..." # For Google Gemini models
export OPENAI_API_KEY="sk-..." # For OpenAI models
# Optional: specify model name (defaults based on API key provider)
export MODEL_NAME="claude-sonnet-4-20250514"Optional Environment Variables
Depending on which Starknet operations you want to perform, you may need additional environment variables. The router dynamically loads all environment variables and passes them to the appropriate MCPs as needed.
For example:
STARKNET_RPC_URL- For interacting with Starknet blockchainSTARKNET_ACCOUNT_ADDRESS- For transaction signingSTARKNET_PRIVATE_KEY- For account operations
Simply add any environment variables required by the MCPs you want to use, and they will be automatically available to the router.
Usage
Using the Unified Starknet MCP Router (Recommended)
The Starknet MCP router provides a single entrypoint that automatically routes your requests to the appropriate specialized MCP server:
# Run the unified Starknet MCP router
cd packages/mcp
node build/index.jsThe router uses an AI-powered graph to analyze your requests and route them to the most suitable MCP server (ERC20, AVNU, Argent, etc.) automatically.
Running Individual MCP Servers
You can also run individual MCP servers directly:
# Run ERC20 MCP server
cd packages/mcps/erc20
node build/index.js
# Run Argent wallet MCP server
cd packages/mcps/argent
node build/index.js
# Run AVNU DEX MCP server
cd packages/mcps/avnu
node build/index.jsIntegration with AI Applications
Using the Unified Router (Recommended)
Configure your AI application to use the Starknet MCP router for automatic routing:
{
"mcpServers": {
"ask-starknet": {
"command": "node",
"args": ["/path/to/ask-starknet/packages/mcp/build/index.js"],
"env": {
"STARKNET_ACCOUNT_ADDRESS": "your_address",
"STARKNET_PRIVATE_KEY": "your_private_key",
"STARKNET_RPC_URL": "your_rpc_url",
"ANTHROPIC_API_KEY": "your_anthropic_api_key"
}
}
}
}Using Individual MCP Servers
You can also configure individual MCP servers directly:
{
"mcpServers": {
"starknet-erc20": {
"command": "node",
"args": ["/path/to/ask-starknet/packages/mcps/erc20/build/index.js"],
"env": {
"STARKNET_ACCOUNT_ADDRESS": "your_address",
"STARKNET_PRIVATE_KEY": "your_private_key",
"STARKNET_RPC_URL": "your_rpc_url"
}
}
}
}Example Use Cases
Token Management: Transfer ERC20 tokens, check balances, approve spending
DeFi Operations: Swap tokens, provide liquidity, borrow/lend assets
Perpetual Trading: Trade derivatives, manage positions, execute limit/market orders on Extended
Wallet Management: Create accounts, manage transactions, monitor balances
NFT Operations: Transfer NFTs, manage collections, interact with marketplaces
Smart Contract Development: Deploy contracts, interact with deployed contracts
Available MCP Servers
Wallet Management
Argent - Argent X wallet integration
Braavos - Braavos wallet integration
OpenZeppelin - OpenZeppelin account integration
OKX - OKX wallet integration
DeFi Protocols
AVNU - DEX aggregator and swap functionality
Ekubo - Next-generation AMM with concentrated liquidity
Endurfi - Liquid staking protocol (xSTRK, xyWBTC)
Extended - High-performance perpetuals exchange for derivatives trading
Fibrous - Token swap router finding optimal routes
Opus - Collateralized debt positions (Troves) and CASH borrowing
Vesu - Lending and earning protocol
Unruggable - Memecoin creation and launch platform
Core Blockchain Operations
ERC20 - Token operations (transfer, approve, balance, etc.)
ERC721 - NFT operations (transfer, approve, metadata, etc.)
Transaction - Transaction management and monitoring
RPC - Starknet RPC operations and blockchain data
Development Tools
Scarb - Cairo development, compilation, and proving tools
Contract - Smart contract declaration and deployment
Development
Project Structure
packages/
├── core/ # Core utilities and shared functionality
├── mcp/ # Unified Starknet MCP router with AI-powered routing
└── mcps/ # Individual specialized MCP servers
├── argent/ # Argent wallet MCP server
├── avnu/ # AVNU DEX MCP server
├── braavos/ # Braavos wallet MCP server
├── contract/ # Contract declaration and deployment MCP server
├── ekubo/ # Ekubo AMM MCP server
├── endurfi/ # Endurfi liquid staking MCP server
├── erc20/ # ERC20 token MCP server
├── erc721/ # ERC721 NFT MCP server
├── extended/ # Extended Starknet operations MCP server
├── fibrous/ # Fibrous swap router MCP server
├── okx/ # OKX wallet MCP server
├── openzeppelin/ # OpenZeppelin account MCP server
├── opus/ # Opus lending and borrowing MCP server
├── scarb/ # Scarb development tools MCP server
├── starknet-rpc/ # Starknet RPC MCP server
├── transaction/ # Transaction management MCP server
├── unruggable/ # Unruggable memecoin MCP server
└── vesu/ # Vesu lending and earning MCP serverAdding New MCP Servers
Interested in contributing a new MCP server? Please see our CONTRIBUTING.md guide for detailed instructions on how to add new MCP servers to the ecosystem.
License
MIT License - see the LICENSE file for details.
For detailed documentation visit docs.kasar.io
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/KasarLabs/ask-starknet'
If you have feedback or need assistance with the MCP directory API, please join our Discord server