MCP.so
Sign In
Servers

Cairo Coder

@kasarlabs

The most powerful open-source Cairo code generator.

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.

Tags

More from Developer Tools