
mcp sever demo
一个展示核心功能的 Model Context Protocol (MCP) 服务器实现示例。
Repository Info
About This Server
一个展示核心功能的 Model Context Protocol (MCP) 服务器实现示例。
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 Server Basic Example
This is a basic example of a Model Context Protocol (MCP) server implementation that demonstrates core functionality including tools and resources.
Setup Steps
- Initialize the project (Go to any local folder and launch powershell or cmd):
uv init mcp-server-demo
cd mcp-server-demo
-
Create virtual environment and activate it
uv venv
.venv\Scripts\activate
- Install dependencies:
uv add "mcp[cli]"
or
uv add -r requirements.txt
Features
The server implements the following features:
Tools
add(a: int, b: int): Adds two numberssubtract(a: int, b: int): Subtracts second number from first
Resources
greeting://{name}: Returns a personalized greeting
Running the Server
To run the server with the MCP Inspector for development:
uv run mcp dev main.py
To run the server normally:
uv run mcp run
To install the server in Claude desktop app:
uv run mcp install main.py
MCP connect in VS code
- Open folder/mcp-server-basic in vs code
- open terminal and run below command :
uv run main.py
Quick Start
Clone the repository
git clone https://github.com/lskiranch/mcp-sever-demoInstall dependencies
cd mcp-sever-demo
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.