FluidMCP CLI logo

FluidMCP CLI

Organization
Fluid-AI

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

PublisherFluid-AI
Repositoryfluidmcp
LanguagePython
Forks
10
Stars
8
Available tools
0
Transport typestdio
Categories
LicenseGPL-3.0
Links
  • Connect tools to AI workflows

    FluidMCP CLI exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    8 stars and 10 forks from the linked repository.


⚡ 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


Installation

TypingMind
Prerequisites:

Node.js 18+

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

Use FluidMCP CLI MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once FluidMCP CLI is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add FluidMCP CLI as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the FluidMCP CLI MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "fluid-ai-fluidmcp": {
      "command": "npx",
      "args": [
        "-y",
        "fluidmcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the FluidMCP CLI MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the FluidMCP CLI MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use FluidMCP CLI to help me with this task?
FluidMCP CLI
Sure. I read it.
Here is what I found using FluidMCP CLI.

Frequently asked questions

What is the FluidMCP CLI MCP server used for?

FluidMCP CLI is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use FluidMCP CLI MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use FluidMCP CLI with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use FluidMCP CLI MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With FluidMCP CLI connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect FluidMCP CLI MCP to TypingMind?

FluidMCP CLI runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does FluidMCP CLI MCP provide in TypingMind?

FluidMCP CLI exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use FluidMCP CLI MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If FluidMCP CLI requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇