MCP REST API Server
Provides a REST API interface for the Model Context Protocol (MCP), allowing Python applications to interact with MCP resources, manage contexts, and utilize MCP capabilities through standard HTTP requests.
Uses TOML for project configuration and dependency management via pyproject.toml, enabling structured configuration of the MCP REST API server.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP REST API Servercheck the server health status"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP REST API
Overview
This project implements a REST API server for the Model Context Protocol (MCP). It provides endpoints for managing and interacting with MCP resources.
Related MCP server: @profullstack/mcp-server
Project Structure
client.py: Handles client-side interactions.health_check.py: Implements health check endpoints for the server.logger_config.py: Configures logging for the application.mcp_server.py: Core server logic for the MCP REST API.middleware.py: Middleware components for request/response processing.server.py: Entry point for starting the server.pyproject.toml: Project configuration and dependencies.logs/: Directory containing log files (error.log,mcp_server.log).
Requirements
Python 3.12 or higher
Dependencies listed in
pyproject.toml
Setup
Clone the repository:
git clone <repository-url> cd mcp_restapiInstall dependencies:
pip install -e .
Running the Server
Start the server using the following command:
python server.pyLogging
Log files are stored in the logs/ directory. The following logs are available:
error.log: Records error messages.mcp_server.log: General server logs.
Health Check
The health check endpoint can be accessed to verify the server's status. Refer to health_check.py for implementation details.
License
This project is licensed under the MIT License. See the LICENSE file for details.
This server cannot be deployed
Maintenance
Related MCP Connectors
A Model Context Protocol (MCP) server for Selise Blocks Cloud integration
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
An MCP server that provides an API to LLMs to manage their JumpCloud resources.
An MCP server that provides access to Testiny projects, test cases and test runs
Related MCP Servers
- AlicenseBqualityFmaintenanceA Model Context Protocol (MCP) server that provides JSON-RPC functionality through OpenRPC.235 npm43Apache 2.0
- AlicenseNot gradedqualityBmaintenanceA generic, modular server for implementing the Model Context Protocol (MCP).64 npm45ISC
- AlicenseNot gradedqualityCmaintenanceA server that implements the Model Context Protocol (MCP) with StreamableHTTP transport, enabling standardized interaction with model services through a RESTful API interface.340 npm2MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol (MCP) server based on OpenRPC, providing JSON-RPC function invocation and method discovery services.21Apache 2.0