MCP Server Demo
@raycao871218
MCP Server Demo について
一个基于MCP框架的服务器演示项目,提供了简单的API接口实现,包括数字运算、时间查询、订单信息查询等功能。
基本情報
設定
ツール
ツールは検出されませんでした
ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。
概要
What is MCP Server Demo?
MCP Server Demo is a demonstration MCP framework server that provides simple API implementations for basic arithmetic, machine time queries, order information retrieval (with database configuration), and dynamic greeting generation. It is intended for developers exploring MCP framework capabilities.
How to use MCP Server Demo?
Install Python 3.10+, the MCP SDK (source at https://github.com/modelcontextprotocol/python-sdk), and optionally PyMySQL for database access. Configure database connection parameters in server.py if using order‑query features, then start the service with mcp dev server.py.
Key features of MCP Server Demo
- Basic arithmetic API (adds two integers plus 1000)
- Machine time query (returns current time delayed 30 minutes)
- Order information query (requires database connection)
- Dynamic greeting generation via
greeting://{name}resource
Use cases of MCP Server Demo
- Demonstrate how to build a simple MCP server with multiple tools
- Test MCP SDK setup and tool invocation patterns
- Experiment with database‑backed resource queries in MCP
- Create a prototype for time‑stamped or order‑lookup services
FAQ from MCP Server Demo
What Python version is required?
Python 3.10 or higher is required.
How do I configure the order query feature?
Edit server.py and set the database connection parameters: host='localhost', user, password, and database to your own MySQL credentials.
What dependencies does it need?
The MCP SDK and optionally PyMySQL (for database connectivity) are required.
What does the “add” tool do?
It takes two integers a and b, sums them, and adds 1000 to the result, returning an integer.
How do I start the server?
Run the command mcp dev server.py in your terminal after installing all dependencies.
「その他」の他のコンテンツ
IDA Pro MCP
mrexodiaAI-powered reverse engineering assistant that bridges IDA Pro with language models through MCP.
🚀 Model Context Protocol (MCP) Curriculum for Beginners
microsoftThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
Awesome Mlops
visengerA curated list of references for MLOps
MCP Registry
modelcontextprotocolA community driven registry service for Model Context Protocol (MCP) servers.
ICSS
chokcoco不止于 CSS
コメント