Skip to main content
Glama

MCP REST API Server

by vinaykp

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.

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

  1. Clone the repository:
    git clone <repository-url> cd mcp_restapi
  2. Install dependencies:
    pip install -e .

Running the Server

Start the server using the following command:

python server.py

Logging

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.

-
security - not tested
F
license - not found
-
quality - not tested

A server implementation of the Model Context Protocol (MCP) that provides REST API endpoints for managing and interacting with MCP resources.

  1. Overview
    1. Project Structure
      1. Requirements
        1. Setup
          1. Running the Server
            1. Logging
              1. Health Check
                1. License

                  Related MCP Servers

                  • A
                    security
                    A
                    license
                    A
                    quality
                    A Model Context Protocol (MCP) server that provides JSON-RPC functionality through OpenRPC.
                    Last updated -
                    2
                    8
                    36
                    JavaScript
                    Apache 2.0
                    • Apple
                  • A
                    security
                    A
                    license
                    A
                    quality
                    A beginner-friendly Model Context Protocol (MCP) server that helps users understand MCP concepts, provides interactive examples, and lists available MCP servers. This server is designed to be a helpful companion for developers working with MCP. Also comes with a huge list of servers you can install.
                    Last updated -
                    3
                    676
                    61
                    JavaScript
                    Apache 2.0
                  • -
                    security
                    A
                    license
                    -
                    quality
                    MCP Server simplifies the implementation of the Model Context Protocol by providing a user-friendly API to create custom tools and manage server workflows efficiently.
                    Last updated -
                    2
                    4
                    TypeScript
                    MIT License
                  • -
                    security
                    A
                    license
                    -
                    quality
                    MCP Server provides a simpler API to interact with the Model Context Protocol by allowing users to define custom tools and services to streamline workflows and processes.
                    Last updated -
                    2
                    3
                    TypeScript
                    MIT License

                  View all related MCP servers

                  MCP directory API

                  We provide all the information about MCP servers via our MCP API.

                  curl -X GET 'https://glama.ai/api/mcp/v1/servers/vinaykp/mcp_restapi'

                  If you have feedback or need assistance with the MCP directory API, please join our Discord server