MCP Platform MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
npm install
npm run dev
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add mcp-platform -- node "<FULL_PATH_TO_MCP>/dist/index.js"

Replace <FULL_PATH_TO_MCP>/dist/index.js with the actual folder you prepared in step 1.

README.md

A reusable runtime infrastructure for hosting MCP servers over HTTP.

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

  1. Create a handler function: (params, context) => result
  2. Define a JSON schema for the input parameters.
  3. Register it in src/server/toolRegistry.ts or via registerTool().
  4. See docs/adding_a_tool.md for the full guide.

Deployment

Designed for Railway with HTTP transport (no stdio).

  • Set PORT via Railway env vars (Railway auto-assigns).
  • Set MCP_API_KEY for 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

Tools (1)

echoA sample tool that returns the provided message.

Environment Variables

PORTThe port for the HTTP server to listen on.
MCP_API_KEYAPI key for authentication; omit to disable auth.

Configuration

claude_desktop_config.json
{ "mcpServers": { "mcp-platform": { "command": "node", "args": ["dist/index.js"], "env": { "MCP_API_KEY": "your-secret-key" } } } }

Try it

List all tools currently registered on the MCP platform.
Call the echo tool with the message 'Hello, Claude'.
Check the health status of the MCP platform server.

Frequently Asked Questions

What are the key features of MCP Platform?

HTTP transport for MCP servers. Built-in tool registry management. Request validation and JSON schema support. API key-based authentication. Structured logging and request tracing.

What can I use MCP Platform for?

Deploying custom AI agent skills as a standalone HTTP service.. Standardizing tool registry and validation across multiple MCP projects.. Hosting MCP servers on platforms like Railway without stdio requirements..

How do I install MCP Platform?

Install MCP Platform by running: npm install && npm run dev

What MCP clients work with MCP Platform?

MCP Platform works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep MCP Platform docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare