MCP Create Server
MCP サーバーの作成
モデルコンテキストプロトコル(MCP)サーバーを動的に作成、実行、管理する動的MCPサーバー管理サービス。このサービス自体がMCPサーバーとして機能し、他のMCPサーバーを子プロセスとして起動・管理することで、柔軟なMCPエコシステムを実現します。
主な特徴
MCP サーバーコードの動的な作成と実行
TypeScript のみのサポート (JavaScript と Python のサポートは将来のリリースで予定されています)
子 MCP サーバーでのツール実行
サーバーコードの更新と再起動
不要なサーバーの削除
Related MCP server: dynamic-mcp
インストール
注: このサービスを実行するには Docker が推奨されます
Docker のインストール (推奨)
# Build Docker image
docker build -t mcp-create .
# Run Docker container
docker run -it --rm mcp-create手動インストール(TypeScriptのみ)
# Clone repository
git clone https://github.com/tesla0225/mcp-create.git
cd mcp-create
# Install dependencies
npm install
# Build
npm run build
# Run
npm startClaude Desktopとの統合
Claude Desktop 構成ファイル ( claude_desktop_config.json ) に次のコードを追加します。
{
"mcpServers": {
"mcp-create": {
"command": "docker",
"args": ["run", "-i", "--rm", "mcp-create"]
}
}
}利用可能なツール
ツール名 | 説明 | 入力パラメータ | 出力 |
テンプレートからサーバーを作成する | テンプレートからMCPサーバーを作成する | 言語: 文字列 | { サーバー ID: 文字列、メッセージ: 文字列 } |
実行ツール | サーバー上でツールを実行する | サーバーID: stringtoolName: stringargs: オブジェクト | ツール実行結果 |
サーバーツールを取得する | サーバーツールのリストを取得する | サーバーID: 文字列 | { ツール: ツール定義[] } |
サーバーの削除 | サーバーを削除 | サーバーID: 文字列 | { 成功: ブール値、メッセージ: 文字列 } |
リストサーバー | 実行中のサーバーのリストを取得する | なし | { サーバー: 文字列[] } |
使用例
新しいサーバーの作成
{
"name": "create-server-from-template",
"arguments": {
"language": "typescript"
}
}ツールの実行
{
"name": "execute-tool",
"arguments": {
"serverId": "ba7c9a4f-6ba8-4cad-8ec8-a41a08c19fac",
"toolName": "echo",
"args": {
"message": "Hello, dynamic MCP server!"
}
}
}技術仕様
Node.js 18以上
TypeScript(必須)
依存関係:
@modelcontextprotocol/sdk: MCP クライアント/サーバー実装
child_process (Node.js 組み込み): 子プロセスの管理
fs/promises(Node.js組み込み): ファイル操作
uuid: 一意のサーバーIDの生成
セキュリティに関する考慮事項
**コード実行の制限:**サービスが任意のコードを実行するため、サンドボックス化を検討してください
**リソース制限:**メモリ、CPU 使用率、ファイル数などの制限を設定します。
**プロセス監視:**ゾンビプロセスや暴走プロセスを監視し、強制終了する
**パス検証:**ディレクトリトラバーサル攻撃を防ぐためにファイルパスを適切に検証します
ライセンス
マサチューセッツ工科大学
Available Tools
5 toolscreate-server-from-templateC
Create a new MCP server from a template.
以下のテンプレートコードをベースに、ユーザーの要求に合わせたサーバーを実装してください。 言語に応じて適切なテンプレートを選択し、必要に応じて機能を追加・変更してください。
TypeScriptテンプレート:
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
import {
CallToolRequestSchema,
ListToolsRequestSchema
} from "@modelcontextprotocol/sdk/types.js";
const server = new Server({
name: "dynamic-test-server",
version: "1.0.0"
}, {
capabilities: {
tools: {}
}
});
// ここでツールを実装してください
server.setRequestHandler(ListToolsRequestSchema, async () => {
return {
tools: [{
name: "echo",
description: "Echo back a message",
inputSchema: {
type: "object",
properties: {
message: { type: "string" }
},
required: ["message"]
}
}]
};
});
server.setRequestHandler(CallToolRequestSchema, async (request) => {
if (request.params.name === "echo") {
// TypeScriptの型を適切に扱うため、型アサーションを使用
const message = request.params.arguments.message as string;
// または any を使う: const message: any = request.params.arguments.message;
return {
content: [
{
type: "text",
text: `Echo: ${message}`
}
]
};
}
throw new Error("Tool not found");
});
// Server startup
const transport = new StdioServerTransport();
server.connect(transport);Pythonテンプレート:
import asyncio
from mcp.server import Server
from mcp.server.stdio import stdio_server
app = Server("dynamic-test-server")
@app.list_tools()
async def list_tools():
return [
{
"name": "echo",
"description": "Echo back a message",
"inputSchema": {
"type": "object",
"properties": {
"message": {"type": "string"}
},
"required": ["message"]
}
}
]
@app.call_tool()
async def call_tool(name, arguments):
if name == "echo":
return [{"type": "text", "text": f"Echo: {arguments.get('message')}"}]
raise ValueError(f"Tool not found: {name}")
async def main():
async with stdio_server() as streams:
await app.run(
streams[0],
streams[1],
app.create_initialization_options()
)
if __name__ == "__main__":
asyncio.run(main())注意事項:
TypeScript実装時は、引数の型を適切に扱うために型アサーション(as string)を使用するか、 明示的に型を宣言してください(例:const value: string = request.params.arguments.someValue)。
複雑な型を扱う場合は、interface や type を定義して型安全性を確保することをお勧めします。
ユーザーの要求に応じて上記のテンプレートを参考にカスタマイズしてください。その際、基本的な構造を維持しつつ、ツール名や機能を変更できます。
Inputs: language (required), code, dependencies.
delete-serverC
Delete a server
Inputs: serverId (required).
execute-toolC
Execute a tool on a server
Inputs: serverId (required), toolName (required), args.
get-server-toolsC
Get the tools available on a server
Inputs: serverId (required).
list-serversB
List all running servers
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Most tools have distinct purposes: create, delete, list, get tools, and execute. However, 'execute-tool' could potentially overlap with server-specific tools, but its description clarifies it's for executing tools on servers, making it reasonably distinct. The set covers different aspects of server management without significant ambiguity.
All tools follow a consistent verb-noun pattern with hyphens: create-server-from-template, delete-server, execute-tool, get-server-tools, list-servers. The naming is predictable and uniform throughout the set, making it easy for agents to understand the action and target.
With 5 tools, the count is appropriate for a server management domain, covering core operations like creation, deletion, listing, and tool interaction. It's slightly lean but reasonable; adding a tool for server status or configuration might enhance completeness, but the current scope is well-defined.
The tool set covers basic server lifecycle (create, delete, list) and tool interaction (get tools, execute), but has notable gaps. Missing operations include updating server configurations, stopping/starting servers, or monitoring server status, which are common in server management. Agents might encounter dead ends when needing to modify existing servers beyond deletion.
Maintenance
Related MCP Connectors
MCP server for building and testing AI agents with multi-model experimentation and insights.
Marketplace and infrastructure for MCP servers and skills: deploy, host, monetize, analytics.
MCP server for progressive tool usage at any scale (see https://klavis.ai)
An MCP server that provides agents access to the KeldynAI platform
Related MCP Servers
- AlicenseAqualityDmaintenanceA lightweight framework for building and running Model Context Protocol (MCP) servers using FastMCP, providing tools for development, debugging, and server management.4MIT
- AlicenseBqualityDmaintenanceDynamic MCP server for Node.js enabling runtime tool creation, management, and execution in isolated sandboxes (Docker or Node).84 npm1MIT
- AlicenseNot gradedqualityNot gradedmaintenanceAn enhanced dynamic MCP server management service that creates, runs, and manages Model Context Protocol servers with multi-language support and strict parameter validation.MIT
- FlicenseNot gradedqualityNot gradedmaintenanceA service orchestration layer for the Model Context Protocol. Manages multiple MCP services through a single unified interface — spawn, supervise, and route tool calls across all your services.1-