# Spectra for AI agents

> Ask Claude, ChatGPT, Cursor or another AI assistant about Spectra's fixed rates, markets, MetaVaults and your positions. They read live data from Spectra's hosted MCP server, with no account or API key. The server never signs or sends anything.

## Endpoints

- Read-only: https://mcp.spectra.finance/mcp (Markets, yields, MetaVaults, wallet positions, rate history and the docs)
- With transaction builders: https://mcp.spectra.finance/mcp/trade (The same, plus unsigned PT buy, sell and redeem transactions for your wallet to sign)

Use the read-only endpoint unless you want the assistant to prepare transactions.

## Add Spectra

### Claude

[Add to Claude](https://claude.ai/customize/connectors?modal=add-custom-connector&connectorName=Spectra&connectorUrl=https%3A%2F%2Fmcp.spectra.finance%2Fmcp)

Opens Claude's custom connector form with Spectra and the read-only URL filled in.

### ChatGPT

[Open ChatGPT plugins](https://chatgpt.com/plugins)

Choose Add, then Add custom MCP server. Name it Spectra, paste the read-only URL, set authentication to No authentication and create it. Then type @Spectra in a chat.

### Cursor

[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=spectra&config=eyJ1cmwiOiJodHRwczovL21jcC5zcGVjdHJhLmZpbmFuY2UvbWNwIn0%3D)

Opens the Cursor app and adds the read-only server.

### VS Code

[Add to VS Code](vscode:mcp/install?%7B%22name%22%3A%22spectra%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fmcp.spectra.finance%2Fmcp%22%7D)

Opens VS Code and adds the read-only server.

### Claude Code

Add the server, or install the Spectra plugin, which also adds two Spectra skills.

```
claude mcp add --transport http spectra https://mcp.spectra.finance/mcp
```

```
/plugin marketplace add perspectivefi/spectra-ai
/plugin install spectra@spectra-ai
```

### Other assistants

Add a remote MCP server (Streamable HTTP) with the read-only URL and no authentication, or use this config. To run the server on your computer instead, use the npm package (Node.js 20 or later).

```
{ "mcpServers": { "spectra": { "type": "http", "url": "https://mcp.spectra.finance/mcp" } } }
```

```
npx -y @perspectivefi/spectra-mcp
```

## Try asking

- "What are the best fixed rates on USDC on Spectra right now?"
- "Compare Spectra's ETH fixed rates with at least three months to maturity."
- "Which Spectra MetaVaults have the highest 30-day APY, and who curates them?"
- "What Spectra positions does this wallet hold? 0x…"
- "How do Principal Tokens work, and what are the risks?"

## What it can do

- Find and compare fixed rates, LP and MetaVault yields across networks
- Read a market's fixed, variable and LP APY, maturity, liquidity and rate history
- Read a MetaVault's curator, strategy, APYs and allocations
- Show a wallet's PT, YT, LP and MetaVault positions
- Explain how Spectra works, with links to the docs
- On the transaction endpoint only: prepare unsigned transactions to buy, sell or redeem PT

## Safety

- **Never signs or sends.** Transaction tools return steps for your wallet to sign.
- **Spectra routers only.** Transactions are built only for the Spectra router of each network, and quotes far from the market's PT price are refused.
- **Exact approvals.** Token approvals cover the exact amount, and none is requested when your allowance already covers it.
- **No tokenized equities.** Tokenized-equity markets are not offered.

## Notes

Rates are percentages, with the time they were read. A fixed APY holds only if you keep the Principal Token to maturity, barring [negative yield](https://docs.spectra.finance/docs/spectra/security/risk-documentation#negative-yield-risk) in its yield source; selling earlier gives the market price at that time. AI assistants can make mistakes: check the market in the Spectra app (https://app.spectra.finance) before you sign a transaction. Smart-contract, underlying-protocol and liquidity risks apply; see the [risk documentation](https://docs.spectra.finance/docs/spectra/security/risk-documentation). Information only, not financial advice.

## More

- [Full guide in the docs](https://docs.spectra.finance/docs/spectra/guides/ai-agents)
- [Plugin and skills](https://github.com/perspectivefi/spectra-ai)
- [npm package](https://www.npmjs.com/package/@perspectivefi/spectra-mcp)
- [MCP server](https://mcp.spectra.finance)
- [Markets overview](https://www.spectra.finance/markets): live fixed and variable APYs
