mcpGW
An MCP gateway and proxy designed to simplify applications that utilize various tools.
mcpGW
An MCP gateway/proxy to simplify apps that use tools, derived from https://github.com/mark3labs/mcphost
This is a work in progress and only tested with ollama
Demo Setup 🔧
- Ollama Setup:
- Install Ollama from https://ollama.ai
- Pull your desired model:
ollama pull mistral
- Ensure Ollama is running:
ollama serve
- Optional whisper.cpp support for speech to prompt
- Install Whisper.cpp from https://github.com/ggml-org/whisper.cpp
- Run whisper server https://github.com/ggml-org/whisper.cpp/tree/master/examples/server
- Install a copy of ffmpeg into /tools
- Optional melotts
- Create a server config.. see config.sample.json
{
"UI": {
"Listen": ":8080",
"TLS": true,
"Root": "example/ui"
},
"_comment": "You don't need SpeechToText or TextToSpeech, current code only suports whisper-server and melotts",
"SpeechToText": {
"Provider": "whisper",
"Host": "http://10.0.0.10:8802",
"Model": ""
},
"TextToSpeech": {
"Provider": "melotts",
"Host": "http://10.0.0.10:7777",
"Model": ""
},
"Inference": {
"Provider": "ollama",
"Host": "http://localhost:11434",
"Token": "",
"Model": "mistral-small3.1",
"SystemPrompt": ""
},
"Servers": {
"mcpServers": {
"reminders": {
"command": "./reminders",
"args": [
]
}
}
}
}
- Build and run
make all
./mcpgateway --config ./config.sample.json
Writing your own application
mcpGW provides a set of apis (see server/server.go) and will run any application pointed to by the config UI section:
We included a basic sample UI:
"UI": {
"Listen": ":8080",
"TLS": true,
"Root": "example/ui"
},
Writing your own mcp server
mcpGW will run any mcpserver, but we also included a simple one in examples/mcpservers/reminders
You can then add the server to the mcpServers section of the config
"Servers": {
"mcpServers": {
"reminders": {
"command": "./reminders",
"args": [
]
}
}
}
Related Servers
Scout Monitoring MCP
sponsorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Solana Metrics MCP Server
Analyze Solana metrics from InfluxDB and generate Grafana dashboards.
Local Code Indexing for Cursor
A Python-based server that locally indexes codebases using ChromaDB to provide semantic search for tools like Cursor.
Divvi MCP Server
Automatically integrate the Divvi referral SDK into JavaScript and TypeScript blockchain applications.
Command Executor
Execute pre-approved shell commands securely on a server.
GitLab MR & Confluence Linker
Analyzes GitLab merge requests and links them to Confluence documentation.
MCP Chain of Draft (CoD) Prompt Tool
Enhances LLM reasoning by transforming prompts into Chain of Draft or Chain of Thought formats, improving quality and reducing token usage. Requires API keys for external LLM services.
Model Context Protocol servers
A collection of reference server implementations for the Model Context Protocol (MCP) using Typescript and Python SDKs.
Remote MCP Server (Authless)
An example of a remote MCP server deployable on Cloudflare Workers, without authentication.
Claude Swarm MCP Server
An MCP server for multi-agent orchestration using Claude AI via Claude Desktop.
MCP Server Starter
A starter project for building MCP servers with TypeScript and Bun.