About MCP Auth Python SDK
MCP Auth Python SDK is an authentication library for Python MCP servers that connects them to a trusted identity provider with a few lines of code. It targets developers who need to meet the OAuth 2.1 and related requirements in the MCP specification, and includes a tool to check provider compatibility.
Key features
- 01OAuth 2.1 authentication for MCP servers
- 02Provider integration with minimal code
- 03Real-time provider compatibility checking tool
- 04Installable with pip, poetry or uv
Use cases
- 01Adding OAuth 2.1 authentication to a Python MCP server
- 02Connecting an existing identity provider to an MCP server
- 03Checking whether a provider is compatible with MCP auth requirements
MCP support
The SDK adds authentication to MCP servers so they can meet the authorization requirements defined in the MCP specification.
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 Auth Python SDK
The MCP spec requires OAuth 2.1 and other RFCs for auth. Instead of spending weeks on them, use MCP Auth to connect to an trusted provider with a few lines of code.
Get started
Is my provider supported?
Check out the MCP-compatible providers to see which providers are supported. It also includes a tool for real-time checking of provider compatibility.
Installation
pip install mcpauth
Or use your package manager of choice, such as poetry or uv.
See the documentation for the full guide.
Join the discussion
Join the MCP Auth org discussion to ask questions or share your feedback.
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.