2extract

com.2extract由 2extract.com 发布官方发布者v1.0.2更新于 Oct 26, 2026

Create and manage residential and mobile proxies: geo targeting, usage limits, spend reports.

已验证Streamable HTTP可网页运行网页搜索与抓取云端与基础设施数据与分析

概览

AI 生成的概览

2extract 托管服务器,让助手创建和管理住宅与移动代理,设置地理定位与用量限额,并查看流量和费用报告。

可以做什么
  • 创建、更新、停用和删除代理资源,并重新生成代理密码
  • 查询地理定位目标:国家、地区、城市、邮编和移动运营商
  • 生成带地理与会话参数的代理用户名和连接字符串
  • 为单个代理设置流量或费用限额、IP 白名单和目标域名白名单
  • 查看账户余额、余额流水,以及按代理统计的每日流量和花费
  • 列出可用的代理套餐及其价格
适用场景
适合需要让助手为爬取、价格监控或特定地区访问而开通和调整代理,并跟踪流量与花费的场景。若只做查询和报表,只读密钥即可。
运行要求
远程 Streamable HTTP 端点,无需本地安装。需要 2extract 账户和 API 密钥,以 Authorization bearer 令牌发送,并授予 proxies:read、proxies:write、balance:read、stats:read、geo:read 等权限范围。部分客户端从 EXTRACT_API_KEY 环境变量读取密钥。
安装前请注意
创建代理会计费并占用账户余额,操作前应先确认余额和套餐。写入类工具可更改或删除代理、替换白名单、使旧密码失效并中断正在进行的流量;删除等操作的确认由客户端负责,因此应谨慎分配密钥权限。部分工具会返回代理密码和 IP 白名单。

安装

在 SourceWeft 中

  1. 打开 控制台中的 2extract,将其添加到工作区。
  2. 连接 Authorization token 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/com.2extract%2Fmcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "2extract": {
      "type": "http",
      "url": "https://mcp.2extract.com/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

2extract MCP Server

[2extract MCP server: web data access for AI agents]

[Install in VS Code] [Install in VS Code Insiders] [Install in Cursor]

VS Code asks for the API key on install and does not store it in the config. Cursor installs with a placeholder: replace 2xt_your_api_key in mcp.json with your key.

Remote Model Context Protocol server for 2extract. It lets an AI agent create and manage residential and mobile proxies, pick geo targeting down to city, ZIP or carrier, set traffic and spend limits, and report on usage and cost.

This is a hosted server. There is nothing to install or run locally: your MCP client connects to the URL below with your 2extract API key.

Endpointhttps://mcp.2extract.com/mcp
TransportStreamable HTTP
AuthAuthorization: Bearer 2xt_... (2extract API key)

Get an API key

  1. Sign up or log in to 2extract.
  2. Open API keys and create a key.
  3. Grant the scopes the agent needs: proxies:read, proxies:write, balance:read, stats:read, geo:read. Write scopes do not include read access, so most workflows need both proxies:read and proxies:write.

A read-only key (no proxies:write) is enough for reporting and lookups.

Connect

Claude Code

bash
claude mcp add --transport http 2extract https://mcp.2extract.com/mcp \  --header "Authorization: Bearer 2xt_your_api_key"

Codex CLI

The key is read from the EXTRACT_API_KEY environment variable; Codex adds Bearer itself:

bash
export EXTRACT_API_KEY=2xt_your_api_keycodex mcp add 2extract --url https://mcp.2extract.com/mcp --bearer-token-env-var EXTRACT_API_KEY

Or edit ~/.codex/config.toml (or .codex/config.toml in a trusted project):

toml
[mcp_servers.2extract]url = "https://mcp.2extract.com/mcp"bearer_token_env_var = "EXTRACT_API_KEY"

Gemini CLI

bash
gemini mcp add -s user --transport http \  --header "Authorization: Bearer 2xt_your_api_key" \  2extract https://mcp.2extract.com/mcp

Or edit ~/.gemini/settings.json (or .gemini/settings.json in a project):

json
{  "mcpServers": {    "2extract": {      "httpUrl": "https://mcp.2extract.com/mcp",      "headers": { "Authorization": "Bearer 2xt_your_api_key" }    }  }}

OpenCode

opencode.json in your project (or ~/.config/opencode/opencode.json). The key is read from the EXTRACT_API_KEY environment variable:

json
{  "$schema": "https://opencode.ai/config.json",  "mcp": {    "2extract": {      "type": "remote",      "url": "https://mcp.2extract.com/mcp",      "enabled": true,      "headers": { "Authorization": "Bearer {env:EXTRACT_API_KEY}" }    }  }}

Claude Desktop

claude_desktop_config.json:

json
{  "mcpServers": {    "2extract": {      "type": "http",      "url": "https://mcp.2extract.com/mcp",      "headers": { "Authorization": "Bearer 2xt_your_api_key" }    }  }}

Cursor

~/.cursor/mcp.json or .cursor/mcp.json:

json
{  "mcpServers": {    "2extract": {      "url": "https://mcp.2extract.com/mcp",      "headers": { "Authorization": "Bearer 2xt_your_api_key" }    }  }}

VS Code

.vscode/mcp.json (the key is requested on first use and not stored in the file):

json
{  "inputs": [    {      "type": "promptString",      "id": "2extract-api-key",      "description": "2extract API key",      "password": true    }  ],  "servers": {    "2extract": {      "type": "http",      "url": "https://mcp.2extract.com/mcp",      "headers": { "Authorization": "Bearer ${input:2extract-api-key}" }    }  }}

Cline

Open the Cline panel, click MCP Servers, then Configure MCP Servers, and add to cline_mcp_settings.json:

json
{  "mcpServers": {    "2extract": {      "type": "streamableHttp",      "url": "https://mcp.2extract.com/mcp",      "headers": { "Authorization": "Bearer 2xt_your_api_key" },      "disabled": false    }  }}

Keep "type": "streamableHttp": without it Cline falls back to the older SSE transport.

Other clients

Any client that supports remote MCP servers works. Give it the endpoint URL, the Streamable HTTP transport and the Authorization header.

Tools

Account

ToolWhat it doesScope
getAccountBalanceAvailable funds, whether a new proxy can be created, and the proxy username prefixbalance:read
getAccountTrafficUsageTraffic and spend over a period, for the account or one proxystats:read
listAccountBalanceHistoryDeposits and charges over a periodstats:read

Geo targeting

ToolWhat it doesScope
listGeoCountriesCountries available for targetinggeo:read
searchGeoRegionsRegions and states within a countrygeo:read
searchGeoCitiesCities within a country or regiongeo:read
searchGeoZipsZIP and postal codes within a countrygeo:read
searchGeoISPMobile carriers for ISP targetinggeo:read

Plans

ToolWhat it doesScope
listProxyPlansAvailable plans and their pricesproxies:read

Proxies

ToolWhat it doesScope
listProxyResourcesEvery proxy on the account, with traffic and spendproxies:read
getProxyResourceFull detail for one proxyproxies:read
createProxyResourceCreate a proxy (billable)proxies:write
updateProxyResourceChange description, status, geo, whitelist or limitsproxies:write
deactivateProxyResourceStop traffic without deleting the proxyproxies:write
deleteProxyResourcePermanently remove a proxy (asks for confirmation)proxies:write
regenerateProxyPasswordIssue a new password (asks for confirmation)proxies:write
setProxyLimitsCap traffic or spend per day or monthproxies:write
setProxyIpWhitelistRestrict which IP addresses can use the proxyproxies:write
setProxyTargetHostsRestrict which domains the proxy can reach (wildcards like *.example.com)proxies:write
buildConnectionStringReady-to-use username and connection string with geo, carrier and sticky-session parametersproxies:read, balance:read

Confirmation for destructive tools happens in your client. If the client does not ask, any key with proxies:write can run them, so scope keys accordingly.

Prompts

PromptArgumentsWhat it does
create-proxy-resourcepurpose, proxy_type?, country?Creates a proxy for a stated job and returns a connection string
build-connection-stringproxy_id?, purpose?Builds a connection string for an existing proxy
monthly-cost-reportperiodTraffic and spend per proxy for a period, with outliers flagged. Read-only
cleanup-unused-proxiesnoneFinds proxies with no traffic in 30 days and deactivates them after you confirm. Never deletes

Example requests

  • "Create a residential proxy in Germany, Berlin, for price monitoring, capped at 5 GB a month."
  • "Give me a sticky-session connection string for my serp_us proxy."
  • "How much did I spend on traffic last month, per proxy?"
  • "Which proxies had no traffic in the last 30 days? Deactivate them."
  • "Find mobile carriers in the US I can target."

Documentation

Support

Legal

The server source code is not published. This repository holds the public listing, client configuration examples and the registry manifest (server.json).

来源:README.md,提交 39451ed

工具

20

buildConnectionString

Build Connection String

Build a ready-to-use username and connection string for a proxy resource. The tool retrieves the proxy credential and account prefix automatically, validates geo, network, and session parameters, and encodes them in the correct order. Returns the host, port, username, password, and a username:password@host:port connection string. Response fields: docs://proxies/buildConnectionString.

输入参数id必填asnispzipcitystatestrictsessioncountry_codesession_ttl_minutes

createProxyResource

Create Proxy Resource

Create a new residential or mobile proxy resource on the account. Check getAccountBalance and require can_create_proxy to be true; usage is billed according to the selected plan (tariff_id from listProxyPlans). The name must be unique on the account and cannot be changed later. Limits can be set here or later with setProxyLimits. Returns the complete new proxy, including its password. Use buildConnectionString to get a connection string. Response fields: docs://proxies/createProxyResource.

输入参数name必填limitscountriestariff_id必填proxy_type必填descriptionip_whitelist

deactivateProxyResource

Deactivate Proxy Resource

Deactivate a proxy resource, stopping its traffic without deleting it. Reactivate later with updateProxyResource (status active). Use deleteProxyResource to permanently remove instead. Returns the updated proxy with status inactive. Response fields: docs://proxies/updateProxyResource (shared with updateProxyResource).

输入参数id必填

deleteProxyResource

Delete Proxy Resource

Permanently delete a proxy resource. This action is irreversible — the proxy and all its settings will be removed. User confirmation is required before proceeding. To stop traffic but keep the proxy for later, use deactivateProxyResource instead. Returns a snapshot of the deleted proxy with status deleted. Response fields: docs://proxies/deleteProxyResource.

输入参数id必填confirm

getAccountBalance

Get Account Balance

Get the current account balance, overdraft limit, and proxy username prefix. Returns funds_available in USD, can_create_proxy (whether proxy creation is allowed), and the prefix that starts every proxy username. Overdraft-enabled accounts also return credit_limit in USD and may return credit_limit_unlimited. Use can_create_proxy to check creation eligibility. For past deposits and charges, use listAccountBalanceHistory. Response fields: docs://account/getAccountBalance.

无需输入参数。

getAccountTrafficUsage

Get Account Traffic Usage

Get daily traffic and spend for the account over a date range, broken down by proxy. Returns, for each date with traffic, the bytes downloaded and uploaded and the USD spent per proxy resource ID; dates with no traffic are omitted. Pass user_proxy_list_id to report on one proxy. For per-proxy totals over a period, listProxyResources with statistic_from/statistic_to is simpler. Results are paginated: keep requesting pages while meta.pagination.hasMorePages is true. Response fields: docs://account/getAccountTrafficUsage.

输入参数pagelimitdate_to必填date_from必填user_proxy_list_id

getProxyResource

Get Proxy Resource

Get full details of a specific proxy resource, including IP/host whitelists not present in listProxyResources. Returns the proxy with its password, IP whitelist, and target host whitelist. Response fields: docs://proxies/getProxyResource.

输入参数id必填

listAccountBalanceHistory

List Account Balance History

Get balance transaction history for the account over a date range. Returns paginated ledger entries (top-ups, debits, refunds) with signed USD amount, source, and timestamp. For the current balance, use getAccountBalance. Response fields: docs://account/listAccountBalanceHistory.

输入参数pagelimitorderdate_to必填date_from必填

listGeoCountries

List Geo Countries

List all available countries for proxy geo targeting, optionally filtered by name. Returns each country's numeric id (for createProxyResource countries) and ISO code (for buildConnectionString country_code). Response fields: docs://geo/listGeoCountries.

输入参数search

listProxyPlans

List Proxy Plans

List tariff plans for a proxy type. Use the numeric id when calling createProxyResource. Returns each plan's id, title, price, currency, and traffic type (package or pay as you go). Response fields: docs://plans/listProxyPlans.

输入参数enabledpopularproxy_type必填

listProxyResources

List Proxy Resources

List proxy resources in the account, with optional filters by name and status, and tariff, limits, traffic, and spend detail. Returns paginated proxies without passwords, plus totals for traffic and spend across the whole filtered set. Use getProxyResource for one proxy's password and whitelists. Response fields: docs://proxies/listProxyResources.

输入参数pagelimitordersearchstatusorder_bystatistic_tostatistic_from

regenerateProxyPassword

Regenerate Proxy Password

Generate a new password for a proxy resource. The old password is immediately invalidated — any running traffic using it will be interrupted. User confirmation is required before proceeding. Returns the complete proxy with the new password. Response fields: docs://proxies/regenerateProxyPassword.

输入参数id必填confirm

searchGeoCities

Search Geo Cities

Search cities within a country and optional region (region_code from searchGeoRegions). Use search to narrow results — city lists can be large. Returns each city's extract_parameter, the value for buildConnectionString's city. Response fields: docs://geo/searchGeoCities.

输入参数searchregion_codecountry_code必填

searchGeoISP

Search Geo ISP

Search the ISP catalog for mobile ISP targeting (mobile proxies only). Always resolve the code through this tool — never accept a real-world ASN number as a substitute. Returns each carrier's name and catalog code, the value for buildConnectionString's isp. Response fields: docs://geo/searchGeoISP.

输入参数limitsearch

searchGeoRegions

Search Geo Regions

Search regions/states within a country, identified by its ISO country_code (from listGeoCountries). Returns each region's extract_parameter, the value for buildConnectionString's state, and its numeric code, used as searchGeoCities' region_code. Response fields: docs://geo/searchGeoRegions.

输入参数searchcountry_code必填

searchGeoZips

Search Geo ZIP Codes

Search ZIP codes within a country, for use in proxy username params. Returns ZIP values to pass as buildConnectionString's zip; ZIP targeting cannot be combined with state or city. Response fields: docs://geo/searchGeoZips.

输入参数limitsearchcountry_code必填

setProxyIpWhitelist

Set Proxy IP Whitelist

Replace the IP whitelist for a proxy resource, restricting authentication to the given IPs. This controls who can authenticate; to control which domains the proxy can reach, use setProxyTargetHosts. Returns the updated proxy with the applied IP whitelist. Response fields: docs://proxy-settings/setProxyIpWhitelist.

输入参数id必填ips必填

setProxyLimits

Set Proxy Limits

Set the traffic or spending limit on a proxy resource to control costs. A proxy has one limit: this call replaces any existing limit, and total_limit 0 removes it. The counter resets daily or monthly according to time_period. Returns the updated proxy with the applied limits. To change other settings in the same call, use updateProxyResource. Response fields: docs://proxy-settings/setProxyLimits.

输入参数id必填limit_type必填time_period必填total_limit必填

setProxyTargetHosts

Set Proxy Target Hosts

Replace the target host whitelist for a proxy resource, restricting its traffic to the given domains. This controls where the proxy can connect; to control who can authenticate, use setProxyIpWhitelist. Returns the updated proxy with the applied target host whitelist. Response fields: docs://proxy-settings/setProxyTargetHosts.

输入参数id必填target_hosts必填

updateProxyResource

Update Proxy Resource

Update description, countries, status, IP whitelist, or limits in one call. Name and proxy_type are not mutable through this MCP tool. For single-field changes, prefer setProxyIpWhitelist, setProxyLimits, or deactivateProxyResource. Returns the complete updated proxy without its password. Response fields: docs://proxies/updateProxyResource.

输入参数id必填limitsstatuscountriesdescriptionip_whitelist

版本历史

2
  1. v1.0.2最新Oct 21, 2026
  2. v1.0.1Oct 20, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分