
Cairo Coder
@kasarlabs
About Cairo Coder
The most powerful open-source Cairo code generator.
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 technical assistance with writing, refactoring, debugging, and understanding Cairo smart contracts and programs. Call this tool when the user needs to: - **Write or generate Cairo code** from scratch - **Refactor or optimize** existing Cairo code - **Debug compilation errors** or runtime issues - **Implement specific Cairo features** (traits, storage, events, etc.) - **Understand Cairo syntax** and best practices - **Complete TODO sections** in Cairo smart contracts This tool has access to Cairo documentation, code examples, corelib references, and technical guides.
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.
Frequently asked questions
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.
Basic information
More Developer Tools MCP servers
LocalCan
LocalCanGives AI agents public URLs (tunnels) for localhost, live HTTP traffic inspection, snapshot publishing, and access control. Part of LocalCan, the ngrok alternative for Mac, Windows and Linux. Free plan.
SecondSim
econdSim provisions real UK mobile numbers (non-VoIP) via eSIM, built for freelancers, sole traders, small businesses, and enterprise teams. Unlike VoIP apps and virtual numbers, SecondSim numbers register as genuine phy

Termany
thinkany-aiAgent-Native Terminal
Altronis
sypherinMCP server + CLI for Altronis — Singapore AI consulting. Ask the Lyra consultant, generate a grant-matched AI transformation plan, pull curated SG AI events/news. Read-only, wraps altronis.sg.

Repo Test Architect
RepoAssayLocal-first, read-only MCP server for evidence-backed repository test architecture audits and test planning.
Comments