MCP Platform
A reusable runtime infrastructure for hosting Model Context Protocol servers and tool registries over HTTP. It provides built-in validation, authentication, and logging to simplify the deployment of AI-powered workflows.
README
MCP Platform
A reusable Model Context Protocol (MCP) Platform for hosting MCP servers, tool registries, and skills-powered AI workflows over HTTP.
What This Repo Is
This is the platform repo — shared runtime infrastructure that any project-specific MCP service builds on top of.
| Repo type | Purpose | Example |
|---|---|---|
| Platform (this repo) | HTTP server, tool registry, validation, auth, logging | MCP |
| Skills content | Reusable AI agent skill definitions (SKILL.md + references) | AI_AGENT_SKILLS |
| Project service | Business-logic tools for a specific product | ghostfolio-mcp-server |
A project service imports this platform, registers its own tools, and pins a version of the skills content repo for context retrieval.
Architecture
AI_AGENT_SKILLS (content)
↓ mounted / submodule
Project MCP Service (e.g. ghostfolio-mcp-server)
↓ depends on
MCP Platform (this repo) ← HTTP transport, registry, validation
↓ serves
Claude / AI client via JSON-RPC over HTTP
Quickstart
# 1. Install dependencies
npm install
# 2. Set environment variables (optional)
export PORT=3100
export MCP_API_KEY=your-secret-key # omit to disable auth
# 3. Run the dev server
npm run dev
# 4. Health check
curl http://localhost:3100/health
# → { "status": "ok", "timestamp": "..." }
# 5. List registered tools
curl http://localhost:3100/tools
# → { "tools": [ { "name": "echo", ... } ] }
# 6. Call a tool via JSON-RPC
curl -X POST http://localhost:3100/rpc \
-H "Content-Type: application/json" \
-H "x-mcp-api-key: your-secret-key" \
-d '{"method":"echo","params":{"message":"hello"},"id":1}'
# → { "jsonrpc": "2.0", "result": { "echo": "hello", ... }, "id": 1 }
Adding a Tool
- Create a handler function:
(params, context) => result - Define a JSON schema for the input parameters.
- Register it in
src/server/toolRegistry.tsor viaregisterTool(). - See docs/adding_a_tool.md for the full guide.
Deployment
Designed for Railway with HTTP transport (no stdio).
- Set
PORTvia Railway env vars (Railway auto-assigns). - Set
MCP_API_KEYfor production auth. - See docs/deployment_railway.md for step-by-step instructions.
Project Structure
src/
index.ts # Entrypoint — bootstraps server
server/ # HTTP server, transport, tool registry
skills/ # Skills file loader and resolver
validation/ # JSON schema + SQL safety gate
auth/ # API key auth + request context
logging/ # Structured logger + trace
utils/ # Error classes, env helpers
docs/ # Architecture, deployment, guides
templates/ # Tool, skill, and service repo templates
examples/ # Minimal working tool example
License
MIT
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.