# Pusaka

> Pusaka is an MCP server for finance and payments. NEAR NFTs that hold native Bitcoin: buy, lend against or pass to an heir. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Platforms:** CLI, API, Web
- **Repository:** https://github.com/pugarhuda/pusaka/tree/HEAD/mcp
- **MCP Registry name:** io.github.PugarHuda/pusaka
- **Categories:** [finance and payments](https://ai-powered.com/categories/finance-and-payments)
- **Listing updated:** 2026-11-23

## About

Each Pusaka is a NEP-171 NFT on NEAR whose Bitcoin address key is held by NEAR's MPC network through Chain Signatures, which signs only when the current owner asks. NEAR's own Bitcoin light client checks every deposit, so the verified balance needs no indexer or custodian. Before buying, a buyer sees whether anything the seller already signed could still move the contents.

The agent can buy, lend, borrow and inherit, with a spend cap per call (default 5 NEAR) set through PUSAKA_MAX_SPEND_NEAR. Without a NEAR account key it is read-only. Inheritance lets a named heir claim the NFT after a silence period.

The README is clear that this is live on NEAR testnet only and not deployed on mainnet. Its price reporters and gas relayer are run by the project itself, and the main contract can be upgraded by a three-account DAO with a timelock.

## Features

- **Bitcoin-holding NFTs:** Each token controls a native Bitcoin address.
- **Proven balances:** Deposits are checked by NEAR's Bitcoin light client.
- **Clean-to-buy check:** Shows signed outputs that could still move the contents.
- **Lending and borrowing:** Borrow NEAR from a person or USDC from a pool against a Pusaka.
- **Inheritance:** An heir claims the NFT after a silence period.
- **Spend cap:** Limits what an agent can spend per call.

## Good for

- Browse and buy a Bitcoin-backed NFT on testnet
- Lend against a Pusaka as collateral
- Set up an heir for a Bitcoin holding
- Check an NFT's proof of reserves

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http pusaka https://pusaka-two.vercel.app/api/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "pusaka": {
      "type": "http",
      "url": "https://pusaka-two.vercel.app/api/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://pusaka-two.vercel.app/api/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

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

```json
{
  "mcpServers": {
    "pusaka": {
      "url": "https://pusaka-two.vercel.app/api/mcp"
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "pusaka": {
      "type": "http",
      "url": "https://pusaka-two.vercel.app/api/mcp"
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://pusaka-two.vercel.app/api/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add pusaka --url https://pusaka-two.vercel.app/api/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.pusaka]
url = "https://pusaka-two.vercel.app/api/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "pusaka": {
      "httpUrl": "https://pusaka-two.vercel.app/api/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http pusaka https://pusaka-two.vercel.app/api/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "pusaka": {
      "serverUrl": "https://pusaka-two.vercel.app/api/mcp"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "pusaka": {
      "url": "https://pusaka-two.vercel.app/api/mcp",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "pusaka": {
      "type": "streamableHttp",
      "url": "https://pusaka-two.vercel.app/api/mcp"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "pusaka": {
      "url": "https://pusaka-two.vercel.app/api/mcp"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "pusaka": {
      "url": "https://pusaka-two.vercel.app/api/mcp"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "pusaka": {
      "url": "https://pusaka-two.vercel.app/api/mcp"
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "pusaka": {
      "url": "https://pusaka-two.vercel.app/api/mcp"
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://pusaka-two.vercel.app/api/mcp
```

Enter a Name (for example "Pusaka"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

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

```json
{
  "mcpServers": {
    "pusaka": {
      "type": "http",
      "url": "https://pusaka-two.vercel.app/api/mcp"
    }
  }
}
```

## Tools

The server marks all 15 tools read-only. From the server's own tool labels and tool names; not verified by us.

- `pusaka_overview` (says read-only): List every Pusaka: owner, BTC verified on NEAR, current sale price, and loan status; plus how many standing loan offers are open and how much NEAR they escrow.
- `pusaka_inspect` (says read-only): Full due diligence on one Pusaka: verified BTC and its USD value, a live NEAR Intents quote for selling that BTC (exit value), ETH (safe vs at risk), listing premium, loan LTV, APR and how many times the collateral's exit value covers the loan, sign epoch.
- `pusaka_loan_offers` (says read-only): Standing loan offers from lenders: for one Pusaka, or for any Pusaka holding at least N verified sats. The principal is already escrowed in the contract, so the holder can take it instantly with pusaka_accept_loan_offer, also to refinance a funded loan into cheaper or longer terms.
- `pusaka_swap_status` (says read-only): Where a NEAR Intents swap stands (pusaka_swap_to_usdc): PENDING_DEPOSIT, KNOWN_DEPOSIT_TX, PROCESSING, SUCCESS, REFUNDED or FAILED, with its NEAR settlement transactions and, once settled, the recipient's USDC balance.
- `pusaka_token_account` (says read-only): Pusaka v2: the NFT's own NEAR account (NEP-616, keyless, answers only to the current holder), its named alias, their balances, what's inside (other Pusakas it holds, with their verified sats, and its USDC: a buyer of this NFT gets all of it), whether the post-quantum (ML-DSA-65) lock is on and open, and any agent's on-chain daily budget.
- `pusaka_lend_pool` (says read-only): The USDC lending pool (Circle testnet USDC): cash, lent, the BTC price it uses (low side for borrowing, high side for liquidation; null = stale, borrowing and liquidation paused) and every open loan with its debt, loan-to-value and whether it can be liquidated now. With `token_id` (and `contract`), only that Pusaka's loan and the most it could borrow.
- `pusaka_market_book` (says read-only): The market contract's book: standing bids priced per verified sat (best first, with what each would pay for a given Pusaka), loan offers with no due date, and open perpetual loans with their live debt and refinancing-auction rate.
- `pusaka_verify_signature` (says read-only): Check a signature someone says comes from a Pusaka, the way a website or exchange would: a 'Sign in as Pusaka #N' message (EIP-4361; pass signature 0x…, and domain = your site) or a BIP-322 proof of its Bitcoin address (pass witness, base64). Checks the signature, that the address is the Pusaka's own NEAR MPC key, that the holder it names still holds it, and (sign-ins) expiry and site. Returns val
- `pusaka_audit` (says read-only): Independent proof-of-reserves audit of one Pusaka, without trusting the contract's own numbers: asks NEAR's MPC signer which Bitcoin key it derives for this contract and token (must equal the token's key), recomputes verified_sats from the proven deposits minus everything ever signed away, and looks every proven deposit up on Bitcoin itself (confirmed, paying this address, the right amount, and wh
- `pusaka_contract_trust` (says read-only): Should an agent trust the Pusaka contract itself? Reads from NEAR: the deployed code's sha256 and the reproducible-build source it names (NEP-330), every access key on the contract account (none but one-use gift-link keys means nobody can sign as the contract), whether the code is final (upgrades renounced) or, if not, who can change it (a Sputnik DAO council, its members and vote threshold), the 
- `pusaka_history` (says read-only): Provenance of one Pusaka from the contract's own on-chain record: every mint, listing, sale and price, transfer, inheritance, loan (funded, repaid, defaulted, refinanced, extended) and withdrawal, oldest first, plus the chain of holders and the sale prices it has fetched.
- `pusaka_credit_record` (says read-only): A borrower's on-chain credit record across every Pusaka: loans taken, repaid, defaulted (the lender took the collateral) and still open, read from the contract's history, not from anything the borrower says. Use it before funding a loan request or making an offer.
- `pusaka_loan_watch` (says read-only): Watch every funded Pusaka loan at once: due date, hours left, loan-to-value at live BTC/NEAR prices, and what this agent can do next on each (repay as borrower, claim the collateral as lender once overdue, or a lender's pending extension to accept). Built for an agent that lends or borrows on a schedule.
- `pusaka_deals` (says read-only): Scan every Pusaka for sale for Bitcoin cheaper than it really sells for: each listing's price now (Dutch auctions fall over time) against a live, solver-signed NEAR Intents quote for selling the verified BTC inside into USDC. A negative discount means the NFT costs less than its BTC's exit value. Sorted best deal first.
- `pusaka_portfolio` (says read-only): Everything one NEAR account has in Pusaka: the Pusakas it holds and the Bitcoin proven inside them (sats and USD), loans it owes and loans it funded, standing offers it escrowed, and Pusakas that name it as heir. Defaults to this agent's account.

## FAQ

### Is Pusaka live on mainnet?

No. It is live on NEAR testnet only.

### Can the agent spend freely?

No. A per-call cap applies, defaulting to 5 NEAR.

### Can Pusaka run without keys?

Yes, read-only without PUSAKA_ACCOUNT_ID and key.

### Who can upgrade the contracts?

The classic contract cannot be changed; the main one changes only through a DAO plus timelock.

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

Run this command in your terminal: claude mcp add --transport http pusaka https://pusaka-two.vercel.app/api/mcp

### What are the best alternatives to Pusaka?

The closest alternatives to Pusaka are Solana MCP by Vybe, Tapetide - Indian Stock Market MCP, NostrPulse, Australian Economic Data (ABS, RBA & APRA) and x402 Micropayments MCP.

## Where this comes from

- Description: written from the project's README.
- Status and tools: checked automatically by AIPoweredBot on 24 November 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [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.
- [NostrPulse](https://ai-powered.com/mcp/nostrpulse): NostrPulse is an open-source MCP server for finance and payments.
- [Australian Economic Data (ABS, RBA & APRA)](https://ai-powered.com/mcp/australian-economic-data-abs-rba-and-apra): Australian Economic Data (ABS, RBA & APRA) is an open-source MCP server for analytics and data.
- [x402 Micropayments MCP](https://ai-powered.com/mcp/x402-micropayments-mcp): x402 Micropayments MCP is a paid 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.
- [GoTRON MCP](https://ai-powered.com/mcp/gotron-mcp): GoTRON MCP is an MCP server for finance and payments.
- [vcinfo](https://ai-powered.com/mcp/vcinfo): vcinfo is an MCP server for finance and payments.

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