Skip to main content
Glama
hitoshura25

MCP Server Generator

by hitoshura25

generate_mcp_server

Create a production-ready MCP server with dual-mode architecture, including tests and documentation. Define tools, parameters, and project metadata to generate a complete project.

Instructions

Generate a complete MCP server project with dual-mode architecture

This is the main generation tool. Consider using search_tools or get_tool_info first to understand the full workflow, or use the generated Claude commands for guided assistance.

Args: project_name: Project name (e.g., 'my-mcp-server') description: Project description author: Author name author_email: Author email tools: List of tools this MCP server will provide. Each tool should have: - name: Tool function name - description: What the tool does - parameters: List of parameter objects with name, type, description, required output_dir: Output directory (default: current directory) python_version: Python version for testing (default: '3.10') prefix: Package prefix - 'AUTO' (detect from git), 'NONE', or custom string (default: 'AUTO')

Returns: JSON string with generation result including success status and project path

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_nameYes
descriptionYes
authorYes
author_emailYes
toolsYes
output_dirNo
python_versionNo3.10
prefixNoAUTO

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must disclose behavior. It indicates generation returns a JSON result but lacks details on side effects, permissions, or constraints, which is adequate but not comprehensive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with sections for purpose, usage guidance, parameters, and return value. It is slightly verbose but every part adds value; a bit of pruning could enhance conciseness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity with 8 parameters and an output schema, the description covers the main aspects: purpose, parameters, return value, and usage suggestions. It lacks some behavioral context but is largely complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the parameter descriptions in the docstring add significant meaning beyond the schema, especially for the complex 'tools' parameter describing its subfields.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Generate a complete MCP server project with dual-mode architecture', identifying the specific verb and resource. It distinguishes from siblings by suggesting alternative tools for understanding the workflow.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly recommends considering 'search_tools' or 'get_tool_info' first, and mentions using Claude commands for guided assistance, providing clear when-to-use guidance and alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

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/hitoshura25/mcp-server-generator'

If you have feedback or need assistance with the MCP directory API, please join our Discord server