
Cairo Coder
@kasarlabs
About Cairo Coder
The most powerful open-source Cairo code generator.
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"cairo coder": {
"command": "npx",
"args": [
"-y",
"@kasarlabs/cairo-coder-mcp"
],
"env": {
"CAIRO_CODER_API_KEY": "<YOUR_API_KEY>"
}
}
}
}Tools
1Provides assistance with Cairo and Starknet development tasks through AI-powered analysis. Call this tool when the user's request involves **writing, refactoring, implementing from scratch, or completing specific parts (like TODOs)** of Cairo code or smart contracts. The tool analyzes the query and context against Cairo/Starknet best practices and documentation, returning helpful information to generate accurate code or explanations. This tool should also be called to get a better understanding of Starknet's ecosystem, features, and capacities.
Overview
What is Cairo Coder?
A Model Context Protocol (MCP) server that provides AI‑assisted Cairo and Starknet development through the Cairo Coder API. It is built for developers writing, refactoring, or learning Cairo smart contracts on Starknet.
How to use Cairo Coder?
Run it directly with npx -y @kasarlabs/cairo-coder-api. Set the CAIRO_CODER_API_KEY environment variable with your API key. For Claude Desktop, add a cairo-coder entry to claude_desktop_config.json with the same command and environment variable. The server exposes one tool, assist_with_cairo, which accepts a required query and an optional context string.
Key features of Cairo Coder
- Write Cairo smart contracts and Starknet code
- Refactor and optimize existing Cairo code
- Implement features and complete TODOs
- Learn about the Starknet ecosystem and best practices
- Receive advice based on official Cairo/Starknet documentation
Use cases of Cairo Coder
- Generate a complete counter contract in Cairo
- Optimize an existing Starknet contract with context and code snippets
- Get step‑by‑step guidance on using OpenZeppelin for an ERC20 token
FAQ from Cairo Coder
What is Cairo Coder MCP server?
It is an MCP server that uses the Cairo Coder API to assist with Cairo and Starknet development tasks, such as writing, refactoring, and learning.
How do I set up Cairo Coder?
Run npx -y @kasarlabs/cairo-coder-api and provide your API key via the CAIRO_CODER_API_KEY environment variable. For Claude Desktop, add the server configuration to claude_desktop_config.json.
What tool does Cairo Coder provide?
The server offers one tool: assist_with_cairo. It takes a required query (your development question) and an optional context (code snippets or additional information).
What are the runtime requirements for Cairo Coder?
Node.js version 18 or higher and npm or yarn are required to run the server locally.
Where can I get help or report issues?
Visit the GitHub Issues page for the repository (https://github.com/kasarlabs/cairo-coder-api/issues) or refer to the Model Context Protocol documentation.
More Developer Tools MCP servers
FastAPI-MCP
tadata-orgExpose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!
Deepwiki MCP Server
regenrek📖 MCP server for fetch deepwiki.com and get latest knowledge in Cursor and other Code Editors
MCP-Bridge
SecretiveShellA middleware to provide an openAI compatible endpoint that can call MCP tools
Burp Suite MCP Server Extension
PortSwiggerMCP Server for Burp
Test
x1xhlolFULL Augment Code, Claude Code, Cluely, CodeBuddy, Comet, Cursor, Devin AI, Junie, Kiro, Leap.new, Lovable, Manus, NotionAI, Orchids.app, Perplexity, Poke, Qoder, Replit, Same.dev, Trae, Traycer AI, VSCode Agent, Warp.dev, Windsurf, Xcode, Z.ai Code, Dia & v0. (And other Open Sou
Comments