Laravel for Rust Alpha
laravel-rust-mcp-oauth
Let people connect your Laravel for Rust MCP server to their AI assistant with a sign-in and one click, not an API key.
OAuth 2.1 sign-in for MCP servers in Laravel for Rust, so people can connect your app to Claude, ChatGPT, Cursor, VS Code and other AI assistants.
Read the docs Source on GitHub
cargo add laravel-rust-mcp-oauth- Latest release
- 0.1.0, 2026-12-05
- Maintenance
- Active
- Framework
- laravel-rust 0.2.x
- MSRV
- Rust 1.99 or later
- Licence
- MIT
Built on
- Laravel MCP: The public flow of Mcp::oauthRoutes(): discovery, client registration, an approval screen in your app and bearer tokens for the MCP server.
- Laravel Passport: The authorization server Laravel MCP builds on. This crate needs no Passport, supports Client ID Metadata Documents and uses opaque, hashed tokens instead of JWTs.
- MCP authorization specification: The sign-in flow MCP clients expect, with Client ID Metadata Documents preferred over dynamic registration.
Crates: laravel-rust-mcp-oauth
Documentation
- OverviewOAuth 2.1 sign-in for MCP servers in Laravel for Rust, so people can connect your app to Claude, ChatGPT, Cursor, VS Code and other AI assistants.
- Getting startedThis page adds the crate to a Laravel for Rust application and connects an AI assistant to its MCP route.
- Protecting routesMcpAuthenticate checks the bearer token on your MCP route and gives your tools the grant and the user who approved it.
- The approval pageThe approval page is where a person decides whether an assistant may use your app with their account; it uses your sign-in and you can restyle it.
- ClientsAssistants identify themselves to your server in one of two ways, and the crate supports both, so the assistants people use today can connect.
- Tokens and connectionsEach approval grants an exact set of scopes, and the grant's tokens rotate on every refresh until the person or your app revokes it.
- ConfigurationEvery setting has a default, so a new application needs none of them; this page lists each one with its environment variable.
- Existing tablesIf another implementation of the same MCP resource already issues tokens, share its tables to keep assistants connected while you move over.
- TestingMcpOAuth::testing() creates real clients, grants and tokens in your test database, so your tests go through the same checks as a real assistant.
- SecurityThis page lists what the crate does against each attack on an MCP sign-in, and how to report a vulnerability.
- ChangelogWhat changed in each release of laravel-rust-mcp-oauth: additions, changes and fixes.