lane-mcp-auth
Add Lane sign-in, tool permissions, and user-approved purchases to an MCP server.
Install and register
pip install "lane-mcp-auth[fastmcp]"
python -m lane_mcp_auth setup https://acme.com/mcp --name="Acme shop"
Replace the URL with your public MCP endpoint. Setup writes .env with the server credentials. The library also needs LANE_ORG_KEY, even for free tools. Keep that file out of version control.
Use Python 3.10 or later. The adapter supports FastMCP >=4.0,<5, which the [fastmcp] extra installs.
Run a server
On FastMCP, enable_lane_auth(mcp, auth) gates your tools, and installs the HTTP gate on mcp.http_app() and mcp.run(transport="http"). The gate serves discovery and verifies the bearer. On another ASGI framework, put LaneAuthMiddleware from lane_mcp_auth.asgi in front of your MCP app.
Existing servers has the complete code: the connection store, test auth, the server and a local test. Follow the FastMCP guide for the deployed configuration.
Use an in-memory connection store for one process. Use PostgreSQL for multiple processes or registrations that must survive a restart.
Add capabilities
- Scopes: require permission before a tool runs.
- Guest access: open selected read tools without sign-in.
- Claims: read the buyer's shared details.
- Payments: propose a purchase for the user to approve.
- Plan events: handle results and release reservations.
- API reference: options, methods, types, and errors.
Metadata
Release files for lane-mcp-auth 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lane_mcp_auth-1.4.0.tar.gz | 247.9 kB | With provenance | Details for lane_mcp_auth-1.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lane_mcp_auth-1.4.0-py3-none-any.whl | Python 3 | none | any | Details for lane_mcp_auth-1.4.0-py3-none-any.whl |
Total release size: 319.2 kB
Release files / lane_mcp_auth-1.4.0.tar.gz
| Download URL | lane_mcp_auth-1.4.0.tar.gz |
|---|---|
| Size | 247.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
00fa5418b602132a491d9bb9a4c5feae1823a33fda41db8c6b9f5e63b27f7c8c
|
|
BLAKE2b-256 checksum How to use checksums |
585885ec771e7d5e541d057cfd67cd899a676fe8c3f7913deb83c9c5041895c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.
Transparency logRelease files / lane_mcp_auth-1.4.0-py3-none-any.whl
| Download URL | lane_mcp_auth-1.4.0-py3-none-any.whl |
|---|---|
| Size | 71.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bad9537e2c9b4325afd812d9ce58073705e46cff0cc4f596097b2437daefebeb
|
|
BLAKE2b-256 checksum How to use checksums |
c4bd5306f30525175d464e9c41790d70a6781143d0f99c32a2f736efbb823c44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.
Transparency logSecurity for lane-mcp-auth 1.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for lane_mcp_auth-1.4.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.