MCP Auth Python SDK
@mcp-auth
π Plug-and-play auth for Python MCP servers.
Overview
What is MCP Auth Python SDK?
MCP Auth Python SDK is a Python library that implements OAuth 2.1 and related RFCs for MCP (Model Context Protocol) servers, allowing developers to connect to a trusted provider with minimal code. It is intended for developers building MCP servers that require authentication.
How to use MCP Auth Python SDK?
Install the package with pip install mcpauth or your preferred package manager. Then follow the full guide in the documentation to integrate with your MCP server.
Key features of MCP Auth Python SDK
- Implements OAuth 2.1 for MCP specification compliance
- Supports a growing list of MCP-compatible providers
- Enables authentication with a few lines of Python code
- Includes a real-time provider compatibility checker
- Available via pip and standard Python package managers
Use cases of MCP Auth Python SDK
- Adding OAuth-based authentication to an MCP server
- Quickly integrating with a supported identity provider
- Replacing manual OAuth implementation with a maintained library
FAQ from MCP Auth Python SDK
What is MCP Auth Python SDK?
It is a Python SDK that handles OAuth 2.1 flows required by the MCP specification, letting you authenticate users against a trusted provider without building the protocol yourself.
How do I install MCP Auth Python SDK?
Run pip install mcpauth in your Python environment, or use an alternative like Poetry or uv.
Is my provider supported?
Check the MCP-compatible providers list at mcp-auth.dev to see if your provider is already supported; the site also includes a tool for real-time verification.
What are the runtime requirements?
Python is required; the exact version is shown on the package's PyPI page. No additional dependencies beyond the library itself are mentioned in the README.