Skip to main content
Glama
Flaset MCP server

Flaset MCP server

Official
by Flasetai
README.md
# Flaset MCP server

Flaset Flash Agent as an [MCP](https://modelcontextprotocol.io) server. Claude, ChatGPT, Cursor and any other assistant that speaks MCP can check Flash Deal links, draft deals, read vestings, receipts and tokens, and search the Flaset docs.

**Hosted:** `https://flaset.ai/mcp` (Streamable HTTP, no sign-in)

## Safety

- Every tool is **read-only**. Nothing here signs or sends a transaction, and the server holds no key.
- `draft_deal` returns a link to the Flaset app with the Deal form filled in. You open it, connect your own wallet, check every field and sign there.
- **Never give an assistant, or any tool, your private key or seed phrase.**

## Tools

| Tool | What it does |
|---|---|
| `check_deal_link` | Reads a Flash Deal link and checks it on chain, as the app's buyer page does: terms, fee, who may buy, vesting, deadline, the seller's signature, whether it is still open and the seller can deliver; with `taker`, whether that wallet may take it and can pay. |
| `draft_deal` | Fills in a Flash Deal and returns an unsigned link to the app's Deal form. With `seller`, also checks the balance, the token and the fee on chain. |
| `list_vestings` | The Flash Deals vestings of a wallet: unlocked, claimed, claimable now, next unlock. |
| `read_receipt` | A transaction as the Flaset receipt shows it: what moved, to whom, the protocol fee, the vesting stream. |
| `token_info` | A token by its contract: symbol, name, decimals, supply, whether the app lists it, lookalike and lure warnings, and its logo. |
| `search_docs` | Searches the Flaset docs (built in; a search fetches nothing). |

Flash Deals runs on Robinhood Chain today; more networks come later.

## Add it

**Claude Code**

```sh
claude mcp add --transport http flaset https://flaset.ai/mcp
```

**Claude (claude.ai and Desktop):** Settings → Connectors → Add custom connector, then paste `https://flaset.ai/mcp`.

**ChatGPT:** Settings → Connectors → Advanced → Developer mode, then create a connector with `https://flaset.ai/mcp`.

**Cursor** (`~/.cursor/mcp.json`):

```json
{ "mcpServers": { "flaset": { "url": "https://flaset.ai/mcp" } } }
```

## Run it locally (stdio)

```sh
git clone https://github.com/Flasetai/flaset-mcp.git
cd flaset-mcp
npm install
npm run build
node dist/flaset-mcp-stdio.mjs
```

In a client config, for example Claude Desktop's `claude_desktop_config.json`:

```json
{ "mcpServers": { "flaset": { "command": "node", "args": ["/path/to/flaset-mcp/dist/flaset-mcp-stdio.mjs"] } } }
```

It reads the same public data as the hosted server and needs no key.

## Develop

```sh
npm test            # build, then the offline tests (no network)
npm run test:live   # every tool against the public RPC, read-only
npm run typecheck
npx wrangler deploy # the Worker, to your own Cloudflare account (see wrangler.toml)
```

`wrangler dev` needs workerd's install script: if npm held it back, run `npm install-scripts approve workerd`.

`src/` is the server. `src/shared/` holds the parts of the Flaset SDK, app and Flash Agent it reads deals, vestings, receipts and tokens with, so its answers match the app.

Docs: [flaset.ai/docs](https://flaset.ai/docs/)