MCP Auth Python SDK

SSE

by mcp-auth

57 505 downloads Not rated yet MIT

About

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.

Details

Transport
SSE
License
MIT

Explore

- 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

pip install mcpauth

Or use your package manager of choice, such as poetry or uv.

See the documentation for the full guide.

GitHub branch check runs
codecov
[Stable Version][PyPI Releases]
[Required Python Version][PyPI]
PyPI - License

[Website]: https://mcp-auth.dev/
[PyPI]: https://pypi.org/project/mcpauth/
[PyPI Releases]: https://pypi.org/project/mcpauth/#history

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.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.

Videos about MCP Auth Python SDK

Relevant YouTube tutorials, setups, and demos