kaoyuching
MCP Serverkaoyuchingpublic

mcp demo

演示基于模型上下文协议 (MCP) 的客户端-服务器架构实现。

Repository Info

0
Stars
0
Forks
0
Watchers
0
Issues
Python
Language
-
License

About This Server

演示基于模型上下文协议 (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 demo

According to Model Cpntext Protocal(MCP) official documents, MCP is an open protocal that standardizes how applications provide context to LLMs.

MCP follows client-server architecture

Hosts: LLM applications.
Clients: maintain 1:1 connection with servers.
Servers: provide context, tools, prompts to clients.

MCP key features

Resources: allow server to expose static data and content that can be read by clients.
Prompts: provide consistent and reusable prompt template for LLM interactions.
Tools: executable functions that can be called by LLMs and perform actions or operations. Then the results will be used by clients.

MCP servers demo

  1. Tools for stock infomation
    • get_realtime_stock_price enables client to get the current stock price.
    • get_stock_previous_price enables client to get the previous day's closing price.
    • get_stock_symbol searchs for stock symbol by company name.
    • ask_realtime_stock_price provides a reusable prompt template to ask for realtime stock price.
  2. Prompt template for translation
    • translate_to_chinese: the reusable prompt template to translate arbitary language texts to Traditional Chinese.

Use with Claude Desktop

Step1: Install mcp servers

$ mcp install tools_server.py --name stock --with yfinance 
$ mcp install prompts_server.py --name translate_prompt

Step2: Check if servers are successful running in Claude Desktop

Check the tools server:
!mcp-server-stock

Check the prompt server:
!mcp-server-translate-prompt

Step3: Use in chat sessions

!Claude-mcp-demo

Quick Start

1

Clone the repository

git clone https://github.com/kaoyuching/mcp-demo
2

Install dependencies

cd mcp-demo
npm install
3

Follow the documentation

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

Repository Details

Ownerkaoyuching
Repomcp-demo
LanguagePython
License-
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