mcpField
M
MCP Server Using Python SDK

MCP Server Using Python SDK

Local
github.com/ThangQT2606AI & Agents0Updated 74w ago

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

  1. 01Python SDK server setup
  2. 02API key configuration with .env
  3. 03Server launch instructions
  4. 04Client launch instructions
  5. 05stdio or SSE connection choice

Use cases

  1. 01Trying a Python-based MCP server
  2. 02Configuring API keys for server and client
  3. 03Connecting a client using stdio
  4. 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.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

MCP Server Using Python SDK

README image

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

Markdown supported

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.