This server provides AI-powered assistance for Cairo and Starknet development:
- Write Cairo code: Generate smart contracts and code from scratch
- Refactor code: Improve and optimize existing Cairo code
- Implement features: Complete TODOs and add specific functionality
- Learn Starknet ecosystem: Get contextual information about Starknet
- Best practices: Receive development advice based on documentation
- Contextual assistance: Provide code snippets for more accurate responses
- API integration: Connect to Cairo Coder API with custom or public endpoints
Provides support for issue tracking and contributions through GitHub repository
Distributes the Cairo Coder API package which can be installed and run via npm or npx
Offers guidance on implementing OpenZeppelin libraries in Cairo smart contracts for Starknet
Cairo Coder MCP Server
A Model Context Protocol (MCP) server for Cairo and Starknet development assistance via the Cairo Coder API.
Quick Start
Use this MCP server directly with npx:
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:
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:
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 questioncontext
(string, optional): Additional context or code snippets
Examples:
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
Available Scripts
License
MIT
Support
For issues and questions:
- GitHub Issues: Create an issue
- MCP Documentation: Model Context Protocol
Contributing
Contributions are welcome! Please check the contribution guidelines before submitting a PR.
You must be authenticated.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
The most powerful open-source Cairo code generator.
Related MCP Servers
- JavaScriptApache 2.0
- JavaScriptMIT License
- TypeScript
- -securityAlicense-qualityOfforte Proposal SoftwareLast updated -1141TypeScriptMIT License