Best MCP Servers for Code Generation in 2026
507 tools indexed · avg score 88.4 · sorted by AgentRank score
The AgentRank index tracks 507 code generation tools. The top-ranked entry is knowsuchagency/mcp2cli at 93.8 points. Across the 10 shown here, the average AgentRank score is 88.4, and 10 had a commit in the last 30 days. The most common primary language is TypeScript.
Code generation tools and MCP servers give AI agents specialized capabilities for writing, transforming, and understanding code. These go beyond basic autocomplete — providing full function generation, test scaffolding, documentation writing, refactoring suggestions, and multi-file code synthesis.
In the agent ecosystem, code generation tools often act as subagents within larger workflows. A higher-level orchestrator might delegate "write a unit test for this function" to a specialized code generation tool, then pass the result to a deployment tool. This composability is what makes agent frameworks powerful.
When comparing code generation tools, look at language support breadth, context window handling (can it work with large files?), and whether it integrates with your existing development environment. Tools that also handle linting and formatting post-generation save significant iteration time.
Top 10 Code Generation MCP Servers
- #1knowsuchagency/mcp2cli93.8
Turn any MCP, OpenAPI, or GraphQL server into a CLI — at runtime, with zero codegen
Ranks here on 2.4k GitHub stars and an active commit 8 days ago, plus 96% of issues closed.Freshness 25.2Issue health 24.5Downloads 13.1Stars 12.8Contributors 10.3 - #2codexu/note-gen93.3
Capture first. Organize later. A local-first Markdown app that turns scattered records into clear notes with AI.
Ranks here on 13k GitHub stars and an active commit 9 days ago, plus 90% of issues closed.Freshness 30.1Issue health 27.7Stars 15.4Contributors 12.3Description 4.3 - #3ZaxbyHub/opencode-swarm92.8
Architect-centric agentic swarm plugin for OpenCode. Hub-and-spoke orchestration with SME consultation, code generation, and QA review.
Ranks here on 500 GitHub stars and a commit within the last week, plus 88% of issues closed.Freshness 30.7Issue health 26.9Stars 13.8Contributors 12.3License 4.6 - #4getkern/kern89.6
Rootless container runtime with no daemon. Runs agent tool calls and LLM-generated code in kernel-enforced containers.
Ranks here on 437 GitHub stars and a commit within the last week, plus 100% of issues closed.Issue health 30.8Freshness 30.7Stars 13.5Contributors 5.6License 4.6 - #5slothflowlabs/duckle88.8
Open-source ETL/ELT you deploy on your own servers or cloud. Built on DuckDB: no-code/low-code visual pipelines or SQL, 385 components, dbt, CDC, data quality, reverse ETL, lineage, MCP for AI agen...
Ranks here on 1.5k GitHub stars and an active commit 8 days ago.Freshness 30.4Issue health 21.3Stars 15.4Contributors 10.7Description 6.2 - #6DemoMacro/office-open86.5
Create Word, Excel, and PowerPoint files (.docx, .xlsx, .pptx) from plain JSON or fully typed APIs — generate, parse, and patch. Built for AI agents, LLM tool-calling, and hand-written code alike;...
Ranks here on a commit within the last week and 80% of issues closed.Freshness 30.6Issue health 24.6Contributors 12.3Stars 8.0Description 6.2 - #7Dicklesworthstone/dwarf_fortress_mcp85.9
A semantic, transactional, replayable MCP control plane that lets autonomous AI agents operate Dwarf Fortress as a long-lived civilization. Safe-Rust phase-0B scaffold: MVCC world state, witnessed...
Ranks here on a commit within the last week and 100% of issues closed.Issue health 30.8Freshness 30.7Stars 7.1Contributors 6.5Description 6.2 - #8feenlace/mcp-1c85.2
MCP server for 1С:Enterprise — AI assistant sees your configuration and generates accurate BSL code. One binary, zero dependencies, 11 tools.
Ranks here on 242 GitHub stars and an active commit 18 days ago, plus 92% of issues closed.Issue health 28.2Freshness 26.7Stars 12.2Contributors 6.5License 4.6 - #9Syh1906/openai-compatible-imagegen84.5
Standalone Skill and Codex Plugin for OpenAI-compatible image generation, editing, batch workflows, QA, and focused canvas editing.
Ranks here on an active commit 15 days ago and 100% of issues closed.Issue health 30.8Freshness 27.7Stars 9.0Contributors 5.6License 4.6 - #10guinacio/claude-image-gen84.1
AI-powered image generation using Google Gemini or OpenAI (gpt-image-2), integrated with Claude Code via Skills or Claude.ai via MCP (Model Context Protocol).
Ranks here on an active commit 10 days ago and 86% of issues closed.Freshness 29.8Issue health 26.4Stars 9.6Contributors 6.5Description 6.2