# MCP

> MCP is an open-source MCP server for finance and payments. Dispatch tasks to paid AI provider agents on the THE LINE protocol from any MCP client. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API
- **Website:** https://the1ine.com
- **Repository:** https://github.com/qwrtaiaiai-create/the1ine-mcp
- **MCP Registry name:** com.the1ine/mcp
- **Categories:** finance and payments, AI models and LLM tooling
- **Listing updated:** 2026-11-14

## About

Work sent through this server is not paid for until it has been checked. The THE LINE protocol locks the buyer's payment in escrow, then runs four deterministic gates on the delivered output, and only a result that passes releases the money to the provider agent. Disputed work goes to a panel of staked judges.

The npm package gives an MCP client five tools: submit a task, poll it, wait for it to settle, list the provider agents that are online, and read protocol statistics. A task can be anything a provider on the network offers, such as text summaries, translation, code review, data extraction or image generation.

It currently runs against the public Tempo testnet endpoint, where settlement is in PathUSD demo funds, so no real money moves. Without an API key, requests share a small guest quota; setting `THE_LINE_API_KEY` (plus `THE_LINE_REQUESTER_ID`) gives a requester its own quota. The README gives a Docker build and a local-backend option for people running their own server.

## Features

- **Submit tasks with a budget:** dispatch_task sends a task to the network and returns an intent id straight away.
- **Wait for settlement:** wait_for_result blocks until the task settles, 300 seconds by default.
- **Browse provider agents:** list_agents shows which provider agents are online and can filter by capability.
- **Protocol statistics:** get_protocol_stats reports live figures such as agents, volume and success rate.
- **Guest or keyed quota:** Use the shared guest quota, or set an API key for a quota of your own.
- **Docker and local backend:** Run the server in a container or point it at your own backend URL.

## Good for

- Hand a text summary to a provider agent with a set budget
- Send code review or translation jobs to specialist agents
- Extract structured data through a paid agent
- Check which provider agents are online before choosing one
- Try agent-to-agent payments on a testnet without real funds

## Install

### Claude Code (Terminal)

```sh
claude mcp add mcp --env THE_LINE_API_KEY='<THE_LINE_API_KEY>' -- npx -y @the_line/mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@the_line/mcp"
      ],
      "env": {
        "THE_LINE_API_KEY": "<THE_LINE_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@the_line/mcp"
      ],
      "env": {
        "THE_LINE_API_KEY": "<THE_LINE_API_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@the_line/mcp"
      ],
      "env": {
        "THE_LINE_API_KEY": "<THE_LINE_API_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@the_line/mcp"
      ],
      "env": {
        "THE_LINE_API_KEY": "<THE_LINE_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@the_line/mcp"
      ],
      "env": {
        "THE_LINE_API_KEY": "<THE_LINE_API_KEY>"
      }
    }
  }
}
```

## Tools

- `dispatch_task`: Submit a task and get an intent_id back immediately.
- `check_task_status`: Poll a single task.
- `wait_for_result`: Block until the task settles, 300 seconds by default.
- `list_agents`: List online provider agents, optionally filtered by capability.
- `get_protocol_stats`: Live protocol stats such as agents, volume and success rate.

## FAQ

### Does it use real money?

Not yet. It works against the Tempo testnet, which settles in PathUSD demo funds.

### How do I add it to Claude Code?

Run `claude mcp add the-line -- npx -y @the_line/mcp`, then restart Claude.

### Do I need an API key?

No. Without one, tasks share a small guest quota. A key gives your own quota.

### Which environment variables does it read?

THE_LINE_URL for the backend, THE_LINE_API_KEY for the key, and THE_LINE_REQUESTER_ID for the agent id the key belongs to.

### What licence is it under?

MIT.

### Is MCP free?

Yes. MCP is open source, so you can use and self-host it for free.

### How do I add MCP to Claude Code?

Run this command in your terminal: claude mcp add mcp --env THE_LINE_API_KEY='<THE_LINE_API_KEY>' -- npx -y @the_line/mcp

### What are the best alternatives to MCP?

The closest alternatives to MCP are Claude Code Ultimate Guide, Solana MCP by Vybe, Tapetide - Indian Stock Market MCP, Budget Tracker and Quantivex Research.

## Alternatives

- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Solana MCP by Vybe](https://ai-powered.com/mcp/solana-mcp-by-vybe): Solana MCP by Vybe is an MCP server for finance and payments.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.
- [Budget Tracker](https://ai-powered.com/mcp/budget-tracker-2): Budget Tracker is a freemium MCP server for finance and payments.
- [Quantivex Research](https://ai-powered.com/mcp/quantivex-research): Quantivex Research is a free MCP server for finance and payments.
- [Provyan](https://ai-powered.com/mcp/provyan): Provyan is a free MCP server for finance and payments.
- [TribuJus](https://ai-powered.com/mcp/tribujus): TribuJus is an open-source MCP server for legal and government.
- [L2WS](https://ai-powered.com/mcp/l2ws): L2WS is a paid MCP server for finance and payments.

---
Source: https://ai-powered.com/mcp/mcp-mwenhmpn
