MCP Client
by spirita1204
This is an MCP Python application designed to interact with external resources. It utilizes a custom library for handling MCP communication.
View on GitHub
Last updated: N/A
MCP Python Application
This is a MCP application designed to interact with external resources.
Requirements
- Python 3.7 or higher
asyncio
library (included with Python)mcp
(custom library for handling MCP communication)
Setup
-
Clone the repository (or download the script files) to your local machine.
-
Run the client :
uv run client.py
The server script can be a Python
.py
or JavaScript.js
file.
Example Workflow
- The user enters a query like:
http://127.0.0.1:8000/process_message { // 哈囉 // 我想知道我有哪些collections // 幫我輸出隨便五個資料 "message": "幫我輸出隨便五個資料", "session_id": "1" } Question1: How is the weather in California today? Question2: What collections are available in the database?