MCP Server Using Python SDK
About
Sử dụng MCP Server & Agent LangChain/LangGraph
Details
- Author
- ThangQT2606
- Downloads
- 176
- Categories
- AI
Jump to
- Implements Model Context Protocol using the Python SDK
- Supports both stdio and SSE transport modes
- Simple file‑based configuration with .env
- Ready‑to‑run server and client scripts
Place required API keys in a .env file inside both server and client folders (see .env.example). Run the server with cd server && python your_file.py. Then run a client from cd client, choose the appropriate transport (stdio or sse), and execute python your_file.py.
MCP Server Using Python SDK

1. Thêm API key cần thiết cho chương trình
Tạo .env trong 2 folder client & server
Hãy xem .env.example
2. Để chạy MCP server
- cd server
- python your_file.py
3. Chạy máy khách kết nối với MCP Server
- cd client
- Hãy lựa chọn kiểu kết nối phù hợp với MCP server [stdio, sse]
- python your_file.py
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.
