FluidMCP CLIのロゴ

FluidMCP CLI

組織
Fluid-AI

The package manager for fluidmcp to quickly spin up mcp servers behind fastapi

公開者Fluid-AI
リポジトリfluidmcp
言語Python
フォーク
10
スター
8
利用可能なツール
0
通信方式stdio
カテゴリ
ライセンスGPL-3.0
リンク
  • ツールをAIワークフローに接続

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

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

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

  • コピーして使える設定

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

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

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


⚡ Quick Start - Run Multiple MCP Servers

The main power of FluidMCP is running multiple MCP servers from a single configuration file over a unified FastAPI endpoint.

1. Create a Configuration File

Create a config.json file with your MCP servers:

json
{
  "mcpServers": {
    "google-maps": {
      "command": "npx",
      "args": ["-y", "@google-maps/mcp-server"],
      "env": {
        "GOOGLE_MAPS_API_KEY": "your-api-key"
      }
    },
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/files"],
      "env": {}
    }
  }
}

2. Launch All Servers

bash
fluidmcp run config.json --file --start-server

This will:

  • Install and configure all MCP servers listed in your config
  • Launch them through a unified FastAPI gateway
  • Make them available at http://localhost:8099
  • Provide automatic API documentation at http://localhost:8099/docs

fluidmcp_file_


🚀 Features

  • 📁 Multi-Server Orchestration

    • Define multiple MCP servers in a single JSON configuration file
    • Launch all servers with one command: fluidmcp run --file <config.json>
    • Unified FastAPI gateway serving all your MCP tools
  • 📦 Package Management

    • Install MCP packages with fluidmcp install author/package@version
    • Automatic dependency resolution and environment setup
    • Support for npm, Python, and custom MCP servers
  • 🚀 FastAPI Gateway

    • Unified HTTP endpoints for all MCP tools
    • Server-Sent Events (SSE) streaming support
    • Swagger documentation at /docs
  • 🔐 Security & Authentication

    • Bearer token authentication
    • Secure mode with encrypted communications
    • Environment variable encryption for API keys

📥 Installation

bash
pip install fluidmcp

🔧 Alternative Usage Patterns

Install Individual Packages

bash
fluidmcp install author/package@version

List Installed Packages

bash
fluidmcp list

Run Individual Package

bash
fluidmcp run author/package@version --start-server

🔐 Advanced Usage

Secure Mode with Authentication

Run with bearer token authentication:

bash
fluidmcp run config.json --file --secure --token your_token --start-server

fluidmcp_secure_1


after authorisation

fluidmcp_secure_2


☁️ Run from S3 URL

Run configuration directly from S3:

bash
fluidmcp run "https://bucket.s3.amazonaws.com/config.json" --s3

Common Options:

  • --start-server – Starts FastAPI server
  • --master – Use S3-driven config
  • --file – Run from local config.json
  • --s3 – Run from S3 URL
  • --secure – Enable secure token mode
  • --token <token> – Custom bearer token
  • --verbose – Enable verbose logging (DEBUG level)

Run All Installed Packages

bash
fluidmcp run all --start-server

📂 Run Modes

🧠 Master Mode (S3 Centralized)

bash
fluidmcp install author/package@version --master
fluidmcp run all --master

🧩 Environment Variables

bash
# S3 Credentials (used in --master mode)
export S3_BUCKET_NAME="..."
export S3_ACCESS_KEY="..."
export S3_SECRET_KEY="..."
export S3_REGION="..."


# Registry access
export MCP_FETCH_URL="https://registry.fluidmcp.com/fetch-mcp-package"
export MCP_TOKEN="..."

Edit Environment

bash
fluidmcp edit-env <author/package@version>

Show Version

bash
fluidmcp --version

Displays FluidMCP version, Python version, and installation path.

Validate Configuration

bash
# Validate a local configuration file
fluidmcp validate config.json --file

# Validate an installed package
fluidmcp validate author/package@version

The validate command checks:

  • Configuration file structure and resolution
  • Command availability in system PATH
  • Required environment variables (marked with required: true)
  • Optional environment variables and tokens
  • Metadata.json existence for installed packages

Note: Environment variable lookup is case-insensitive. For example, if your config specifies github_token, the validator will check both github_token and GITHUB_TOKEN in your environment.

The command distinguishes between errors (fatal issues) and warnings (non-fatal issues):

Errors (exit code 1):

  • Missing commands in PATH
  • Missing required environment variables
  • Configuration resolution failures

Warnings (exit code 0):

  • Missing optional environment variables
  • Missing TOKEN variables not explicitly marked as required

Example outputs:

Success:

✔ Configuration is valid with no issues found.

With warnings only:

⚠️  Configuration is valid with warnings:
  - Optional env var 'DEBUG_MODE' is not set (server: test-server)
  - Token env var 'GITHUB_TOKEN' is not set (server: github-server)

✔ No fatal errors found. You may proceed, but consider addressing the warnings above.

With errors:

❌ Configuration validation failed with errors:
  - Command 'nonexistent-command' not found in PATH (server: test-server)
  - Missing required env var 'API_KEY' (server: test-server)

⚠️  Warnings:
  - Optional env var 'DEBUG_MODE' is not set (server: test-server)

📁 Directory Layout

.fmcp-packages/
└── Author/
    └── Package/
        └── Version/
            ├── metadata.json
            └── [tool files]

📑 metadata.json Example

json
{
  "mcpServers": {
    "maps": {
      "command": "npx",
      "args": ["-y", "@package/server"],
      "env": {
        "API_KEY": "xxx"
      }
    }
  }
}

🧪 Try an MCP Server

bash
fluidmcp install Google_Maps/google-maps@0.6.2
fluidmcp run all

Then call it using:

python
import requests, json


url = "http://localhost:8099/google-maps/mcp"
payload = {
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "maps_search_places",
    "arguments": {
      "query": "coffee shops in San Francisco"
    }
  }
}
response = requests.post(url, json=payload)
print(json.dumps(response.json(), indent=2))

📡 Streaming with SSE

bash
curl -N -X POST http://localhost:8099/package/sse \
  -H "Content-Type: application/json" \
  -d @payload.json
  • sse/start
  • sse/stream
  • sse/message
  • sse/tools_call

Useful for LLMs, web scraping, or AI workflows that stream data.


📸 Demo

Installing an individual package

fluidmcp_install


Running an individual package

fluidmcp_run_individual (2)


Edit environment of a package

fluidmcp_edit-env (2)


🤝 Contribute

FluidMCP is open for collaboration. We welcome contributions from the community!

  • Contributing Guide: See CONTRIBUTING.md for development setup and guidelines
  • Report Issues: Open an issue on GitHub
  • Submit PRs: Follow our contribution guidelines to submit pull requests

📌 License

GNU General Public License v3.0


インストール

TypingMind
前提条件:

Node.js 18+

{
  "mcpServers": {
    "fluid-ai-fluidmcp": {
      "command": "uvx",
      "args": [
        "fluidmcp"
      ]
    }
  }
}

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

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度FluidMCP CLIに接続すれば、モデルごとに個別に設定することなく、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

FluidMCP CLIをサーバーとして追加

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

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

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

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

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

よくある質問

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

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

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

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

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

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

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

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

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

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

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

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

関連するMCPサーバー

すべて見る

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

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