Skip to main content

PassportMCP Python SDK

PassportMCP (ppmcp) lets you build MCP servers for any given website with automatic browser auth syncing. Every website is fair game. It wraps FastMCP and automatically adds necessary auth headers and cookies from the browser to outbound requests. As long as you log in through the browser, it's ready to be used. Often easier than paying for developer APIs (ex: twitter/X), avoiding rate limits, waiting for approval, or great for sites that don't have one.

Features

  • Automatic browser auth syncing (for any auth type)
  • Normal MCP tool creation
  • Works with any website
  • Always uses latest auth state
  • All credentials stay on your machine

Quick Start

  1. Install the Package
pip install ppmcp
  1. Set Up Native Messaging and Auth Syncing
ppmcp setup  # Sets up with Chrome Web Store extension
  1. Enable Request Monitoring

    • Click the PassportMCP extension icon in Chrome
    • Toggle "Monitor Requests" on
    • Visit and log into your target website
  2. Create Your First MCP Tool

from passportmcp import PassportMCP

# Create an MCP instance
mcp = PassportMCP("example", "example.com")

# Define a tool
@mcp.tool()
async def get_data():
    response = mcp.client.get("https://example.com/api/data")
    return response.json()

Installation Options

Option 1: Chrome Web Store Extension (Recommended)

pip install ppmcp
ppmcp setup

Option 2: Local Development

  1. Build the Extension
git clone https://github.com/joshmayerr/passport-mcp.git
cd extension
npm install
npm run build  # or npm run dev for watch mode
  1. Load in Chrome

    • Open Chrome and go to chrome://extensions
    • Enable "Developer mode" in the top right
    • Click "Load unpacked" and select the extension/dist directory
    • Note the extension ID from Chrome (shown under the extension name)
  2. Set Up Native Messaging

ppmcp setup --local --extension-id=your_extension_id
# OR
ppmcp setup --local  # You'll be prompted for the ID

CLI Commands

  • ppmcp setup - Set up native messaging
  • ppmcp doctor - Check installation status
  • ppmcp uninstall - Remove PassportMCP

How It Works

PassportMCP consists of three main components:

  1. Chrome Extension

    • Monitors web requests
    • Captures authentication state
    • Sends to native host
  2. Native Host

    • Receives data from extension
    • Stores authentication state
    • Provides data to SDK
  3. SDK

    • PassportMCP: High-level MCP tool creation
    • BrowserPassport: Low-level auth handling

Advanced Example: LinkedIn API

from passportmcp import PassportMCP

mcp = PassportMCP("linkedin", "linkedin.com")

@mcp.tool()
async def search_linkedin(query: str):
    response = mcp.client.get(
        "https://www.linkedin.com/voyager/api/graphql",
        params={
            "includeWebMetadata": "true",
            "variables": "()",
            "queryId": "voyagerDashMySettings.7ea6de345b41dfb57b660a9a4bebe1b8"
        }
    )
    return response.json()

Security

  • ✅ Credentials never leave your machine
  • ✅ No cloud storage or transmission
  • ✅ Limited to authorized domains
  • ✅ LLMs never see your credentials

Unlike services like Anon and Rabbit that automate accounts in the cloud, PassportMCP keeps everything local.

Development

For SDK development:

cd sdks/python
pip install -e .

Roadmap

  • TypeScript SDK
  • Firefox extension
  • Safari extension
  • Auth state sharing
  • Enterprise features
  • More language SDKs

License

MIT License - see LICENSE for details

Metadata

Release files for ppmcp 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ppmcp 0.1.5
File Size Uploaded Provenance
ppmcp-0.1.5.tar.gz 9.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ppmcp 0.1.5
File Interpreter ABI Platform
ppmcp-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 22.1 kB

Release files / ppmcp-0.1.5.tar.gz

Download URL ppmcp-0.1.5.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e68f837cddec56f90050b489e2bd55b03b57f36de5782e33207e01bfbbe466f8
BLAKE2b-256 checksum
How to use checksums
2f28e30cbc7b6e1abdb493e09ca1b41b8d3e4a0d9a723d9099a01fc2f82fb0e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.0

Release files / ppmcp-0.1.5-py3-none-any.whl

Download URL ppmcp-0.1.5-py3-none-any.whl
Size 12.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60be35f1e663cb7f0c1844d26f1751886e7b511b407b5fba02c2fe65e728ef17
BLAKE2b-256 checksum
How to use checksums
cc9e680238d6d45bb73ac1a7688671669e84770d980f39f21e5d78df7aeaa846
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.0

Security for ppmcp 0.1.5

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page