MCP ExplorerExplorer

Gpt Mcp Proxy

@wricardoon 9 months ago
5 MIT
FreeCommunity
AI Systems
HTTP server that provides access to executing Multiple Command Protocol (MCP) tools.

Overview

What is Gpt Mcp Proxy

gpt-mcp-proxy is an HTTP server that provides access to executing Multiple Command Protocol (MCP) tools. It serves as a bridge between HTTP clients and MCP-compliant tool servers, enabling the discovery and execution of tools via REST endpoints.

Use cases

Use cases include integrating MCP tools with custom GPT applications, automating workflows, and providing a RESTful interface for executing command-line tools.

How to use

To use gpt-mcp-proxy, set up the required environment variables, prepare the configuration file, and run the server using the command ‘go run main.go’.

Key features

Key features include listing available MCP servers and their tools, retrieving detailed information about specific tools, executing tools with custom parameters, an OpenAPI 3.1.0 specification, and automatic public HTTPS exposure via ngrok.

Where to use

gpt-mcp-proxy can be used in various fields where integration of MCP tools with custom applications is required, such as software development, automation, and data processing.

Content

GPT MCP Proxy

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.

Features

  • List available MCP servers and their tools
  • Get detailed information about specific tools
  • Execute tools with custom parameters
  • OpenAPI 3.1.0 specification
  • Automatic public HTTPS exposure via ngrok

Prerequisites

  • Go 1.20 or later
  • ngrok account and authtoken
  • MCP-compliant tools

Configuration

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

Configuration File Format

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"
      ]
    }
  }
}

API Endpoints

  • GET /openapi.json - OpenAPI specification
  • GET /mcp/servers - List all servers and their tools
  • GET /mcp/{serverName} - Get server details
  • GET /mcp/{serverName}/tools/{toolName} - Get tool details
  • POST /mcp/{serverName}/tools/{toolName}/execute - Execute a tool

Usage

  1. Set up environment variables
  2. Prepare configuration file
  3. Run the server:
go run main.go

Development

To build from source:

git clone https://github.com/wricardo/mcp-http-server.git
cd mcp-http-server
go build

License

MIT License

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers