
mcp demo
演示基于模型上下文协议 (MCP) 的客户端-服务器架构实现。
Repository Info
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
- Tools for stock infomation
get_realtime_stock_priceenables client to get the current stock price.get_stock_previous_priceenables client to get the previous day's closing price.get_stock_symbolsearchs for stock symbol by company name.ask_realtime_stock_priceprovides a reusable prompt template to ask for realtime stock price.
- 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
Clone the repository
git clone https://github.com/kaoyuching/mcp-demoInstall dependencies
cd mcp-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.