Skip to main content
Glama
rudeeh

init-mcp-server

by rudeeh

init-mcp-server

クラウドにデプロイ可能な**Model Context Protocol (MCP)**サーバーです。ExpressとSSEトランスポートを使用しています。 Render(無料プラン)にデプロイでき、カスタム接続アプリとしてGeminiに接続できます。

含まれるツール

ツール

説明

echo

入力テキストをそのまま返します(接続テスト)

add_numbers

2つの数値を加算します

get_current_time

現在のUTC時刻をISO-8601形式で返します

reverse_text

文字列を逆転します

Related MCP server: Python MCP Server

クイックスタート

npm install
npm run build
npm start

Renderにデプロイする

  1. このリポジトリをGitHubにプッシュします

  2. Render Dashboard > New > Blueprint に移動します

  3. リポジトリを接続してApplyをクリックします(render.yamlが残りを処理します)

  4. HTTPS URLをコピーし、/sseでGeminiに接続します

Geminiに接続する

  1. Geminiを開き、設定 -> 接続済みアプリの順に移動します

  2. カスタムアプリのリンクに https://your-service.onrender.com/sse を追加します

  3. Geminiが4つのツールすべてを自動的に検出します

プロジェクト構成

src/
  index.ts      # Express server + SSE transport
  tools.ts      # Tool definitions and handlers
render.yaml     # Render deployment config
package.json
tsconfig.json

独自ツールを追加する

src/tools.tsを編集します:

  1. tools配列に新しいエントリを追加します

  2. switch文に対応するcaseを追加します

  3. 再ビルドして再デプロイします

Related MCP Connectors

Related MCP Servers

  • F
    license
    D
    quality
    D
    maintenance
    A demonstration MCP server built with fastmcp that provides basic utility tools including number addition and greeting functionality. Integrates with Gemini CLI to enable natural language interaction with simple mathematical and greeting operations.
    2
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    A self-contained, dependency-free MCP server that provides utility tools for time, date, mathematical calculations, and shell command execution. It supports remote connectivity through SSE and is designed for easy deployment via Docker.
    GPL 3.0