create_mcp_server
Generate a new MCP server by specifying name, description, language, template type, and features. Includes process cleanup, error handling, and MCP SDK patterns for production-ready implementations.
Instructions
Create a new MCP server based on specifications.
IMPORTANT NOTES:
- AI sampling (ctx.sample) is not currently supported in Claude Desktop
- Use modern typing: dict, list, str | None instead of Dict, List, Optional
- Generated servers include proper process cleanup and error handling
- All generated code uses working MCP SDK patterns
Args:
name: Name of the MCP server (must be valid Python identifier)
description: Description of what the server does
language: Programming language (python, gradio, typescript)
template_type: Type of template (basic, fastmcp_server)
features: list of features to include (tools, resources, prompts)
output_dir: Output directory (defaults to configured default)
Returns:
Status message with creation details and next steps
Input Schema
Name | Required | Description | Default |
---|---|---|---|
description | Yes | ||
features | No | ||
language | No | python | |
name | Yes | ||
output_dir | No | ||
template_type | No | basic |
Input Schema (JSON Schema)
{
"properties": {
"description": {
"title": "Description",
"type": "string"
},
"features": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Features"
},
"language": {
"default": "python",
"title": "Language",
"type": "string"
},
"name": {
"title": "Name",
"type": "string"
},
"output_dir": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Output Dir"
},
"template_type": {
"default": "basic",
"title": "Template Type",
"type": "string"
}
},
"required": [
"name",
"description"
],
"title": "create_mcp_serverArguments",
"type": "object"
}