About MCP Server Using Python SDK
This project demonstrates an MCP server and client using the Python SDK, with LangChain and LangGraph mentioned in its tagline. It gives basic instructions for configuring API keys and running the server and client.
Key features
- 01Python SDK server setup
- 02API key configuration with .env
- 03Server launch instructions
- 04Client launch instructions
- 05stdio or SSE connection choice
Use cases
- 01Trying a Python-based MCP server
- 02Configuring API keys for server and client
- 03Connecting a client using stdio
- 04Connecting a client using SSE
MCP support
Includes instructions to run an MCP server and a client, with stdio or SSE as connection options. The server exposes no specific tools in the provided description.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEMCP 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
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.