Metadata-Version: 2.5
Name: nodemaven-mcp
Version: 0.2.4
Summary: MCP server for NodeMaven residential proxies: proxy strings with geo-targeting and sticky sessions, connection and site checks, locations, usage, sub-users and whitelisted IPs.
Project-URL: Source, https://github.com/nodemaven/nodemaven-mcp
License-Expression: MIT
License-File: LICENSE
Keywords: mcp,nodemaven,proxy,residential-proxy,web-scraping
Requires-Python: >=3.10
Requires-Dist: mcp<3,>=2.3
Requires-Dist: nodemaven>=0.1.7
Description-Content-Type: text/markdown

# nodemaven-mcp

[![2 GB free with code GITHUB](https://img.shields.io/badge/%F0%9F%8E%81%202%20GB%20free-code%20GITHUB-1153FC)](https://dashboard.nodemaven.com/accounts/signup/?utm_source=github&utm_medium=readme&utm_campaign=nodemaven_mcp&utm_content=promo_badge)
[![nodemaven/nodemaven-mcp MCP server](https://glama.ai/mcp/servers/nodemaven/nodemaven-mcp/badges/score.svg)](https://glama.ai/mcp/servers/nodemaven/nodemaven-mcp)

An [MCP](https://modelcontextprotocol.io) server for [NodeMaven](https://nodemaven.com)
residential proxies. It lets an AI assistant build proxy strings with geo-targeting
and sticky sessions, check that a proxy connects and where it exits, test it against
a site, look up locations, read traffic usage, manage sub-users and whitelisted
IPs, ask ChatGPT and Gemini as a user in a given country sees them, and drive a remote
Chrome on NodeMaven's Scraping Browser.

The tools that change the account (sub-users, whitelisted IPs) refuse to run until you
allow writes. The LLM API and Scraping Browser tools work without that: they change
nothing on the account, but `ask_llm` spends LLM credits and browser sessions use proxy
traffic.

<!-- mcp-name: io.github.nodemaven/nodemaven-mcp -->

## Tools

| Tool | What it does |
|---|---|
| `proxy_url` | Proxy string for a country, region, city or ISP, with an optional sticky session and its lifetime. Residential or mobile IPs, HTTP or SOCKS5. |
| `check_proxy` | Opens one connection through the proxy and returns the status, the exit IP and the time it took. Residential or mobile. |
| `test_proxy_on_site` | Requests one page of a site through the proxy and reports the status, size, time, and whether it looks blocked (403, 429, captcha or challenge page). Residential or mobile. The page is not returned. |
| `list_locations` | Countries, regions, cities and ISPs available for targeting, with the codes `proxy_url` takes. |
| `account_status` | Remaining traffic, subscription status, whether traffic is frozen. |
| `traffic_stats` | Traffic used over time. |
| `top_domains` | Domains reached through the proxy, with traffic per domain. |
| `list_sub_users` | Sub-users with their usage and limits. |
| `list_whitelist_ips` | IP addresses allowed to use the proxy without a password. |

These change the account and work only with `NODEMAVEN_MCP_ALLOW_WRITE=1`:

| Tool | What it does |
|---|---|
| `create_sub_user` | New sub-user with its own proxy login and an optional traffic limit. The password is generated by the server. |
| `update_sub_user` | Change a sub-user's traffic limit, or turn the limit on or off. |
| `reset_sub_user_usage` | Set the recorded traffic of sub-users back to zero. |
| `delete_sub_user` | Delete a sub-user. |
| `add_whitelist_ip` | Allow an IP address to use the proxy without a password, with its number of ports and optional targeting. |
| `remove_whitelist_ip` | Remove an address from the whitelist. |

### LLM API

Asks ChatGPT and Gemini through the NodeMaven LLM API. Each question to each platform
spends one credit, refunded if that answer fails. The API works once the account has
bought a credit pack; it then also gets 2 free credits a month.

| Tool | What it does |
|---|---|
| `ask_llm` | Asks ChatGPT and/or Gemini a question from a chosen country (optionally region and city) and returns the answers with their cited sources. Waits up to 90 seconds by default, then returns a `request_id` for what is not ready yet. |
| `llm_results` | The answers for an earlier `ask_llm` by its `request_id`. |
| `llm_balance` | Credits left. |

### Scraping Browser

A remote Chrome on NodeMaven's side, routed through your proxy. The pages it loads
use proxy traffic; a session waiting idle uses none. These tools need a `NODEMAVEN_BROWSER_TOKEN` from the dashboard's Scraping
Browser page.

| Tool | What it does |
|---|---|
| `browser_open` | Starts a session, optionally from a country, region or city. Returns its id, and a live view link to watch it when the API gives one. |
| `browser_goto` | Sends the browser to a URL. It does not confirm the page loaded: check with `browser_read`. |
| `browser_read` | The page's visible text, or its full HTML. |
| `browser_screenshot` | A screenshot of the page. |
| `browser_task` | A task in plain English ("find the price of the first product"), done by NodeMaven's browser agent; with a JSON schema the result comes back in that shape. |
| `browser_task_result` | The result of a task that took longer than the wait. |
| `browser_close` | Ends the session. |

The server has no tools for payments, plans or API keys.

## Setup

You need an API key from the NodeMaven dashboard. The proxy username and password are
read from the account through that key, so nothing else is required.

> [!TIP]
> 🎁 **2 GB of free traffic.** No account yet? [Sign up](https://dashboard.nodemaven.com/accounts/signup/?utm_source=github&utm_medium=readme&utm_campaign=nodemaven_mcp&utm_content=signup_promo) and enter the code **GITHUB**. Once per account.

Claude Desktop (`claude_desktop_config.json`), Cursor and other MCP clients:

```json
{
  "mcpServers": {
    "nodemaven": {
      "command": "uvx",
      "args": ["nodemaven-mcp"],
      "env": { "NODEMAVEN_APIKEY": "your-api-key" }
    }
  }
}
```

Without `uv`: `pip install nodemaven-mcp` and use `"command": "nodemaven-mcp"`.

| Variable | |
|---|---|
| `NODEMAVEN_APIKEY` | Required. |
| `NODEMAVEN_LOGIN`, `NODEMAVEN_PASSWORD` | Optional. Proxy credentials to use instead of the account's own, e.g. a sub-user. |
| `NODEMAVEN_MCP_ALLOW_WRITE` | `1` allows the tools that change the account. Off by default. |
| `NODEMAVEN_MCP_REVEAL_PASSWORD` | `1` puts real passwords into `proxy_url` and `create_sub_user` output. Off by default. |
| `NODEMAVEN_BROWSER_TOKEN` | The token from the dashboard's Scraping Browser page. Needed for the browser tools. It is valid for 30 days; copy the current one when the tools say so. |

## Credentials

Tool results go into the model's context and usually into the chat history, so the
server keeps secrets out of them:

- `proxy_url` and `create_sub_user` return the password as `<PROXY_PASSWORD>`
  unless `NODEMAVEN_MCP_REVEAL_PASSWORD=1` is set.
- API responses are reduced to a fixed list of fields; proxy passwords and the
  account email are never returned.
- `test_proxy_on_site` returns no page content, and removes the proxy password
  from connection errors.
- `browser_open` returns the session id and live view link, not the session's
  connection URL, which carries a token.

Requests to the NodeMaven API name this server and its version in `User-Agent`,
and the name the MCP client gives itself (for example `claude-code`) once it has
given one. Where the SDK's transport cannot be wrapped, the SDK's own
`User-Agent` is sent unchanged. Nothing else about the client or the
conversation is sent.

## Development

```bash
uv sync
uv run pytest
```

Built on the [`nodemaven`](https://pypi.org/project/nodemaven/) Python SDK.

## License

MIT
