AuthSecAuthSec

MCP Auth

Secure auth for MCP servers

Give AI agents access to your app with OAuth 2.1 flows, tool permissions, PKCE, scopes, and more.

MCP Auth Architecture

MCP Client A

MCP Client B

AuthSec Auth

MCP Server

Add OAuth to your MCP server

Production-ready MCP auth in minutes

AuthSec AuthKit supports OAuth 2.1 as an MCP-compatible authorization server, enabling fine-grained authorization for agentic applications and workflows.

See an example MCP

Live demo: secure OAuth flow for MCP

Watch how auth and tool permissions work together.

Get started with MCP

Everything you need to learn quickly and ship confidently.

Read the MCP docs

We simplify an evolving protocol and make securing MCP as easy as pasting a URL.

Read the docs

Fork MCP examples

Ship quickly with open-source templates compatible with your language and framework.

View code on GitHub

Bring your own users

Already have login? Use AuthSec Connect as middleware without migrating your user stack.

Get started

Auth for MCP has never been easier

AuthSec handles OAuth Authorization Server complexity so your team can focus on MCP tools and resources.

OAuth 2.1 support

Built-in OAuth 2.1 flows with PKCE and secure defaults.

Tool permissions

Fine-grained authorization for agent tools and actions.

Scope management

Control exactly what agents can access across your app.

server.py
from fastmcp import FastMCP
from fastmcp.server.auth.providers.authsec import AuthKitProvider

auth_provider = AuthKitProvider(
    authkit_domain="https://your-project.authsec.ai",
    base_url="http://localhost:8000"
)

mcp = FastMCP(
    name="AuthKit Secured App",
    auth=auth_provider
)

Watch sessions from MCP Night by AuthSec

MCP Night Keynote

Enterprise-ready auth for MCP servers, powered by AuthSec.

Panel: OpenAI + Anthropic

How leading teams are approaching agent authentication.

Notion MCP: An inside look

Deep dive into real-world MCP security decisions.

MCP + AuthSec workshop

End-to-end implementation walkthrough and best practices.