Skip to main content
Glama
MCP Create Server

MCP Create Server

by tesla0225

MCP 서버 생성

모델 컨텍스트 프로토콜(MCP) 서버를 동적으로 생성, 실행 및 관리하는 동적 MCP 서버 관리 서비스입니다. 이 서비스 자체가 MCP 서버 역할을 하며, 다른 MCP 서버를 자식 프로세스로 실행/관리하여 유연한 MCP 생태계를 구축합니다.

주요 특징

  • MCP 서버 코드의 동적 생성 및 실행

  • TypeScript만 지원(JavaScript 및 Python 지원은 향후 릴리스에서 계획됨)

  • 자식 MCP 서버에서 도구 실행

  • 서버 코드 업데이트 및 재시작

  • 불필요한 서버 제거

Related MCP server: dynamic-mcp

설치

참고: 이 서비스를 실행하려면 Docker를 사용하는 것이 좋습니다.

Docker 설치(권장)

지엑스피1

수동 설치(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 start

Claude Desktop과 통합

Claude Desktop 구성 파일( claude_desktop_config.json )에 다음을 추가합니다.

{
  "mcpServers": {
    "mcp-create": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "mcp-create"]
    }
  }
}

사용 가능한 도구

도구 이름

설명

입력 매개변수

산출

템플릿에서 서버 만들기

템플릿에서 MCP 서버 만들기

언어: 문자열

{ 서버 ID: 문자열, 메시지: 문자열 }

실행 도구

서버에서 도구 실행

serverId: stringtoolName: stringargs: 개체

도구 실행 결과

get-server-tools

서버 도구 목록 가져오기

서버 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 사용량, 파일 수 등에 제한을 설정합니다.

  • 프로세스 모니터링: 좀비 또는 폭주 프로세스를 모니터링하고 강제로 종료합니다.

  • 경로 검증: 디렉토리 트래버설 공격을 방지하기 위해 파일 경로를 적절하게 검증합니다.

특허

MIT

Available Tools

5 tools
create-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

    B3.2/5.0

    Scored across 5 tools

    Disambiguation4/5

    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.

    Naming Consistency5/5

    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.

    Tool Count4/5

    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.

    Completeness3/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      A lightweight framework for building and running Model Context Protocol (MCP) servers using FastMCP, providing tools for development, debugging, and server management.
      4
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Dynamic MCP server for Node.js enabling runtime tool creation, management, and execution in isolated sandboxes (Docker or Node).
      8
      4 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      An enhanced dynamic MCP server management service that creates, runs, and manages Model Context Protocol servers with multi-language support and strict parameter validation.
      MIT
    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      A 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
      -