A REST API server that provides HTTP access to Multiple Command Protocol (MCP) tools. This server acts as a bridge between HTTP clients and MCP-compliant tool servers, allowing tools to be discovered and executed via REST endpoints. This is very useful for integrating MCP tools with custom GPT through Actions.
The server requires the following environment variables:
NGROK_AUTH_TOKEN=your_ngrok_auth_token
NGROK_DOMAIN=your_ngrok_domain
MCP_CONFIG_FILE=/path/to/mcp_settings.json # Optional, defaults to mcp_settings.json
Create an mcp_settings.json
file with your MCP server configurations:
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/Users/username/Desktop",
"/path/to/other/allowed/dir"
]
}
}
}
GET /openapi.json
- OpenAPI specificationGET /mcp/servers
- List all servers and their toolsGET /mcp/{serverName}
- Get server detailsGET /mcp/{serverName}/tools/{toolName}
- Get tool detailsPOST /mcp/{serverName}/tools/{toolName}/execute
- Execute a toolgo run main.go
To build from source:
git clone https://github.com/wricardo/mcp-http-server.git
cd mcp-http-server
go build
MIT License
Contributions are welcome! Please feel free to submit a Pull Request.
{
"mcpServers": {
"filesystem": {
"env": {},
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/Users/username/Desktop",
"/path/to/other/allowed/dir"
],
"command": "npx"
}
}
}
Seamless access to top MCP servers powering the future of AI integration.