MCP Auth Python SDK

by mcp-auth

57 stars
505 downloads
Not rated
GitHub Website

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

Author
mcp-auth
GitHub stars
57
Downloads
505
Categories
Developer Tools

- 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

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.

MCP Auth Python SDK

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.