FluidMCP CLI
A command-line tool to run MCP servers from a single file, with support for automatic dependency resolution, environment setup, and package installation from local or S3 sources.
๐ Features
-
๐ฆ 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
- Install MCP packages with
-
๐ 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
pip install fluidmcp
โก Quick Start
1. Install a Package
fluidmcp install author/package@version
2. List Installed Packages
fluidmcp list
3. Run a Package
fluidmcp run ./config.json --file
๐ Secure Run (Token Auth)
fluidmcp file_directory/config.json --file --secure --token your_token --start-server
after authorisation
โ๏ธ Run from S3 URL
fluidmcp run "https://bucket.s3.amazonaws.com/config.json" --s3
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
๐ Run as an individual package
fluidmcp run author/package@version --start-server
4. Run All Installed Packages
fluidmcp run all
๐ Run Modes
๐ง Master Mode (S3 Centralized)
fluidmcp install author/package@version --master
fluidmcp run all --master
๐งฉ Environment Variables
# 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
fluidmcp edit-env <author/package@version>
๐ Directory Layout
.fmcp-packages/
โโโ Author/
โโโ Package/
โโโ Version/
โโโ metadata.json
โโโ [tool files]
๐ metadata.json Example
{
"mcpServers": {
"maps": {
"command": "npx",
"args": ["-y", "@package/server"],
"env": {
"API_KEY": "xxx"
}
}
}
}
๐งช Try an MCP Server
fluidmcp install Google_Maps/google-maps@0.6.2
fluidmcp run all
Then call it using:
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
curl -N -X POST http://localhost:8099/package/sse \
-H "Content-Type: application/json" \
-d @payload.json
sse/startsse/streamsse/messagesse/tools_call
Useful for LLMs, web scraping, or AI workflows that stream data.
๐ธ Demo
Installing an individual package
Running an individual package
Edit environment of a package
๐ค Contribute
FluidMCP is open for collaboration. Feel free to open issues or submit PRs.
๐ License
Related Servers
Remote MCP Server (Authless)
An authentication-free, remote MCP server deployable on Cloudflare Workers or locally via npm.
OpenRPC MCP Server
Provides JSON-RPC functionality through the OpenRPC specification.
OpenAPI2MCP
Converts OpenAPI specifications into MCP tools, enabling AI clients to interact with external APIs seamlessly.
Deepseek Thinking & Claude 3.5 Sonnet
Combines DeepSeek's reasoning capabilities with Claude 3.5 Sonnet's response generation through OpenRouter.
FastAPI with MCP
A FastAPI application demonstrating MCP integration for mathematical operations and tool registration.
Deriv API Server
An MCP server and OpenAI function calling service for interacting with the Deriv API.
Ollama MCP Server
Integrate local Ollama LLM instances with MCP-compatible applications.
SoftProbe MCP Server
An MCP server for managing API test data and resources.
x64dbgMCP
An MCP server that connects LLMs with the x64dbg debugger, enabling natural language control over debugging functions.
Sailor
Generate and render Mermaid diagrams as images using LLMs.