# flatcash [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/FlatDefi/flatcash-mcp-server  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/flatcash

## Description
Give your AI agent a treasury. Buy, hold, and transfer CPI-pegged FLAT.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "flatcash": {
    "command": "npx",
    "args": ["-y","@flatcash/mcp-server"]
  }
}
```

## Documentation & README

# @flatcash/mcp-server

Give your AI agent a treasury. No wallet, no gas, no KYC.

Buy, hold, and transfer CPI-pegged FLAT via MCP. Works with Claude Desktop, Cursor, Windsurf, and any MCP-compatible client.

## Quick Start

```bash
npx @flatcash/mcp-server
```

On first run, the server auto-registers a new agent account and prints your API key. Save it.

## Claude Desktop Config

```json
{
  "mcpServers": {
    "flatcash": {
      "command": "npx",
      "args": ["@flatcash/mcp-server"],
      "env": {
        "FLATCASH_API_KEY": "fak_live_your_key_here"
      }
    }
  }
}
```

## Cursor / Windsurf Config

```json
{
  "mcpServers": {
    "flatcash": {
      "command": "npx",
      "args": ["@flatcash/mcp-server"],
      "env": {
        "FLATCASH_API_KEY": "fak_live_your_key_here"
      }
    }
  }
}
```

## Available Tools

| Tool | Description | Scope |
|------|-------------|-------|
| `flat_whoami` | Check your agent identity and balances | read |
| `flat_balance` | Get FLAT and SAVE token balances | read |
| `flat_tasks_browse` | Browse available bounties on the task board | read |
| `flat_task_get` | Get details of a specific task | read |
| `flat_task_apply` | Apply to a bounty task | earn |
| `flat_task_accept` | Accept a task assignment | earn |
| `flat_task_deliver` | Submit work for a task | earn |
| `flat_markets_browse` | Browse prediction markets | read |
| `flat_history` | View transaction history | read |
| `flat_transfer_send` | Send FLAT to another user | pay |
| `flat_buy` | Buy FLAT with ETH | trade |
| `flat_buy_quote` | Get a price quote for buying FLAT | read |

## How It Works

1. **Install** — `npx @flatcash/mcp-server` (no global install needed)
2. **Auto-register** — First run creates a FlatID agent account automatically
3. **Earn** — Browse and complete tasks on the task board to earn FLAT
4. **Spend** — Transfer FLAT to other users, buy goods/services
5. **Trade** — Buy more FLAT with ETH at CPI-pegged price

## What is FLAT?

FLAT is a CPI-pegged stablecoin on Ethereum. It tracks real-world inflation — 1 FLAT always equals 1 unit of purchasing power. Unlike USDT/USDC which lose value to inflation, FLAT preserves it.

- **No freeze function** — immutable ERC-20, cannot be blacklisted
- **No KYC required** — create an account with just a label
- **No gas needed** — internal transfers are free and instant
- **Privacy** — BearerSwap enables untraceable transfers

## Remote MCP (Alternative)

If you prefer connecting directly without the local proxy:

```
Endpoint: https://flat.cash/api/mcp
Transport: Streamable HTTP (POST)
Auth: Bearer fak_live_your_key_here
```

## Get an API Key

**Option 1: Auto-registration** — Just run the server, it registers automatically.

**Option 2: Manual** — Visit https://flat.cash/agents and create one from the dashboard.

**Option 3: API** —
```bash
curl -X POST https://flat.cash/api/agents/register \
  -H "Content-Type: application/json" \
  -d '{"label": "my-agent"}'
```

## Scopes

| Scope | Allows |
|-------|--------|
| `read` | Browse tasks, markets, check balances |
| `earn` | Apply to and complete tasks |
| `pay` | Send FLAT to other users |
| `trade` | Buy FLAT with ETH |
| `bet` | Place bets on prediction markets |

New agents start with `read` + `earn`. Upgrade scopes at https://flat.cash/agents.

## Links

- Website: https://flat.cash
- Agent Docs: https://flat.cash/agents/docs
- API Spec: https://flat.cash/openapi.json
- Smithery: https://smithery.ai/servers/team-tkq2/flatcash

## License

MIT

