pymcp-sse

pymcp-sse is an asynchronous Python library to build Model Context Protocol (MCP) servers and clients that communicate over HTTP/SSE. It provides base classes for server/client, tool registration and discovery, server push/notification support with keep-alives, and a multi-server client abstraction. It also includes an LLM client abstraction for integration with LLM providers (e.g., an Anthropic Claude example).

Evaluated Apr 04, 2026 (27d ago)
Homepage ↗ Repo ↗ API Gateway mcp model-context-protocol sse server-sent-events fastapi uvicorn httpx async-python tools agents
⚙ Agent Friendliness
56
/ 100
Can an agent use this?
🔒 Security
46
/ 100
Is it safe for agents?
⚡ Reliability
30
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

MCP Quality
72
Documentation
60
Error Messages
0
Auth Simplicity
90
Rate Limits
20

🔒 Security

TLS Enforcement
80
Auth Strength
30
Scope Granularity
10
Dep. Hygiene
55
Secret Handling
60

Security controls for the MCP transport (authz/authn, TLS requirements, rate limiting, etc.) are not explicitly documented in the provided README content. SSE over HTTP typically relies on HTTPS/TLS in deployment, but this is not stated as a requirement. The library uses common web/async dependencies (FastAPI/Uvicorn/httpx/SSE helpers); no dependency vulnerability status is provided here. LLM provider secrets are suggested via environment variables (ANTHROPIC_API_KEY), which is a positive signal, but comprehensive secret-handling/logging guarantees are not documented in the provided content.

⚡ Reliability

Uptime/SLA
0
Version Stability
55
Breaking Changes
20
Error Recovery
45
AF Security Reliability

Best When

You want a lightweight Python MCP server/client implementation where SSE transport and async concurrency are convenient, and you can rely on your surrounding infrastructure for security controls.

Avoid When

You need comprehensive, explicitly documented auth, rate limiting semantics, retry/idempotency guidance, or production-grade operational guarantees that are clearly documented in the repository/docs.

Use Cases

  • Building MCP tool servers backed by FastAPI/Uvicorn that use Server-Sent Events for streaming/notifications
  • Creating MCP clients that discover tools and invoke registered MCP tools over SSE
  • Orchestrating connections to multiple MCP servers from a single client process
  • Implementing server-initiated notifications and keep-alive mechanisms in agent/chatbot ecosystems
  • Integrating MCP tool calling with an LLM provider via a provided LLM client abstraction

Not For

  • High-assurance/regulated deployments that require documented security controls like auth, audit logging, and formal threat modeling (not evidenced here)
  • Environments that require GraphQL/gRPC interfaces or standard OpenAPI contracts for the API surface (not evidenced here)
  • Use cases needing strict idempotency guarantees or transactional semantics for tool calls (not evidenced here)

Interface

REST API
Yes
GraphQL
No
gRPC
No
MCP Server
Yes
SDK
Yes
Webhooks
No

Authentication

Methods: None explicitly documented for MCP server/client in provided README Anthropic API key (example for LLM integration via ANTHROPIC_API_KEY)
OAuth: No Scopes: No

No explicit authentication mechanism for the MCP HTTP/SSE transport is described in the README content provided. LLM provider authentication is mentioned only for an example client (ANTHROPIC_API_KEY).

Pricing

Free tier: No
Requires CC: No

Pricing for the library itself is not described; it is MIT licensed. Runtime costs depend on your hosted server and any LLM provider used.

Agent Metadata

Pagination
none
Idempotent
False
Retry Guidance
Not documented

Known Gotchas

  • Tool registration relies on type hints for describe_tools; missing/incorrect type hints may reduce tool schema quality.
  • SSE timeouts require alignment with keep-alive/ping intervals (README suggests read timeout > ping interval); misconfiguration can cause disconnects.
  • No explicit auth/rate-limit/idempotency/retry semantics were documented in the provided content, so agents may need to implement conservative retry/backoff and safety checks at the application layer.

Alternatives

Full Evaluation Report

Comprehensive deep-dive: security analysis, reliability audit, agent experience review, cost modeling, competitive positioning, and improvement roadmap for pymcp-sse.

AI-powered analysis · PDF + markdown · Delivered within 30 minutes

$99

Package Brief

Quick verdict, integration guide, cost projections, gotchas with workarounds, and alternatives comparison.

Delivered within 10 minutes

$3

Score Monitoring

Get alerted when this package's AF, security, or reliability scores change significantly. Stay ahead of regressions.

Continuous monitoring

$3/mo

Scores are editorial opinions as of 2026-04-04.

8642
Packages Evaluated
17761
Need Evaluation
586
Need Re-evaluation
Community Powered