# Local MCP server (stdio)

> Run the Intents MCP server locally with npx -y @intents-fi/mcp: configuration, product scoping and local webhook delivery.

The same tools as a local process, for clients without remote servers and for
`send_test_webhook`'s direct delivery to a handler on `localhost`:

```bash
claude mcp add intents-fi -e INTENTS_API_KEY=ik_test_… -- npx -y @intents-fi/mcp
```

| Variable | Default | Notes |
|---|---|---|
| `INTENTS_API_KEY` | — | An `ik_test_` secret key. The local server's Checkout tools run in test mode only |
| `INTENTS_WEBHOOK_SECRET` | — | The `whsec_` that `send_test_webhook` signs a direct delivery with |
| `INTENTS_MCP_PRODUCTS` | all | `checkout`, `swap`, `route` or a list, like the product endpoints (or `--products checkout`). The older `INTENTS_TOOLSETS` still works |
| `INTENTS_API_URL` | `https://api.intents.fi` | |
| `INTENTS_DOCS_URL` | `https://intents.fi/docs` | |

Setup pages: [Claude Code](/docs/agent-setup/claude-code), [Cursor](/docs/agent-setup/cursor),
[Codex](/docs/agent-setup/codex).

### Why `send_test_webhook` has a `url`

The API delivers webhooks to public `https` endpoints only, so a handler on `localhost` never hears
from it. With `url`, the local server pays the test invoice and then signs the paid invoice itself
(the same envelope and `X-Intents-Signature` scheme as a real delivery) and POSTs it to your
handler. The hosted server cannot reach your machine, so it refuses `url`; without it, the API's
own delivery reaches the endpoints you registered.

## Why `send_test_webhook` has a `url`

The API delivers webhooks to public `https` endpoints only, so a handler on `localhost` never hears
from it. With `url`, the local server pays the test invoice and then signs the paid invoice itself
(the same envelope and `X-Intents-Signature` scheme as a real delivery) and POSTs it to your
handler. The hosted server cannot reach your machine, so it refuses `url`; without it, the API's
own delivery reaches the endpoints you registered.

---

Source: https://intents.fi/docs/mcp/local · The whole corpus: https://intents.fi/docs/llms-full.txt
