mcp2rest
by ulasbilgen
Overview
Manages multiple Model Context Protocol (MCP) servers and exposes their tools via a universal REST API, enabling access from any programming language.
Installation
mcp2rest startEnvironment Variables
- MCP2REST_PORT
- MCP2REST_HOST
Security Notes
The REST API lacks built-in authentication and authorization. If the gateway is configured to listen on a non-localhost address (e.g., 0.0.0.0), it will be publicly accessible, allowing anyone to add/remove servers or execute tools. Configuration files (`~/.mcp2rest/config.yaml`) store API keys and other secrets in plaintext. While `npx` execution of child processes is generally safer than raw shell commands, the potential for a malicious MCP server package or unsanitized arguments passed to a spawned server could lead to vulnerabilities in the child process environment.
Similar Servers
Unla
A lightweight and highly available gateway service that converts existing MCP Servers and APIs into services compliant with the MCP Protocol through configuration.
mcphub
A hub for managing, orchestrating, and providing a unified API for various Model Context Protocol (MCP) servers and their tools, including user management, OAuth services, and discovery of external servers.
tmcp
Build Model Context Protocol (MCP) servers for AI agents, providing schema-agnostic tools, resources, and prompts, with optional OAuth 2.1 authentication and distributed session management.
typingmind-mcp
A server for managing and integrating Model Context Protocol (MCP) servers with TypingMind, enabling custom AI model connections.