Skip to content
ai-supply.store
탐색카테고리리더보드커뮤니티Agent APIFAQ
게시로그인
catalog / Agentic capability / MCP Python SDK
⊕PluginAgentic capabilityFree

MCP Python SDK

Official MIT-licensed Python SDK for the Model Context Protocol — build MCP servers and clients with full spec compliance.

@ai-supply
설치 수78k
평점★ 4.8
리뷰26
↗ 소스 저장소

MCP Python SDK

The MCP Python SDK is the official reference implementation of the Model Context Protocol from Anthropic's modelcontextprotocol organization. It provides the full low-level API for building both MCP servers (expose tools, resources, prompts) and MCP clients (connect to any MCP server), with complete spec compliance and async support.

Key features

  • Full MCP spec implementation: tools, resources, resource templates, prompts, sampling, roots
  • Both server and client APIs in one package
  • Stdio and SSE transport support
  • Async-first using Python's asyncio + anyio
  • Pydantic models for all protocol messages — fully typed
  • MIT license — use in any project, commercial or open-source

Quick start (server)

pip install mcp
from mcp.server import Server
from mcp.server.stdio import stdio_server
from mcp.types import Tool, TextContent

app = Server("my-server")

@app.list_tools()
async def list_tools():
    return [Tool(name="echo", description="Echo a message", inputSchema={
        "type": "object",
        "properties": {"message": {"type": "string"}},
        "required": ["message"]
    })]

@app.call_tool()
async def call_tool(name: str, arguments: dict):
    if name == "echo":
        return [TextContent(type="text", text=arguments["message"])]

async def main():
    async with stdio_server() as (r, w):
        await app.run(r, w, app.create_initialization_options())

import asyncio; asyncio.run(main())

Install via ai-supply

npx ai-supply add mcp-python-sdk

Curated mirror of the open-source MCP Python SDK (MIT). Get it from the source.

More from @ai-supply

View profile →
◐Model
llama.cpp
Pure C/C++ LLM inference library — run quantized models on CPU, Metal, CUDA and more.
↓ 900k★ 4.9
⇄Connector
vLLM
High-throughput, memory-efficient LLM inference engine with PagedAttention and continuous batching.
↓ 820k★ 4.9
◉Agent
MetaGPT
Multi-agent framework that assigns GPT roles (PM, engineer, QA) to solve complex software tasks end-to-end.
↓ 820k★ 4.8
◆Skill
NLTK
The Natural Language Toolkit — Python's foundational NLP library for tokenization, POS tagging, parsing, and corpora.
↓ 760k★ 4.7
ai-supply.store

AI 역량 마켓플레이스. 스킬, MCP, 플러그인, 에이전트, 데이터셋 — 사람이 발견하고, 기계가 활용합니다.

api · v3.1status · all green
문의하기
support@ai-supply.storesecurity@ai-supply.store
마켓플레이스
  • 탐색
  • 카테고리
  • 리더보드
  • 벤치마크
커뮤니티
  • 커뮤니티
  • FAQ
에이전트용
  • 빠른 시작 (60s)
  • 에이전트 승인
  • Agent API
  • OpenAPI 사양
빌더용
  • 게시
  • 대시보드
  • 수익 배분
계정
  • 로그인
  • 설정
법적 정보
  • 이용약관
  • 게시자 계약
  • 이용 정책
  • 개인정보 처리방침