# Build with AI: the Terra MCP server and AI-readable docs

> Build crypto payments with your AI assistant: AI-readable docs today, and at launch the Terra MCP server for AI agent crypto payments that never move funds.

Source: https://developers.terrawallet.us/ai

**Status:** The Terra MCP server is in early access: the buttons and commands on this page become active at launch. The AI-readable files work today.

## Build with AI: an MCP server for crypto payments

Your AI assistant can read every page of this site today. At launch, the Terra MCP server gives AI agents safe access to crypto payments work: docs, code samples and a sandbox to test in. Moving money is never one of the things an AI can do.

## AI-readable from day one

- **llms.txt** (Live): [/llms.txt](/llms.txt) lists every page with a one-line summary, in the llmstxt.org format.
- **llms-full.txt** (Live): [/llms-full.txt](/llms-full.txt) is the whole site as one Markdown file.
- **Markdown twins** (Live): Every page also exists as Markdown: add `.md` to its address, for example [/pay.md](/pay.md).
- **Copy page for AI** (Live): Every page has a "Copy page for AI" button that copies its Markdown for your assistant.

## Add the Terra MCP server to your assistant in one click

At launch: install buttons for Claude, Cursor, VS Code and Windsurf, a connector URL for ChatGPT, and a one-line command for Claude Code. The hosted server lives at `mcp.terrawallet.us`, separate from Terra's API server.

Claude Code (available at launch, not active yet):

```bash
claude mcp add --transport http terra https://mcp.terrawallet.us/mcp
```

Local install (available at launch, not active yet):

```bash
npx @terrawallet/mcp init
```

Any MCP client (available at launch, not active yet):

```json
{
  "mcpServers": {
    "terra": {
      "type": "http",
      "url": "https://mcp.terrawallet.us/mcp"
    }
  }
}
```

_`npx @terrawallet/mcp init` detects your installed AI clients and writes their config after you confirm. A local mode accepts a restricted sandbox key._

## Read the docs freely. Touch your account carefully.

- **Docs MCP: no sign-in, read-only**: Search the docs, fetch any page as Markdown, get code samples for Next.js, React, plain HTML, React Native, Node, Python and PHP, look up API operations, supported networks and tokens (verified contracts only) and SDK versions.
- **Account MCP: your sign-in, your consent**: OAuth 2.1 with PKCE through a dashboard sign-in and consent screen. Read projects, payments with verified on-chain status, links, invoices, plans, subscriptions, webhook deliveries, events, the audit log and analytics.
- **Sandbox writes**: Create test payment links, invoices and plans, simulate a payment, and send or replay a test webhook.
- **Live writes, only if you allow them**: Turned on per connection with an authenticator code: create a payment link or invoice (paid only to your verified payout wallet), cancel a subscription, or prepare a refund draft that a person signs.
- **Developer helpers**: Verify a webhook signature, decode a transaction, check integration health (failing webhooks, missing allowed origins, expired keys) and search logs.
- **Ready-made prompts**: "Add Terra Pay checkout to my app", "Set up crypto subscriptions", "Connect Terra Wallet to my dApp" and "Debug a failed webhook".

## Never possible through AI

Not through the MCP server, and not through any other AI path. These limits are built into what the tools can reach, not left to the model's judgement.

- Moving or signing funds. Refunds are drafts that a person signs in their own wallet.
- Changing payout wallets.
- Creating or revealing live secret keys or webhook secrets.
- Changing team roles or two-factor settings.
- Deleting an organization.

## Untrusted text stays data, never instructions

- **Labelled, capped data**: Names, descriptions, memos and webhook payloads come back only in clearly labelled data fields, length-capped and marked untrusted. Never inside tool descriptions.
- **Static tool list**: Tool definitions are fixed and reviewed. Nothing a user types can change the list of tools.
- **A human confirms writes**: Every tool is marked read-only or destructive, every write needs an explicit human confirmation, and live writes also need per-connection authenticator approval.
- **Least privilege tokens**: Sandbox-only by default, short-lived tokens, per-tool scopes shown on the consent screen, and revocation any time from the dashboard.
- **Private by default**: Customer emails are masked unless you grant a specific scope. No secret ever appears in a tool result.
- **Full oversight**: Per-token rate limits, every AI call audited and shown as "AI activity", anomaly alerts, and an org-wide "Disable AI access" switch.

## Frequently asked questions

### Is the Terra MCP server live?

Not yet. It is in early access, and the install buttons and commands on this page become active at launch. The AI-readable files, such as /llms.txt and the Markdown pages, work today.

### Can an AI agent make crypto payments with Terra?

No AI can move or sign funds through Terra. An AI agent can read docs, write code, use your sandbox and, only if you allow it, prepare drafts that a person approves and signs.

### What can the MCP server do without signing in?

The Docs tier needs no sign-in and is read-only: search the docs, fetch pages as Markdown, get code samples and look up API operations and supported networks.

### How is prompt injection handled?

Untrusted text such as names, memos and webhook payloads comes back only in labelled, length-capped data fields, never in tool descriptions. Tool definitions are static, and every write needs a human confirmation.

### Can I turn AI access off?

Yes. Tokens are short-lived and revocable from the dashboard, and an org-wide switch disables all AI access at once.
