Build MCP servers for any website with automatic browser auth syncing
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.
Not building an MCP server? You can use the ultra-lightweight BrowserPassport http client instead! Scroll down
pip install ppmcp
ppmcp setup # Sets up with Chrome Web Store extension
Enable Request Monitoring
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()
pip install ppmcp
ppmcp setup
git clone https://github.com/joshmayerr/passport-mcp.git
cd extension
npm install
npm run build # or npm run dev for watch mode
Load in Chrome
chrome://extensionsextension/dist directorySet Up Native Messaging
ppmcp setup --local --extension-id=your_extension_id
# OR
ppmcp setup --local # You'll be prompted for the ID
ppmcp setup - Set up native messagingppmcp doctor - Check installation statusppmcp uninstall - Remove PassportMCPPassportMCP consists of three main components:
Chrome Extension
Native Host
SDK
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()
For simpler use cases where you don't need MCP tools, use the lightweight BrowserPassport HTTP client directly:
from passportmcp import BrowserPassport
# Initialize the client
client = BrowserPassport()
# Make authenticated requests
response = client.get("https://api.example.com/data")
data = response.json()
httpx for modern HTTP features# Custom configuration
client = BrowserPassport(
storage_path="~/custom/path/creds.json",
timeout=60.0,
verify=True # SSL verification
)
# Custom headers/cookies (override stored ones)
response = client.post(
"https://api.example.com/data",
headers={"Custom-Header": "value"},
cookies={"custom_cookie": "value"},
json={"key": "value"}
)
Unlike services like Anon and Rabbit that automate accounts in the cloud, PassportMCP keeps everything local and secure.
For SDK development:
cd sdks/python
pip install -e .
passport-mcp/
โโโ extension/ # Chrome extension
โโโ sdks/
โ โโโ python/ # Python SDK
โ โโโ typescript/ # TypeScript SDK (coming soon)
โโโ shared/
โโโ native-host/ # Native messaging host
MIT License - see LICENSE for details
No configuration available
Related projects feature coming soon
Will recommend related projects based on sub-categories