Skip to content

meta-engine/mcp-server

Repository files navigation

MetaEngine MCP Server

npm version License: MIT MCP

Model Context Protocol server for AI-assisted code generation across 11 languages.

Turn one conversation into 50 consistent files. Claude architects, MetaEngine builds.


Quick Links


Installation

Add to ~/.claude/mcp.json (Claude Code) or Claude Desktop config:

{
  "mcpServers": {
    "metaengine": {
      "command": "npx",
      "args": ["-y", "@metaengine/mcp-server"]
    }
  }
}

That's it. No API key, no signup, free to use.


What Claude Can Generate

  • generate_code — classes, interfaces, enums, and generics → ready-to-compile source files
  • generate_openapi — typed clients and servers from an OpenAPI spec (10 frameworks)
  • generate_graphql — typed clients from GraphQL SDL (10 frameworks)
  • generate_protobuf — typed stubs from .proto files (10 frameworks)
  • generate_sql — language models from SQL DDL (11 languages)

Claude picks the right tool based on your spec.


What It Does

MetaEngine is a specialized tool for AI assistants like Claude Code and Claude Desktop. Instead of generating files one by one, you describe what you need in natural language — Claude constructs the spec, and MetaEngine generates all files in one round trip with automatic imports and namespace resolution.

When Claude Uses This Tool

  • Generating 20-100 interconnected files where consistency matters
  • Multi-language projects (same architecture in TypeScript, Python, Go, C#, Java, Kotlin, Groovy, Scala, Swift, PHP, Rust)
  • Pattern multiplication (same structure applied to many entities)
  • Complex import management across deep namespaces

When Claude Generates Directly

  • 1-15 files — direct generation is faster for small tasks
  • Exploratory coding where structure is evolving
  • One-off scripts and utilities
  • Rapid prototyping where flexibility beats consistency

Both approaches are valid. Claude picks the right tool for the job.


Supported Languages

  • TypeScript
  • Python
  • Go
  • C#
  • Java
  • Kotlin
  • Groovy
  • Scala
  • Swift
  • PHP
  • Rust

Each generates idiomatic code (data classes in Kotlin, case classes in Scala, structs in Swift and Rust, etc.)


Performance

  • Single round-trip generation — 25-100 files in one call
  • Shorter agent loops vs file-by-file Write — agents that batch through this MCP run with substantially fewer turns and lower cumulative context re-reads.

The tipping point is around 20 files — below that, Claude's direct generation is simpler.

For reproducible measurements across languages, models, and spec shapes, see benchmark/ — a self-contained harness with the prompts, judging tools, and 15 canonical result folders. Numbers there are illustrations from one author's runs at N=5 per cell; reproduce in your own environment to see what holds for you.


Documentation

The AI guide is automatically embedded in the tool description on first use — no manual reading required. For reference:

  • METAENGINE_AI_GUIDE.md — Critical rules, patterns, language notes, and common mistakes
  • EXAMPLES.md — Real-world usage with input/output across all languages

Privacy & Pricing

  • Free — no API key, no signup, unlimited requests
  • Private — specs sent for generation are never saved or logged (see PRIVACY.md)
  • Local — MCP server runs on your machine, MIT licensed
  • Terms — See TERMS.md for usage terms

Support


License

MIT License - see LICENSE file for details.


About This Repository

This is the documentation and issue tracking repository for MetaEngine MCP Server. The compiled NPM package is available at @metaengine/mcp-server.

Source code is proprietary, but the MCP server is free to use under MIT license.

About

Model Context Protocol server enabling AI assistants to generate code in 11 languages (TypeScript, Python, Go, C#, Java, Kotlin, Groovy, Scala, Swift, PHP, Rust) with automatic imports. Built for Claude Code and Claude Desktop.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors