mcp-remote-suite
A production-ready Model Context Protocol suite over Streamable HTTP providing a sandboxed file server with tools, resources, prompts, and both manual and AI-driven clients.
README
MCP Remote Suite
A production-ready Model Context Protocol (MCP) suite over Streamable HTTP, demonstrating remote connectivity, a filesystem roots security boundary, and where sampling (server-initiated LLM requests) fits in.
It ships three runnable apps on top of one transport layer:
| Component | Role | Default URL |
|---|---|---|
Server (mcp-server) |
FastMCP file server: tools, resources, prompts, sandboxed to a workspace root | http://127.0.0.1:8000 |
GUI client (mcp-gui) |
Manual Gradio UI to discover/run tools, read resources, render prompts | http://127.0.0.1:7861 |
AI host (mcp-host) |
Gradio chat where an OpenAI model drives the MCP tools | http://127.0.0.1:7862 |
Architecture
src/mcp_remote_suite/
├── config.py # env-driven settings (pydantic-settings)
├── logging_config.py # shared logging setup
├── _content.py # unwrap MCP result objects -> text/dicts
├── server/
│ ├── security.py # WorkspaceGuard — path-traversal protection
│ ├── files.py # WorkspaceFiles — testable file operations
│ ├── app.py # FastMCP factory + entry point
│ └── __main__.py # python -m mcp_remote_suite.server
├── client/
│ └── base.py # MCPHTTPClient — transport only, no UI/LLM deps
└── apps/
├── gui.py # MCPHTTPClientApp (manual)
└── host.py # MCPHTTPHostApp (LLM-driven, multi-round tool loop)
tests/ # pytest unit tests for the security boundary + files
Layering: apps depend on client and _content; server depends on
security + files. Nothing hardcodes ports/URLs/models — all configuration
flows from config.py.
Setup
python -m venv .venv
# Windows: .venv\Scripts\activate | Unix: source .venv/bin/activate
pip install -e ".[dev]"
cp .env.example .env # optional — adjust ports, model, OpenAI creds
Run
Start the server, then either app (each in its own terminal):
mcp-server # http://127.0.0.1:8000
mcp-gui # http://127.0.0.1:7861 (manual)
mcp-host # http://127.0.0.1:7862 (AI chat; needs OpenAI creds)
Equivalent module form: python -m mcp_remote_suite.server, etc.
Configuration
All settings come from environment variables or .env (see .env.example).
Key ones: SERVER_HOST/SERVER_PORT, WORKSPACE_DIR, SERVER_URL,
GUI_PORT/HOST_PORT, LOG_LEVEL, and OPENAI_API_KEY / OPENAI_BASE_URL /
OPENAI_MODEL for the AI host.
Security boundary
Every server-side path goes through WorkspaceGuard.resolve(), which resolves
the path and rejects anything escaping the workspace root (.., absolute paths,
symlink escapes) with AccessDeniedError. This is the "roots" enforcement that
makes the server safe to expose remotely.
Tests
pytest
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.