Feedback

Cairo Coder MCP Server

@kasarlabs Claim

Basic information

Runtime
JavaScript
Version
1.0.0
Category
License
MIT
Transports
stdio
Author
kasarlabs
Submitted by
Community
Quality
20
Stars
14

About Cairo Coder MCP Server

Cairo Coder: Expert Cairo and Starknet development support, smart contract creation, and code refactoring via the Cairo Coder API.

Cairo Coder is a MCP server in the Developer Tools category listed in the AddMCP.net directory, published by kasarlabs. It exposes 1 tool, including assist_with_cairo. Supported transport: stdio. Runtime: JavaScript. License: MIT. The repository has 14 GitHub stars. Source code is hosted on github.com. Related topics: blockchain, cairo, coder, community, developer-tools.

Setup

{
    "mcpServers": {
        "cairo-coder": {
            "command": "npx",
            "args": [
                "-y",
                "@kasarlabs/cairo-coder-mcp"
            ],
            "env": {
                "CAIRO_CODER_API_KEY": "your-api-key-here"
            }
        }
    }
}

Cairo Coder MCP Server 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-here"
            }
        }
    }
}

Cairo Coder MCP Server tools

  • assist_with_cairo — Provides 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.
    query:string*, codeSnippets:array, history:array

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

Frequently asked questions

1 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.

2 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.

3 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).

4 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.

5 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.

Videos

Tutorials, guides, and showcases related to Cairo Coder MCP Server. The player loads when you press play.

Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬