# x402 Agent Toolkit — Quant Arb, TWSE & Agent Security

> x402 Agent Toolkit — Quant Arb, TWSE & Agent Security is a paid MCP server for security. Pay-per-call x402 MCP tools for trading data, Taiwan AI supply chain and agent security. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Paid
- **Platforms:** API, Web
- **Website:** https://x402-agent-toolkit.x402-edge-tools.workers.dev
- **Repository:** https://github.com/breezekitten/x402-agent-toolkit
- **MCP Registry name:** io.github.BreezeKitten/x402-agent-toolkit
- **Categories:** [security](https://ai-powered.com/categories/security), [trading data](https://ai-powered.com/categories/trading-data)
- **Listing updated:** 2026-12-05

## About

A remote MCP server and HTTP API where each tool call is paid in Base USDC through the x402 protocol, so an agent settles small fees per request without accounts or API keys. The catalogue spans three areas: market data for quant and trading agents, including cross-venue perpetual funding spreads on Hyperliquid and dYdX and probability gaps between Polymarket and Kalshi, plus Taiwan listed-company data pulled from official TWSE feeds.

A second group targets the risks agents face when browsing or connecting to unknown services. Tools strip hidden prompt injections from web pages, score x402 endpoints before payment, and scan remote MCP servers for poisoned tool descriptions. Utility endpoints convert pages to Markdown, audit HTTP security headers and summarise GitHub repository health.

The service runs on Cloudflare Workers and is open source under the MIT licence. It is aimed at developers building autonomous agents that need paid, machine-readable data and a way to vet other tools before trusting them.

## Features

- **Pay-per-call x402 access:** Each tool call settles a small USDC payment on Base mainnet, while discovery calls such as initialize and tools/list are free.
- **Funding and prediction arbitrage:** Scans perpetual funding rates across Hyperliquid and dYdX v4 and compares Polymarket and Kalshi markets for probability spreads.
- **Taiwan AI supply chain data:** Combines official TWSE OHLCV, revenue, valuation and institutional flow data with a mapping of 24 Taiwanese AI hardware suppliers.
- **Prompt injection filtering:** Fetches public URLs and removes zero-width characters, hidden comments and override directives before returning sanitised Markdown with a hash.
- **MCP server security scanning:** Inspects a remote Streamable HTTP MCP server's tool descriptions and schemas for hidden instructions and returns a risk score.
- **Pre-payment x402 audit:** Checks an unknown x402 endpoint's payment challenge, USDC contract and payee address, and returns a trust score.

## Good for

- Letting a trading agent compare funding-rate carry across perpetual venues
- Screening prediction market markets for cross-exchange mispricing
- Vetting an unknown MCP server before connecting an agent to it
- Feeding cleaned web pages to an LLM without injected instructions
- Pulling structured Taiwan listed-company financials for research

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http x402-agent-toolkit https://x402-agent-toolkit.x402-edge-tools.workers.dev/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "x402-agent-toolkit": {
      "type": "http",
      "url": "https://x402-agent-toolkit.x402-edge-tools.workers.dev/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://x402-agent-toolkit.x402-edge-tools.workers.dev/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "x402-agent-toolkit": {
      "url": "https://x402-agent-toolkit.x402-edge-tools.workers.dev/mcp"
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "x402-agent-toolkit": {
      "type": "http",
      "url": "https://x402-agent-toolkit.x402-edge-tools.workers.dev/mcp"
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://x402-agent-toolkit.x402-edge-tools.workers.dev/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add x402-agent-toolkit --url https://x402-agent-toolkit.x402-edge-tools.workers.dev/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.x402-agent-toolkit]
url = "https://x402-agent-toolkit.x402-edge-tools.workers.dev/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "x402-agent-toolkit": {
      "httpUrl": "https://x402-agent-toolkit.x402-edge-tools.workers.dev/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http x402-agent-toolkit https://x402-agent-toolkit.x402-edge-tools.workers.dev/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "x402-agent-toolkit": {
      "serverUrl": "https://x402-agent-toolkit.x402-edge-tools.workers.dev/mcp"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "x402-agent-toolkit": {
      "url": "https://x402-agent-toolkit.x402-edge-tools.workers.dev/mcp",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "x402-agent-toolkit": {
      "type": "streamableHttp",
      "url": "https://x402-agent-toolkit.x402-edge-tools.workers.dev/mcp"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "x402-agent-toolkit": {
      "url": "https://x402-agent-toolkit.x402-edge-tools.workers.dev/mcp"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "x402-agent-toolkit": {
      "url": "https://x402-agent-toolkit.x402-edge-tools.workers.dev/mcp"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "x402-agent-toolkit": {
      "url": "https://x402-agent-toolkit.x402-edge-tools.workers.dev/mcp"
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "x402-agent-toolkit": {
      "url": "https://x402-agent-toolkit.x402-edge-tools.workers.dev/mcp"
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://x402-agent-toolkit.x402-edge-tools.workers.dev/mcp
```

Enter a Name (for example "x402 Agent Toolkit — Quant Arb, TWSE & Agent Security"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "x402-agent-toolkit": {
      "type": "http",
      "url": "https://x402-agent-toolkit.x402-edge-tools.workers.dev/mcp"
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 2 of 14 tools read data; 12 names don't say. From the server's own tool labels and tool names; not verified by us.

- `safe_fetch` (name suggests: reads): Fetch a public URL and strip hidden prompt injections, returning sanitised Markdown and a verdict.
- `ai_supply_chain`: Taiwan AI hardware supplier data mapped to US tickers with a composite demand index.
- `x402_preflight`: Audit an unknown x402 URL and return a 0-100 trust score.
- `repo_intel`: GitHub repository activity, release and maintenance health with npm and PyPI metadata.
- `tw_stock_intel`: Official TWSE daily market data, valuation ratios and monthly revenue growth.
- `market_signals`: Polymarket orderbook signals and multi-DEX cross-pool price spreads.
- `deep_extract`: Parse HTML tables and embedded SPA data into structured JSON.
- `web_to_markdown`: Convert a public web page into Markdown with metadata and links.
- `token_check` (name suggests: reads): DexScreener liquidity and GoPlus contract security risk report.
- `tw_institutional_flows`: TWSE institutional money flows, margin and short balances.
- `mcp_security_scan`: Scan a remote MCP server's tool descriptions for injections and exfiltration instructions.
- `funding_arb`: Cross-venue perpetual funding-rate arbitrage scanner for Hyperliquid and dYdX v4.
- `prediction_arb`: Polymarket and Kalshi cross-exchange probability spread scanner.
- `site_intel`: HTTP security header, metadata, tech stack and llms.txt audit.

## FAQ

### How is the server paid for?

Tool calls are paid per request in USDC on Base mainnet using the x402 protocol.

### Does the server hold private keys?

It is configured only with a public payee address and the code rejects private keys in configuration.

### Which MCP transport does x402 Agent Toolkit — Quant Arb, TWSE & Agent Security use?

It exposes a Streamable HTTP endpoint at /mcp.

### How do I add x402 Agent Toolkit — Quant Arb, TWSE & Agent Security to Claude Code?

Run this command in your terminal: claude mcp add --transport http x402-agent-toolkit https://x402-agent-toolkit.x402-edge-tools.workers.dev/mcp

### What are the best alternatives to x402 Agent Toolkit — Quant Arb, TWSE & Agent Security?

The closest alternatives to x402 Agent Toolkit — Quant Arb, TWSE & Agent Security are Tech Risk, Sage Agent x402 Tools, Nullroute x402 Agent Toolkit, Agent Toolkit and AgentX402: Pay-per-Call AI, Web Render, Search & DeFi Tools.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Tech Risk](https://ai-powered.com/mcp/tech-risk): Tech Risk is a paid MCP server for security.
- [Sage Agent x402 Tools](https://ai-powered.com/mcp/sage-agent-x402-tools): Sage Agent x402 Tools is a freemium MCP server for web search and scraping.
- [Nullroute x402 Agent Toolkit](https://ai-powered.com/mcp/nullroute-x402-agent-toolkit): Nullroute x402 Agent Toolkit is a paid MCP server for mcp data access.
- [Agent Toolkit](https://ai-powered.com/mcp/agent-toolkit): Agent Toolkit is a paid MCP server for security.
- [AgentX402: Pay-per-Call AI, Web Render, Search & DeFi Tools](https://ai-powered.com/mcp/agentx402-pay-per-call-ai-web-render-search-and-defi-tools): AgentX402: Pay-per-Call AI, Web Render, Search & DeFi Tools is a freemium MCP server for cloud and infrastructure.
- [x402 tools](https://ai-powered.com/mcp/x402-tools-3): x402 tools is a paid MCP server for web search and scraping.
- [MCP Endpoint Intelligence Suite](https://ai-powered.com/mcp/mcp-endpoint-intelligence-suite): MCP Endpoint Intelligence Suite is a paid MCP server for trading data.
- [Qodnai x402 Security Intelligence](https://ai-powered.com/mcp/qodnai-x402-security-intelligence): Qodnai x402 Security Intelligence is a paid MCP server for security.

---
Source: https://ai-powered.com/mcp/x402-agent-toolkit-quant-arb-twse-and-agent-security
