Cerebras Code MCP Server
OfficialClick on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Cerebras Code MCP ServerBuild an Express.js REST API with user auth"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Cerebras Code MCP Server v1.3.3
This MCP server is designed for planning with Claude Code, Cline, or Cursor and making changes with Cerebras to maximize speed and intelligence while avoiding API limits. Use your preferred AI for planning and strategy, then leverage Cerebras for high-quality code generation.
It will use the Qwen 3 Coder model, and can be embedded in IDEs like Claude Code and Cline, with beta support for Cursor.
⨠New in v1.3.3
Project Restructure: Organized project into smaller, more manageable components for DX purposes
Stronger Instruction: Improved
writeusage count among modelsClaude Code - Enhanced Visual Diffs: Displays changes/edits in a pretty format
VS Code Support: Added install/remove support for VS Code
Update Config Wizard for Messy Configs: Added a removal wizard that helps uninstall
Related MCP server: mcp-agent-review
1. Install the NPM Package
npm install -g cerebras-code-mcp2. Get Cerebras API key
Visit cloud.cerebras.ai and create an API key
[OPTIONAL] Add OpenRouter as a backup in case you hit your Cerebras rate limits Visit OpenRouter and get a key to use as a fallback provider.
You can set this key in your MCP settings under OPENROUTER_API_KEY, and it will trigger automatically if anything goes wrong with calling Cerebras.
3. Run the Setup Wizard for Claude Code / Cursor / Cline / VS Code (Copilot)
cerebras-mcp --configUse the setup wizard to configure the tool on your machine.
If you're using Cursor, it will ask you to copy and paste a prompt into your Cursor User Rules.
4. Removal/Cleanup (Optional)
cerebras-mcp --removeUse the removal wizard to clean up configurations for any IDE or perform a complete cleanup.
5. Usage
The MCP tool will appear as write in your tool list. It supports:
Natural language prompts: Just describe what you want in plain English
Context files: Include multiple files as context for better code understanding
Visual diffs: See changes with Git-style diffs
Example usage:
Create a REST API with Express.js that handles user authenticationAvailable Tools
1 toolwriteA
šØ MANDATORY CODE TOOL - USE THIS FOR ALL CODE OPERATIONS! šØ
This is your ONLY interface for code generation, file creation, and modifications. Never edit files directly!
⨠FEATURES:
Creates new files automatically
Modifies existing files with smart diffs
Shows visually enhanced git-style diffs with emoji indicators (ā additions, ā removals, š changes)
Supports context_files for better code understanding
Handles all programming languages
Provides comprehensive error handling
šÆ USE CASES:
Writing new code: Use with file_path + detailed prompt
Editing code: Use with file_path + modification prompt
Code generation: Use with file_path + generation prompt + optional context_files
ā ļø REMEMBER: This tool is MANDATORY for ALL code operations!
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | REQUIRED: Absolute path to the file (e.g., '/Users/username/project/file.py'). This tool will create or modify the file at this location. | |
| prompt | Yes | REQUIRED: A comprehensive plan dump that MUST include: 1) EXACT method signatures and parameters, 2) SPECIFIC database queries/SQL if needed, 3) DETAILED error handling requirements, 4) PRECISE integration points with context files, 5) EXACT constructor parameters and data flow, 6) SPECIFIC return types and data structures. Be extremely detailed - this is your blueprint for implementation. | |
| context_files | No | OPTIONAL: Array of file paths to include as context for the model. These files will be read and their content included to help understand the codebase structure and patterns. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Despite no annotations, the description explains features like creating files, modifying with smart diffs, and supporting context files. It lacks details on destructiveness or error handling specifics, but covers key behaviors.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is long and uses excessive formatting (emojis, all caps). While structured clearly, it contains redundant emphasis and could be more concise.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description covers many aspects but misses details about output/return values. Given no output schema, this is a gap. It also lacks information on failure modes.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, and the description adds valuable context, especially for the 'prompt' parameter with detailed instructions on what to include. This goes beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states it is for code operations, including creation, modification, and generation. It emphasizes being the only interface for such tasks, distinguishing itself effectively.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides explicit use cases and scenarios, such as writing new code or editing existing files. It also includes a warning not to edit files directly, offering clear guidance on when to use this tool.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
1 tool update
v1.3.3- First observed
write
TDQS
Only one tool exists, so there is no possibility of confusion between tools. The single tool's purpose is clearly defined.
With only one tool, naming consistency is trivially upheld. The name 'write' is a clear verb indicating action.
A single tool for code writing is borderline acceptable, but it feels thin for a server that likely requires additional operations like reading or listing files.
The server lacks any read, list, or search tools, making it impossible to inspect existing code before modification. This gap will cause agent failures in typical workflows.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
MCP server for AI agent profiles and smart notes. 60+ coding prompt packs with expert personas.
MCP server for building and testing AI agents with multi-model experimentation and insights.
MCP server for Qwen Image 3 AI image generation
Related MCP Servers
- FlicenseAqualityDmaintenanceAn MCP server that connects Gemini 2.5 Pro to Claude Code, enabling users to generate detailed implementation plans based on their codebase and receive feedback on code changes.514-
- AlicenseNot gradedqualityCmaintenanceAn MCP server that provides agentic code review powered by OpenAI-compatible models, designed for use with Claude Code.1MIT
- AlicenseNot gradedqualityFmaintenanceAn MCP server that allows Claude Code to interact with the OpenAI Codex CLI.2921MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that integrates Google Gemini CLI with Claude Code for AI-powered development assistance, enabling code review, bug analysis, feature planning, and code explanation without requiring an API key.8MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Cerebras/cerebras-code-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server