rohithtp
MCP Serverrohithtppublic

mcp python

该项目演示了如何使用 FastMCP 服务器,并提供了相关工具和资源。

Repository Info

0
Stars
0
Forks
0
Watchers
0
Issues
Python
Language
The Unlicense
License

About This Server

该项目演示了如何使用 FastMCP 服务器,并提供了相关工具和资源。

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

mcp-python

This project demonstrates the usage of the FastMCP server with tools and resources.

Installation

  1. Clone the repository:

    git clone <repository-url>
    cd mcp-python
    
  2. Create a virtual environment and activate it:

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
    
  3. Install the required dependencies:

    pip install -r requirements.txt
    

Running the Server

  1. Start the MCP server:

    uvicorn server:mcp --host 0.0.0.0 --port 3000
    

    This will start the server on http://localhost:3000.

Running Tests

Unit Tests

Run the unit tests for the server:

python -m unittest test_server.py

cURL Tests

Run the cURL-based tests:

python test_ssh_curl.py

Ensure the server is running on http://localhost:3000 before executing the cURL tests.

Tools and Resources

  • Tools:

    • add: Adds two numbers. Accessible via /tools/add.
  • Resources:

    • greeting://{name}: Returns a personalized greeting. Accessible via /resources/greeting://{name}.

Quick Start

1

Clone the repository

git clone https://github.com/rohithtp/mcp-python
2

Install dependencies

cd mcp-python
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownerrohithtp
Repomcp-python
LanguagePython
LicenseThe Unlicense
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation