MCP Demo Server

MCP Demo Server

mcp-demo-server•bykennykang7012

A simple Python Model Context Protocol server example that implements basic MCP tools.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Implements two MCP tools: add, which sums two integers, and say_hello, which returns a greeting.
  • •The add tool takes two integer parameters and returns their sum.
  • •The say_hello tool takes a name and returns a personalized greeting string.

BEST FOR

  • •Testing and experimenting with the Model Context Protocol in Python.
  • •Running a sample MCP server in VS Code with GitHub Copilot integration.

ABOUT MCP-DEMO-SERVER

MCP Demo Server is cataloged as an MCP server attributed to kennykang7012. A simple Python Model Context Protocol server example that implements basic MCP tools. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP Demo Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What tools does the server provide?

It provides two tools: add for summing two integers and say_hello for generating a personalized greeting.

Upstream README

View this exact version on GitHub

README.md · 1a1525baa410 · Fetched 2026-11-13 11:04:47 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

MCP Demo Server

這是一個簡單的 Model Context Protocol (MCP) 伺服器示例專案。此專案展示了如何使用 Python 建立基本的 MCP 工具。

功能特點

本專案實現了兩個簡單的 MCP 工具:

  • add: 一個簡單的加法函數,接受兩個整數並返回其總和
  • say_hello: 一個問候函數,接受名字參數並返回問候語

技術需求

  • Python 3.x
  • MCP (Model Context Protocol) 庫
  • uv (Python 套件管理工具)

安裝步驟

  1. 克隆此專案:
git clone [repository-url]
cd mcp-demo
  1. 建立虛擬環境並安裝依賴:
python -m venv .venv
source .venv/bin/activate  # On Windows use: .venv\Scripts\activate
pip install mcp[cli]

使用方法

要啟動 MCP 伺服器,請執行:

uv run --with mcp[cli] mcp run server.py

專案結構

mcp-demo/
├── server.py        # MCP 伺服器主程式
├── .gitignore      # Git 忽略檔案
└── README.md       # 本文件

開發說明

伺服器實現了兩個基本工具:

  1. add(a: int, b: int) -> int

    • 功能:將兩個整數相加
    • 參數:
      • a: 第一個整數
      • b: 第二個整數
    • 返回:兩數之和
  2. say_hello(name: str) -> str

    • 功能:生成個人化的問候語
    • 參數:
      • name: 要問候的人名
    • 返回:包含問候語的字串

配置

專案包含 VS Code 配置文件 (.vscode/mcp.json),可直接在 VS Code 中執行和測試 MCP 伺服器

測試伺服器

在開發模式下測試 MCP 伺服器:

mcp dev server.py

這個命令會:

  1. 在開發模式下啟動伺服器
  2. 自動重新載入程式碼變更
  3. 提供更詳細的除錯資訊

GitHub Copilot 設定

要在 GitHub Copilot 中使用此 MCP 伺服器,請在 VS Code 中設定以下步驟:

  1. 在專案根目錄建立 .vscode 資料夾(如果還沒有的話)

  2. 在 .vscode 資料夾中建立 mcp.json 檔案,內容如下:

{
    "servers": {
      "Demo": {
        "command": "uv",
        "args": [
          "run",
          "--with",
          "mcp[cli]",
          "mcp",
          "run",
          "${workspaceFolder}/server.py"
        ]
      }
    }
}
  1. 設定完成後,GitHub Copilot 將能夠自動連接到您的 MCP 伺服器,並使用其提供的工具功能。

注意:

  • 確保已正確安裝 uv 套件管理工具
  • ${workspaceFolder} 會自動被替換為您的專案根目錄路徑
  • 如果使用不同的 Python 環境管理工具,可以根據需要調整 command 和 args

授權

MIT License

致謝

MCP-Demo-Server 已由以下機構索引和認證 MCP 評論。

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP Demo Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-demo-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools