---
name: tollvex
description: Pay-per-call marketplace of tools, data APIs and models for AI agents. Use it when a task needs live data (weather, search, prices, web pages, GitHub, and seller-listed APIs) and the user has a Tollvex API key.
---

# Tollvex

Tollvex gives you one API key for many tools. Each successful call debits the user's prepaid balance by the listed price. Failed calls are not charged.

## Rules

- Ask the user for their API key; never invent one. Keys start with `tvx_`. Store it as the env var `TOLLVEX_API_KEY`.
- Before running a tool that costs more than $0.01 per call, or before more than 20 calls in one task, tell the user the expected cost.
- Never try to top up the balance yourself. If you get `insufficient_balance`, tell the user to top up at https://tollvex.com/dashboard.

## Step 1: get a key

The user signs up at https://tollvex.com/signup, then creates a key at https://tollvex.com/dashboard.

## Step 2: connect (pick one)

**MCP (preferred).** Streamable HTTP endpoint: `https://tollvex.com/mcp` with header `Authorization: Bearer $TOLLVEX_API_KEY`.

Claude Code:
```
claude mcp add --transport http tollvex https://tollvex.com/mcp --header "Authorization: Bearer $TOLLVEX_API_KEY"
```

Cursor / other clients (`mcp.json`):
```json
{ "mcpServers": { "tollvex": { "url": "https://tollvex.com/mcp", "headers": { "Authorization": "Bearer tvx_..." } } } }
```

MCP tools: `search_tools` (free), `run_tool` (paid per call), `get_balance` (free).

**REST.**
```
GET  https://tollvex.com/api/v1/tools                 # catalog, free, no key
POST https://tollvex.com/api/v1/tools/{slug}/run      # body: {"input": {...}}
GET  https://tollvex.com/api/v1/balance               # balance + last 20 calls
```

```
curl -X POST https://tollvex.com/api/v1/tools/weather.current/run \
  -H "Authorization: Bearer $TOLLVEX_API_KEY" -H "content-type: application/json" \
  -d '{"input":{"city":"Lisbon"}}'
```

**Models (OpenAI-compatible).** Base URL `https://tollvex.com/api/v1`, same key. Models: `claude-haiku-5-5`, `claude-sonnet-5-5`, `claude-opus-5-5`.

## Step 3: verify

Call `get_balance` (MCP) or `GET /api/v1/balance`. A JSON balance means you are connected.

## Current tools

| slug | price/call | what it does |
|---|---|---|
| `weather.current` | $0.0005 | Current conditions and a 3-day forecast for any city. |
| `wikipedia.search` | $0.0005 | Search English Wikipedia and get the top article's summary. |
| `hn.search` | $0.0005 | Search Hacker News stories by relevance or date. |
| `crypto.price` | $0.001 | Spot price, market cap and 24h change for coins by CoinGecko id. |
| `fx.rates` | $0.0003 | Latest reference exchange rates (ECB data). |
| `github.repos` | $0.001 | Find GitHub repositories, sorted by stars or recent activity. |
| `dictionary.define` | $0.0003 | Definitions, phonetics and examples for an English word. |
| `web.read` | $0.002 | Fetch a public web page and return its readable text. |

Input schemas: `GET https://tollvex.com/api/v1/tools/{slug}`.
