developer-tools

Cairo Coder

by kasarlabs

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

Integrates with the Cairo Coder API to provide expert-level Cairo and Starknet development assistance, enabling smart contract generation, code refactoring, feature implementation, and contextual guidance based on Cairo/Starknet documentation and best practices.

github stars

14

Requires Cairo Coder API keyExpert-level Cairo assistanceBased on official documentation

best for

  • / Cairo smart contract developers
  • / Starknet blockchain projects
  • / Learning Cairo programming language
  • / Code reviews and optimization

capabilities

  • / Generate Cairo smart contracts
  • / Refactor existing Cairo code
  • / Implement new features in Starknet projects
  • / Provide Cairo/Starknet documentation guidance
  • / Analyze Cairo code for best practices

what it does

Connects to the Cairo Coder API to provide expert assistance for Cairo and Starknet smart contract development. Helps generate contracts, refactor code, and provides contextual guidance based on Cairo/Starknet documentation.

about

Cairo Coder is a community-built MCP server published by kasarlabs that provides AI assistants with tools and capabilities via the Model Context Protocol. Cairo Coder: Expert Cairo and Starknet development support, smart contract creation, and code refactoring via the Cairo It is categorized under developer tools.

how to install

You can install Cairo Coder in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

license

MIT

Cairo Coder is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

readme

Cairo Coder MCP Logo [![npm version](https://img.shields.io/npm/v/@kasarlabs/cairo-coder-mcp.svg)](https://www.npmjs.com/package/@kasarlabs/cairo-coder-mcp) [![npm downloads](https://img.shields.io/npm/dm/@kasarlabs/cairo-coder-mcp.svg)](https://www.npmjs.com/package/@kasarlabs/cairo-coder-mcp) [![GitHub stars](https://img.shields.io/github/stars/kasarlabs/cairo-coder-mcp.svg)](https://github.com/kasarlabs/cairo-coder-mcp/stargazers) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
# Cairo Coder MCP Server A Model Context Protocol (MCP) server for Cairo and Starknet development assistance via the Cairo Coder API. ## ⚠️ Repository Moved / Deprecated This project now lives in the [**Ask Starknet monorepo**](https://github.com/KasarLabs/ask-starknet/tree/main/packages/mcps/cairo-coder) The npm package remains published [**here**](https://www.npmjs.com/package/@kasarlabs/cairo-coder-mcp) This repo will not receive further updates. ## Quick Start ### Install via Claude Code ```bash # Install Cairo Coder MCP claude mcp add cairo-coder -e CAIRO_CODER_API_KEY=YOUR-API-KEY-HERE -- npx -y @kasarlabs/cairo-coder-mcp ``` **Note**: Replace `YOUR-API-KEY-HERE` with your actual API key from [cairo-coder.com](https://cairo-coder.com) ### Manual Usage Use this MCP server directly with npx: ```bash npx -y @kasarlabs/cairo-coder-mcp ``` ## Configuration The server supports two modes of operation: ### Mode 1: Public Cairo Coder API (Default) Use the official Cairo Coder API with your API key. **Environment Variables:** - `CAIRO_CODER_API_KEY`: Your Cairo Coder API key (required) **MCP Client Setup:** ```json { "mcpServers": { "cairo-coder": { "command": "npx", "args": ["-y", "@kasarlabs/cairo-coder-mcp"], "env": { "CAIRO_CODER_API_KEY": "your-api-key-here" } } } } ``` ### Mode 2: Local/Custom Endpoint Use a local or custom Cairo Coder API endpoint (no API key required). **Environment Variables:** - `CAIRO_CODER_API_ENDPOINT`: Your local endpoint URL (e.g., "http://localhost:8000") **MCP Client Setup:** ```json { "mcpServers": { "cairo-coder": { "command": "npx", "args": ["-y", "@kasarlabs/cairo-coder-mcp"], "env": { "CAIRO_CODER_API_ENDPOINT": "http://localhost:8000" } } } } ``` > **Note:** When using `CAIRO_CODER_API_ENDPOINT`, the server automatically switches to local mode and no API key is required or used. ## Available Tools ### assist_with_cairo Get help with Cairo and Starknet development tasks. **Parameters:** - `query` (string, required): Your Cairo/Starknet development question - `context` (string, optional): Additional context or code snippets **Examples:** ```typescript // Simple request { "query": "Write a simple Cairo contract that implements a counter" } // With context { "query": "How can I optimize this contract?", "context": "#[starknet::contract] mod Counter { // existing code here }" } ``` ## What You Can Do - **Write Cairo code**: Generate smart contracts and Cairo code - **Refactor code**: Improve and optimize existing code - **Implement features**: Complete TODOs and implement specific functionality - **Learn Starknet**: Get contextual information about the Starknet ecosystem - **Best practices**: Receive advice based on Cairo/Starknet documentation ## Tips for Better Results - Use specific queries (e.g., "Using OpenZeppelin to build an ERC20" instead of just "ERC20") - Include relevant code snippets when working with existing code - Provide necessary context for more accurate responses ## Development ### Prerequisites - Node.js >= 18 - npm or yarn ### Local Installation ```bash git clone cd cairo-coder-mcp npm install ``` ### Available Scripts ```bash npm run build # Build the project npm run dev # Start in development mode npm start # Start in production mode ``` ## License MIT ## Support For issues and questions: - GitHub Issues: [Create an issue](https://github.com/kasarlabs/cairo-coder-mcp/issues) - MCP Documentation: [Model Context Protocol](https://modelcontextprotocol.io/) ## Contributing Contributions are welcome! Please check the contribution guidelines before submitting a PR.

FAQ

What is the Cairo Coder MCP server?
Cairo Coder is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
How do MCP servers relate to agent skills?
Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
How are reviews shown for Cairo Coder?
This profile displays 10 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.5 out of 5—verify behavior in your own environment before production use.
MCP server reviews

Ratings

4.510 reviews
  • Shikha Mishra· Oct 10, 2024

    Cairo Coder is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.

  • Piyush G· Sep 9, 2024

    We evaluated Cairo Coder against two servers with overlapping tools; this profile had the clearer scope statement.

  • Chaitanya Patil· Aug 8, 2024

    Useful MCP listing: Cairo Coder is the kind of server we cite when onboarding engineers to host + tool permissions.

  • Sakshi Patil· Jul 7, 2024

    Cairo Coder reduced integration guesswork — categories and install configs on the listing matched the upstream repo.

  • Ganesh Mohane· Jun 6, 2024

    I recommend Cairo Coder for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.

  • Oshnikdeep· May 5, 2024

    Strong directory entry: Cairo Coder surfaces stars and publisher context so we could sanity-check maintenance before adopting.

  • Dhruvi Jain· Apr 4, 2024

    Cairo Coder has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.

  • Rahul Santra· Mar 3, 2024

    According to our notes, Cairo Coder benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.

  • Pratham Ware· Feb 2, 2024

    We wired Cairo Coder into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.

  • Yash Thakker· Jan 1, 2024

    Cairo Coder is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.