Gen MCPのロゴ

Gen MCP

組織
genmcp

⚠️ Early Preview: This is a research project in active development. APIs and features may change.

公開者genmcp
リポジトリgen-mcp
言語Go
フォーク
19
スター
46
利用可能なツール
0
通信方式stdio
ライセンスApache-2.0
リンク
  • ツールをAIワークフローに接続

    Gen MCPは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには46件のスターと19件のフォークがあります。

gen-mcp: Zero-Code MCP Server Generation

Transform any API into an MCP server in seconds, not hours

Go Version License MCP Compatible

⚠️ Early Preview: This is a research project in active development. APIs and features may change.

gen-mcp eliminates the complexity of building Model Context Protocol (MCP) servers. Instead of writing boilerplate code and learning protocol internals, simply describe your tools in a configuration file—gen-mcp handles the rest.

Perfect for:

  • 🔌 API Developers - Expose existing REST APIs to AI assistants instantly
  • 🤖 AI Engineers - Connect LLMs to external tools without custom server code
  • 🛠️ DevOps Teams - Integrate legacy systems with modern AI workflows

gen-mcp System Diagram

✨ Key Features

  • 🚀 Zero-Code Server Generation - Create MCP servers from simple YAML configs
  • 📡 OpenAPI Auto-Conversion - Transform existing OpenAPI specs into MCP servers instantly
  • 🔄 Real-Time Tool Exposure - HTTP endpoints become callable AI tools automatically
  • 🛡️ Built-in Validation - Schema validation and type safety out of the box
  • 🔐 Security Out of the Box - TLS encryption and OAuth/OIDC authentication built-in
  • ⚡ Background Processing - Detached server mode with process management
  • 🔧 Flexible Configuration - Fine-tune which endpoints to expose and how they behave

🚀 Quick Start

1. Install gen-mcp

Option A: Download Pre-built Binary

bash
# Download from GitHub releases
# Visit: https://github.com/genmcp/gen-mcp/releases
# Or using curl (replace with latest version and platform):
curl -L https://github.com/genmcp/gen-mcp/releases/latest/download/genmcp-linux-amd64.zip -o genmcp-linux-amd64.zip
unzip genmcp-linux-amd64.zip
chmod +x genmcp-linux-amd64
sudo mv genmcp-linux-amd64 /usr/local/bin/genmcp

Verify the signed binary

You can cryptographically verify that the downloaded binaries (.zip files) are authentic and have not been tampered with. This process uses cosign to check the signature and certificate, which were generated securely during our automated build process.

Step 1: Install Cosign

You'll need the cosign command-line tool. Please see the Official Cosign Installation Guide.

Step 2: Verify the Binary
  1. From the release page, download the signed bundle for your platform:

    • The bundle file (e.g., genmcp-linux-amd64.zip.bundle)
  2. Run the cosign verify-blob-attestation command in your terminal.

    Example (for the Linux amd64 CLI):

    bash
      cosign verify-blob-attestation \
         --bundle genmcp-linux-amd64.zip.bundle \
         --certificate-identity-regexp "https://github.com/genmcp/gen-mcp/.*" \
         --certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
         --new-bundle-format \
         genmcp-linux-amd64.zip

3.  If the signature is valid, `cosign` will contact the public Sigstore transparency log and print:
 ```
 Verified OK
 ```

**Option B: Build from Source**
```bash
# Clone and build
git clone https://github.com/genmcp/gen-mcp.git
cd gen-mcp

# Build CLI
make build-cli

# Add to PATH (recommended)
sudo mv genmcp /usr/local/bin

2. Choose Your Own Adventure

Option A: Convert Existing API

bash
genmcp convert https://api.example.com/openapi.json
genmcp run

Option B: Create Custom Tools

bash
# Create mcpfile.yaml with your tools (see documentation)
genmcp run

3. See It In Action

📖 Documentation

💻 Usage

Core Commands

CommandDescriptionExample
runStart MCP servergenmcp run -f myapi.yaml
stopStop running servergenmcp stop
convertOpenAPI → MCP conversiongenmcp convert api-spec.json
buildBuild container image from mcpfilegenmcp build -f myapi.yaml --tag myapi:latest
versionDisplay version informationgenmcp version

Starting Your Server

bash
# Run in foreground (development)
genmcp run -f /path/to/mcpfile.yaml

# Run in background
genmcp run -d

# Auto-detect mcpfile.yaml in current directory
genmcp run

Converting Existing APIs

bash
# From local OpenAPI file
genmcp convert ./api-spec.json

# From remote OpenAPI URL
genmcp convert https://api.example.com/openapi.json -o custom-name.yaml

# Petstore example
genmcp convert https://petstore.swagger.io/v2/swagger.json

Building Container Images

The build command packages your MCP server and mcpfile into a container image. By default, it builds multi-architecture images for broader platform support.

Binary Downloads: The build process automatically downloads the required server binaries from GitHub releases and caches them locally for reuse. Downloaded binaries are cryptographically verified using Sigstore to ensure authenticity and integrity.

Version Matching:

  • Release builds: Download server binaries matching the CLI version (e.g., v0.1.0 downloads v0.1.0 server)
  • Development builds: Automatically use latest release server binaries
  • Custom version: Use --server-version flag to specify a specific server version

Requirements:

  • Network access to download binaries from GitHub releases and query GitHub API
  • No external dependencies required (verification is built into the CLI)

Offline Support:

  • If download fails, automatically uses the latest cached version for that platform
  • Warns when using cached fallback version
  • Works completely offline once binaries are cached

Cache Management:

  • Automatically keeps the last 3 versions per platform
  • Older versions are cleaned up when downloading new binaries
  • Manual cleanup: remove ~/.cache/genmcp/binaries/ (Linux), ~/Library/Caches/.genmcp/binaries/ (macOS), or %LOCALAPPDATA%\.genmcp\binaries\ (Windows)

Multi-Architecture Build (Default)

When no --platform is specified, builds for both linux/amd64 and linux/arm64:

bash
# Build and push multi-arch image to registry
genmcp build --tag registry.example.com/myapp:v1.0.0 --push

# Build multi-arch locally
genmcp build --tag myapp:latest  # Creates: myapp:latest-linux-amd64, myapp:latest-linux-arm64

Single-Platform Build

For faster iteration during development, specify a single platform:

bash
# Build for specific platform
genmcp build --tag myapp:dev --platform linux/amd64

# Build for ARM64
genmcp build --tag myapp:latest --platform linux/arm64

Additional Options

bash
# Custom base image
genmcp build --tag myapp:latest \
  --base-image registry.access.redhat.com/ubi9/ubi-minimal:latest

# Specify mcpfile location
genmcp build --tag myapp:latest -f path/to/mcpfile.yaml

# Use specific server version
genmcp build --tag myapp:latest --server-version v0.1.0

# Full example with all options
genmcp build \
  --tag myregistry.io/myapp:v1.0.0 \
  --file ./custom-mcpfile.yaml \
  --platform linux/amd64 \
  --server-version v0.1.1 \
  --push

Binary Cache Location: Downloaded binaries are cached in your user cache directory and reused across builds:

  • Linux: ~/.cache/genmcp/binaries/
  • macOS: ~/Library/Caches/.genmcp/binaries/
  • Windows: %LOCALAPPDATA%\.genmcp\binaries\

The cache stores version-platform pairs and validates checksums on each use.

Note: When building multi-arch locally, Docker daemon doesn't support manifest lists, so each platform is saved with a platform-specific tag (e.g., myapp:latest-linux-amd64). Additionally, the original tag (myapp:latest) is saved with your host platform's image if available, otherwise the first built platform. When pushing to a registry with --push, a proper multi-arch manifest list is created.

Converting CLI (Experimental)

Instead of manually writing an MCP file for a CLI, you can use an LLM to generate a genmcp-compatible mcpfile.yaml.

bash
# Set OpenAI endpoint configurations
export MODEL_BASE_URL='https://HOST:PORT/v1' # OpenAI Base URL (v1 endpoint)
export MODEL_KEY='' # OpenAI Access Token
export MODEL_NAME=''  # OpenAI Model Name

# Run gen-mcp convert-cli to generate mcpfile.yaml
MODEL_BASE_URL=$MODEL_BASE_URL MODEL_KEY=$MODEL_KEY MODEL_NAME=$MODEL_NAME genmcp convert-cli "podman images"

# Start mcpserver with generated mcpfile.yaml 
genmcp run

Managing Running Servers

bash
# Stop server (uses mcpfile.yaml to find process)
genmcp stop

# Stop specific server
genmcp stop -f /path/to/mcpfile.yaml

💡 Authoring GenMCP config files with auto complete

To improve the development experience and prevent configuration errors, this project includes JSON schemas for both GenMCP config file formats. These schemas enable validation, autocompletion, and inline documentation in compatible code editors like Visual Studio Code, helping you write valid configuration files faster.

To make use of the schemas, add a yaml-language-server comment at the top of your files:

MCP File:

yaml
# yaml-language-server: $schema=https://raw.githubusercontent.com/genmcp/gen-mcp/refs/heads/main/specs/mcpfile-schema.json
kind: MCPToolDefinitions
schemaVersion: "0.2.0"
name: ...

Server Config File:

yaml
# yaml-language-server: $schema=https://raw.githubusercontent.com/genmcp/gen-mcp/refs/heads/main/specs/mcpserver-schema.json
kind: MCPServerConfig
schemaVersion: "0.2.0"
runtime: ...

Intellij IDEs support JSON schema validation natively.

VS Code requires the installation of the YAML extension by Red Hat.

Schema Autocomplete Screenshot

📚 Examples & Tutorials

🤖 Ollama Integration

📹 Watch Demo | View Code

Connect local language models to MCP Clients with gen-mcp in two ways: by wrapping the Ollama CLI, and by wrapping the Ollama http endpoints.

Features:

  • ✅ HTTP REST API integration
  • ✅ CLI command execution
  • ✅ Model management tools

🔗 HTTP API Conversion

📹 Watch Demo | View Code

Transform any REST API into MCP tools automatically:

bash
# 1. Convert OpenAPI spec
genmcp convert http://localhost:9090/openapi.json

# 2. Run the generated MCP server
genmcp run

Demonstrates:

  • 🔄 Automatic OpenAPI → MCP conversion
  • 🛠️ Path parameter substitution (/features/{id})
  • 📊 Schema validation and type safety
  • 🎯 Selective endpoint exposure

🔌 gRPC Service Integration

View Demo Repository

Expose existing gRPC services to LLMs without modifying service code:

Architecture:

  • Uses gRPC-Gateway to create an HTTP/JSON proxy
  • Exposes the HTTP proxy as MCP tools via gen-mcp
  • Works with any gRPC service using only .proto definitions

Perfect for:

  • 🏢 Integrating legacy gRPC services with AI workflows
  • 🔄 Bridging binary gRPC with JSON-based LLM interfaces
  • 🚀 Getting started before native gRPC support arrives

Note: This is a workaround pattern until gen-mcp adds native gRPC support.


🤝 Contributing

We welcome contributions! This is an early-stage research project with lots of room for improvement.

Join the Community

Have questions or want to discuss gen-mcp? Join our Discord community:

Join Discord - Connect with other users, share ideas, and get help

Development Setup

bash
git clone https://github.com/genmcp/gen-mcp.git
cd gen-mcp
go test ./...

# Build local binary
make build-cli

📄 License

Apache 2.0 License - see LICENSE file for details.

🔗 Links


Gen MCPのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Gen MCPに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Gen MCPをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Gen MCPのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "gen-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてGen MCPのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Gen MCPのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Gen MCPを使ってこのタスクを手伝ってもらえますか?
Gen MCP
はい、読みました。
Gen MCPで調べた結果をお伝えします。

よくある質問

Gen MCP MCPサーバーは何に使いますか?

Gen MCPは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでGen MCP MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでGen MCPを利用できます。

TypingMindでGen MCP MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Gen MCPを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Gen MCP MCPをTypingMindに接続するにはどうすればよいですか?

Gen MCPはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでGen MCP MCPのどのようなツールを利用できますか?

Gen MCPはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Gen MCP MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Gen MCPで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇