obscura-mcp
Officialobscura-mcp
An MCP server adapter for Obscura, a lightweight Rust headless browser for scraping and AI agent automation.
Exposes Obscura's native CDP capabilities through a clean MCP interface — no Chrome dependency, no heavyweight browser automation.
Installation
npm install -g obscura-mcpThe install is instant — the browser binary (~80 MB) is downloaded lazily on first use.
After install, either:
Run
obscura-mcp installto download the binary with visible progress, orJust run
obscura-mcp— it downloads the binary automatically and starts the server
The binary is cached at ~/.obscura/bin/ and survives npm upgrades.
To use a custom binary path:
export OBSCURA_PATH=/path/to/obscuraQuick Start
# Install
npm install -g obscura-mcp
# Verify
obscura-mcp --version
# Download browser binary
obscura-mcp install
# Start MCP server
obscura-mcp --transport stdioTools
browse_url
Fetch a URL using Obscura's CDP engine. Returns the page content.
Parameters:
url(string, required): HTTP or HTTPS URL to visit.dump(string, optional):html,text, orlinks. Defaults tohtml.cookies(array, optional): Cookies to inject before navigation. Accepts the same format as returned bybrowse_cookies— pass cookies exported from a real browser to access authenticated pages.stealth(boolean, optional): Accepted for compatibility. Stealth behavior is controlled by the Obscura server.
browse_evaluate
Navigate to a URL and execute JavaScript in the page context. Returns the evaluated result.
Parameters:
url(string, required): The URL to visit.expression(string, required): JavaScript expression to evaluate. Examples:document.title,navigator.userAgent,document.querySelector('h1').textContent.stealth(boolean, optional): Accepted for compatibility.
browse_cookies
Navigate to a URL and retrieve all cookies set by the page. Returns name, value, domain, path, and expiry for each cookie.
Parameters:
url(string, required): The URL to visit.stealth(boolean, optional): Accepted for compatibility.
Configuration
Claude Desktop / Cline / Continue / Any MCP client
{
"mcpServers": {
"obscura-mcp": {
"command": "obscura-mcp",
"args": ["--transport", "stdio"]
}
}
}VS Code (Cline extension)
{
"servers": {
"obscura-mcp": {
"command": "obscura-mcp",
"args": ["--transport", "stdio"]
}
}
}After global npm install, obscura-mcp is on your PATH — no absolute paths needed.
Environment Variables
Variable | Default | Description |
| — | Path to custom Obscura binary |
|
| HTTP transport host |
|
| HTTP transport port |
|
| Transport mode: |
|
| Milliseconds to wait for Obscura CDP to start |
|
| Milliseconds to wait after page navigation |
|
| Milliseconds to wait for CDP response |
Why Obscura?
No Chrome — pure Rust, no 200 MB browser bundle
CDP-native — exposes Chrome DevTools Protocol directly
Anti-detection — built-in stealth for scraping-resistant sites
Tiny footprint — ~15 MB binary, starts in milliseconds
License
MIT
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Metadrama/obscura-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server