Skip to main content
Glama

MCP Python Server

by jatindera

MCP (Model Context Protocol) Implementation

Overview

This project implements the Model Context Protocol (MCP) using a server-client architecture in Python. The MCP Server handles requests related to model context management, while the MCP Client interacts with the server to send and receive data.

Prerequisites

  • Python 3.x

Setting Up the Environment

  1. Create a Virtual Environment Open a terminal and navigate to the project directory. Run the following command to create a virtual environment:
    python -m venv venv
  2. Activate the Virtual Environment
    • On Windows:
      venv\Scripts\activate
    • On macOS/Linux:
      source venv/bin/activate
  3. Install Required Packages After activating the virtual environment, install the required packages using:
    pip install -r requirements.txt

Running the Application

  1. Start the MCP Server Open a terminal (while the virtual environment is activated) and navigate to the directory containing mcp_server.py. Run the following command:
    python mcp_server.py
  2. Start the MCP Client Open another terminal window (or tab) (while the virtual environment is activated) and navigate to the directory containing mcp_client.py. Run the following command:
    python mcp_client.py

Usage

  • After starting the MCP Server, you can interact with it using the MCP Client.

Contributing

Feel free to fork the repository and submit pull requests for any improvements or bug fixes.

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 Python-based implementation of the Model Context Protocol that enables communication between a model context management server and client through a request-response architecture.

  1. Overview
    1. Prerequisites
      1. Setting Up the Environment
        1. Running the Application
          1. Usage
            1. Contributing
              1. License

                Related MCP Servers

                • A
                  security
                  F
                  license
                  A
                  quality
                  A Model Context Protocol server implementation for interacting with Salesforce through its REST API.
                  Last updated -
                  4
                  10
                  TypeScript
                • -
                  security
                  A
                  license
                  -
                  quality
                  A Model Context Protocol server that enables seamless execution of commands, Python code, web content fetching, and reusable task management with secure credentials handling.
                  Last updated -
                  2
                  Python
                  MIT License
                  • Apple
                • -
                  security
                  F
                  license
                  -
                  quality
                  A Model Context Protocol server that provides a comprehensive interface for interacting with the ConnectWise Manage API, simplifying API discovery, execution, and management for both developers and AI assistants.
                  Last updated -
                  46
                  2
                  Python
                  • Linux
                  • Apple
                • -
                  security
                  A
                  license
                  -
                  quality
                  Model Context Protocol server to run Python code in a sandbox.
                  Last updated -
                  1,462
                  9,856
                  Python
                  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/jatindera/MCPBasic'

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