NexaLayer Agent
OfficialThis MCP server lets an AI agent manage NexaLayer proxy sessions, budgets, billing, and support with safety guardrails.
List available proxy products and current prices by type, country, stock, and pagination.
Create paid dynamic or static proxy sessions with idempotency keys and budget/spend warnings.
Read session status and optionally request proxy credentials when needed.
Rotate dynamic sessions when health or telemetry recommends it.
Terminate sessions and release network resources; early termination does not imply refunds.
Read session health scores, rotation recommendations, and traffic/request usage.
Read and set budgets, spend limits, pause behavior, and alert thresholds.
Read budget alerts, account balance, trial-credit state, and billing transactions.
Check service status and known issues before retrying or filing support tickets.
File and read support tickets with automatic request/error context and workaround guidance.
Provides proxy network sessions for Puppeteer automation workflows. AI agents can create, monitor, rotate, and terminate dynamic or static proxy sessions (with budget guardrails and usage telemetry) that Puppeteer-based browser automation can route traffic through.
NexaLayer Agent
NexaLayer MCP Server — a Model Context Protocol (MCP) server that lets AI agents create and manage proxy sessions with budget guardrails.
The MCP implementation is in mcp/, with its source entry point at mcp/src/index.ts. The published package builds that file to the runtime entry path mcp/dist/index.js.
Current public starting prices are $0.23/GB for dynamic proxy sessions and
$1.05/month for shared static proxy sessions. Exclusive static proxy sessions
are $1.43–$5.86/month (launch pricing, live API authoritative). Query
GET /v1/public/products or the authenticated product catalog for the current,
authoritative quote and availability before creating a paid session.
MCP Server
Install
Run the published stdio server with npm:
npx -y @nexalayer/mcpOr build and run the existing Docker image from the repository root:
docker build -t nexalayer-mcp ./mcp
docker run -i --rm \
-e NEXALAYER_API_KEY="$NEXALAYER_API_KEY" \
nexalayer-mcpThe Docker image uses stdio and does not expose a port.
Configure
Set NEXALAYER_API_KEY for API-backed tool calls. The server can start and expose initialize and tools/list without a key so MCP clients and directories can discover its capabilities. NEXALAYER_BASE_URL is an optional override.
Claude Desktop and Cursor both accept an mcpServers configuration like this:
{
"mcpServers": {
"nexalayer": {
"command": "npx",
"args": ["-y", "@nexalayer/mcp"],
"env": {
"NEXALAYER_API_KEY": "agk_your_key"
}
}
}
}Tools
Tool | Description | Charges |
| List the compact, paginated catalog of available proxy products and current prices. | No |
| Create a dynamic or static proxy session with an idempotency key. The create API does not honor | Yes — deducts from the account balance |
| Read one session. Credentials are omitted unless | No |
| Rotate a dynamic session when health or telemetry recommends it. Credentials are omitted unless | May affect paid usage |
| Terminate a session and release its network resource; early termination does not imply a refund. | No new charge |
| Read a session health score and rotation recommendation. | No |
| Read traffic and request usage for a session. | No |
| Read spend limits, current spend, pause state, and daily reset. | No |
| Set API-key and daily spend limits, alerts, and pause behavior. | No direct charge |
| Read actionable budget-threshold alerts. | No |
| Read the account balance and trial-credit state. | No |
| List billing transactions for audit and reconciliation. | No |
| Check component status and incidents before retrying or filing a ticket. | No |
| List known issues with runnable workaround steps, filtered by error code. | No |
| File a support ticket; recent request ids and error codes are attached automatically. | No |
| Read a ticket's status, severity, events, and workaround. | No |
Transport: stdio.
See the mcp/ package README for packaging, Docker, pricing, and approval-policy details.
Related MCP server: Agentic Vault
Backend API
The repository also contains the Agent Layer backend for NexaLayer, the Network Execution Layer for AI Agents.
This service exposes API-first capabilities for AI Agent, Playwright, Puppeteer, Browser-use, crawler, and automation workflows:
Agent account registration and API key authentication
Dynamic and static proxy session lifecycle management
Session telemetry, health scoring, and rotation recommendations
Billing, balance, recharge, transaction, and usage-facing endpoints
Natural-language agent routes for controlled proxy network operations
Local Development
npm install
cp .env.example .env
npm run db:generate
npm run devUseful Commands
npm run build
npm run lint
npm run test:unit
npm test
npm run test:phase0
npm run test:phase0:real
npm run test:phase0:static
npm run test:smokenpm run test:phase0 is the safe profile. It validates registration,
API key auth, product listing, balance, and transactions without creating a
paid proxy session.
npm run test:phase0:real sets PHASE0_ALLOW_PAID=1 and creates one low-volume
dynamic session, polls until active, explicitly requests credentials with
include_credentials=true, checks proxy.full_url, reports telemetry,
reads health and billing, then terminates the session in a cleanup step. Use
NEXALAYER_PRODUCT_NO, PHASE0_QUANTITY, and PHASE0_PRINT_PROXY_URL=1 when
you need a specific product or need to inspect the returned proxy URL.
npm run test:phase0:static creates one minimal static session, polls for
proxy info, reports telemetry, reads health and billing, then terminates the
session and releases the static resource. It is a paid smoke profile and should
only be used in controlled environments.
The broader npm run test:smoke suite may create real Agent accounts, proxy
sessions, orders, or billing records depending on environment configuration.
Review docs/agentTest.md and the target environment before running it.
Session detail and rotation responses hide proxy.full_url by default. Send
include_credentials=true only when the caller needs to connect, and never log
the returned credentials. nexalayer_get_session and nexalayer_rotate_session
pass that flag through. POST /sessions does not honor it, so
nexalayer_create_session omits proxy credentials; read the session after it
is active. Read measured traffic from
GET /v1/sessions/{session_id}/usage. Unknown product numbers return HTTP 404
with PRODUCT_NOT_FOUND. PRICE_MISMATCH is HTTP 409: re-read prices, retry
once. BUDGET_EXCEEDED and INSUFFICIENT_BALANCE are HTTP 402: ask the owner,
don't retry.
Support (machine-readable)
API errors use an additive envelope: code, message, and details are
unchanged, plus retryable, retry_after, suggested_action,
side_effects, doc_url, known_issue_id, request_id, and a support
contact. MCP tools return the same object in structuredContent with
isError: true.
GET /v1/public/status: components, current state, and incident history (no key)GET /v1/public/known-issues: known issues with workaround steps (no key)GET /v1/public/errorsand/v1/public/errors/{code}: error catalog (no key)GET /v1/public/sla: early-access response targets, not guarantees (no key)POST /v1/support/tickets,GET /v1/support/tickets/{ticket_id}: tickets scoped to the API key
Human contact: support@nexalayer.net (Telegram @LEWISMIN). If the upstream is down during terminate, billing stops at the first terminate attempt. See docs/SUPPORT.md for triage, response targets, alerts, and environment variables.
Chinese Docs and Examples
中文文档首页: docs/zh/README.md
中文 Quick Start: docs/zh/quick-start.md
Playwright 中文 Demo: docs/zh/playwright-demo.md
Python 中文示例说明: examples/python-quickstart/README.zh.md
Playwright 中文示例代码: examples/playwright-zh
NexaLayer is not a raw proxy IP service. The Chinese MVP documentation presents it as a session-based network execution layer for Playwright, Puppeteer, Browser-use, AI browser agents, crawlers, and automation workflows.
Available Tools
16 toolsnexalayer_check_statusARead-onlyIdempotent
Check NexaLayer service status before retrying or filing a ticket. Returns each component (api, sessions, billing, catalog, upstream_network) as operational, degraded_performance, partial_outage, major_outage, or under_maintenance, plus active incidents and recent incident history. If the component your call depends on is not operational, wait and retry later instead of reporting an issue. No API key needed; no charge.
Inputs: no named parameters.
nexalayer_create_sessionAIdempotent
Create a paid network session. This action incurs charges against the account balance. Configure a budget first and obtain owner approval for autonomous spend. The create API does not honor include_credentials and omits proxy credentials; read the session with include_credentials=true. Credentials are omitted unless include_credentials=true; never log them. PRICE_MISMATCH (409: re-read prices, retry once). BUDGET_EXCEEDED and INSUFFICIENT_BALANCE (402: ask the owner, don't retry).
Inputs: product_no (required), session_type (required), idempotency_key (required), duration, +3 more.
nexalayer_get_balanceARead-onlyIdempotent
Read the current account balance and trial-credit state.
Inputs: no named parameters.
nexalayer_get_budgetARead-onlyIdempotent
Read spend limits, current spend, pause state, and next daily reset.
Inputs: no named parameters.
nexalayer_get_sessionARead-onlyIdempotent
Read one session's status and proxy endpoint. Credentials are omitted unless include_credentials=true; never log them.
Inputs: session_id (required), include_credentials.
nexalayer_get_ticketARead-onlyIdempotent
Read a NexaLayer support ticket: status (received, triaged, needs_info, in_progress, awaiting_approval, workaround_available, resolved, closed), severity, events, matched known issue with workaround steps, and resolution. Poll no sooner than next_check_after_seconds. No charge.
Inputs: ticket_id (required).
nexalayer_known_issuesARead-onlyIdempotent
List known issues with machine-runnable workaround steps. Call this with the error_code from a failed tool call (for example UPSTREAM_UNAVAILABLE or BACKEND_ERROR) before filing a ticket; if an issue matches, run its workaround.steps instead of reporting. No API key needed; no charge.
Inputs: status, component, error_code.
nexalayer_list_productsBRead-onlyIdempotent
List a compact catalog of current products and prices before purchasing.
Inputs: type, limit, cursor, country, +1 more.
nexalayer_list_transactionsCRead-onlyIdempotent
List billing transactions for audit and reconciliation.
Inputs: page, page_size.
nexalayer_report_issueAIdempotent
File a support ticket with NexaLayer. Use only after following the error's suggested_action and checking nexalayer_check_status and nexalayer_known_issues. Recent request_ids and error codes seen by this MCP server are attached automatically, so you do not need to copy them. The server assigns severity (S1 outage or wrong billing, S2 broken with no workaround, S3 bug with a workaround, S4 question or feature request). Returns ticket_id and next_check_after_seconds; poll with nexalayer_get_ticket. Never include API keys, proxy passwords, or full_url: they are redacted and the ticket is escalated as a security issue. No charge.
Inputs: summary (required), category (required), tool, actual, +8 more.
nexalayer_rotate_sessionAIdempotent
Rotate a dynamic session after health or telemetry recommends rotation. Credentials are omitted unless include_credentials=true; never log them.
Inputs: session_id (required), idempotency_key (required), reason, include_credentials.
nexalayer_session_healthBRead-onlyIdempotent
Read health score and rotation recommendation for a session.
Inputs: session_id (required).
nexalayer_session_usageCRead-onlyIdempotent
Read traffic and request usage for a session.
Inputs: session_id (required).
nexalayer_set_budgetBDestructiveIdempotent
Set key and daily spend limits. This is a consequential write and should require owner approval.
Inputs: idempotency_key (required), paused, key_limit_usd, daily_limit_usd, +2 more.
nexalayer_terminate_sessionADestructiveIdempotent
Terminate a session and release its underlying network resource. Early termination does not imply a refund.
Inputs: session_id (required).
nexalayer_usage_alertsBRead-onlyIdempotent
Read actionable budget threshold alerts.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Each tool targets a distinct resource-action pair across clearly separated domains: sessions (create/get/rotate/terminate/usage/health), budget (set/get/alerts), billing (balance/transactions), support (status/known_issues/report/get_ticket), and catalog (list_products). The closest pairs—session_health vs session_usage and get_budget vs usage_alerts—are differentiated by descriptions (health/rotation vs traffic, limits/spend vs threshold alerts). No two tools appear to do the same thing.
All tools share the nexalayer_ prefix and snake_case, and most follow a verb_noun pattern (get_balance, list_transactions, create_session, rotate_session, report_issue). A few are noun phrases rather than verb-first (session_health, usage_alerts, known_issues, session_usage), a minor deviation from the otherwise predictable pattern.
16 tools sit at the upper end of the comfortable range but each earns its place across five functional areas (sessions, budget, billing, support, catalog). The count is slightly heavy but reasonable for the breadth of the service being governed.
Core lifecycle coverage is strong: create/get/rotate/terminate plus usage and health for sessions, set/get budget with alerts, balance and transactions for billing, and a full support loop (status, known_issues, report, get_ticket). The notable gap is the absence of a list_sessions operation to enumerate existing sessions, a minor inconvenience rather than a dead end.
Maintenance
Related MCP Connectors
MCP server for building and testing AI agents with multi-model experimentation and insights.
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
HiveCapital MCP Server — autonomous investment layer for AI agents
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceA proxy server that bridges AI agents and external APIs by dynamically translating OpenAPI specifications into standardized MCP tools, enabling seamless interaction without custom integration code.69MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that lets AI agents call APIs without ever seeing the credentials, using a local encrypted vault and per-secret allowlist policies for HTTP requests and subprocess environment variables.1AGPL 3.0
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that enables multiple AI agents to share memory, coordinate tasks, and collaborate effectively across IDEs and CLI tools.28 npm21MIT
- AlicenseNot gradedqualityDmaintenanceA robust, lightweight Model Context Protocol (MCP) server designed to empower your AI Agents with context-awareness, safe execution sandboxes, and dedicated thought logs.ISC