@vestream/mcp
by NonFungibleH
README.md
# `@vestream/mcp`
> MCP server for [Vestream](https://vestream.io) — give your AI agent live token-vesting data across 13 protocols and 13 chains.
> ### ✅ Official package
> The only official Vestream MCP server is published as **`@vestream/mcp`** under the `vestream` npm org, with builds signed via [npm provenance](https://docs.npmjs.com/generating-provenance-statements). Any package with a different scope or name (`vestream-mcp`, `vestream-data`, `@anything-else/vestream*`, etc.) is unofficial and may proxy your API key to a third party. Verify the provenance badge on the [npm page](https://www.npmjs.com/package/@vestream/mcp) before installing.
This package is a tiny [Model Context Protocol](https://modelcontextprotocol.io) server that exposes the Vestream REST API as native tools for any MCP-compatible client (Claude Desktop, Cursor, Windsurf, ChatGPT desktop, LangChain, CrewAI, custom). Plug it in, point your agent at your wallet, and ask things like "what unlocks for me in March?" or "which of my positions has the highest sell pressure next week?".
---
## What you get
27 tools, all schema-validated. Every tool works on the Free plan except the webhook tools, which need a paid API plan.
**Tokens**
| Tool | What it does |
|---|---|
| `get_token_summary` | One-call overview: locked now and its USD value, unlocks in the next 7/30/90/365 days, the next unlock, cancelable amount, recipients, live market. |
| `get_token_unlocks` | Locked now, streaming per day and every discrete unlock in a window. |
| `get_token_locks` | The lock check: every schedule, largest first, and whether the sender can cancel it. |
| `get_token_recipients` | Who receives the vesting and each wallet's share of what's locked. |
| `get_token_claims` | Total withdrawn, plus dated claims (complete for Sablier). |
| `get_token_unlock_timeseries` | Future unlocks per day, week or month, ready to chart. |
| `get_token_unlock_history` | Past unlocks per week or month, priced at the time. |
| `get_token_schedule_as_of` | The vesting as it stood on a past date (period-end reporting). |
| `get_unlock_pressure` | Upcoming unlocks against liquidity, 24h volume and market cap. |
**Market**
| Tool | What it does |
|---|---|
| `get_market_unlocks` | The unlock calendar across every token, with USD values and a minimum-size filter. |
| `get_activity` | Live feed of new locks, claims and cancellations. |
| `get_recent_locks` | The newest vesting and lock schedules. |
| `get_cancelled_locks` | Schedules cancelled early by their sender (Sablier). |
| `search_tokens` | Find a token by ticker or contract address. |
| `list_tokens` | Every token with active vesting, paginated and sortable. |
| `list_protocols` / `list_chains` / `get_stats` | Coverage and index-wide figures. |
**Wallets and batch**
| Tool | What it does |
|---|---|
| `get_wallet_vestings` | Every vesting stream for a wallet (EVM or Solana), paginated 1–500. |
| `get_upcoming_unlocks` | A wallet's unlocks in the next N days, sorted by date. |
| `get_wallet_income` | Vesting income on both tax bases (unlock and claim), in USD. |
| `get_stream` | Full detail for one stream by its composite ID. |
| `batch_token_summaries` / `batch_wallet_vestings` | Up to 25 tokens or wallets in one call (each counts as one API call). |
**Webhooks (paid plans)**
| Tool | What it does |
|---|---|
| `create_webhook_subscription` | Register a URL for `unlock.upcoming`, `unlock.large`, `lock.created` and `lock.cancelled` events, with optional wallet, protocol and chain filters. Returns a signing secret once. Cap: 50 per key. |
| `list_webhook_subscriptions` / `delete_webhook_subscription` | Manage your subscriptions. |
Supported **protocols** (13): Sablier · Hedgey · Superfluid · UNCX · Team Finance · Unvest · PinkSale · LlamaPay · HoodLock · Magna · Streamflow · Jupiter Lock · Smithii.
Supported **chains** (13): Ethereum (`1`) · BNB Chain (`56`) · Polygon (`137`) · Base (`8453`) · Arbitrum (`42161`) · Optimism (`10`) · Avalanche (`43114`) · Robinhood Chain (`4663`) · Monad (`143`) · zkSync Era (`324`) · Berachain (`80094`) · Blast (`81457`) · Solana (`101`).
---
## Install
You don't need to install anything ahead of time — most MCP clients run the server on demand via `npx`.
You **do** need a Vestream API key. Get one free at [vestream.io/build](https://www.vestream.io/build): it appears on screen straight away, no review.
### Or use the hosted server (no install)
The same tools run at `https://www.vestream.io/mcp` over Streamable HTTP. Send your key as an `Authorization: Bearer` header; calls count against your API plan like REST calls.
```bash
# Claude Code
claude mcp add --transport http vestream https://www.vestream.io/mcp \
--header "Authorization: Bearer vstr_live_..."
```
```json
// Cursor: .cursor/mcp.json
{
"mcpServers": {
"vestream": {
"url": "https://www.vestream.io/mcp",
"headers": { "Authorization": "Bearer vstr_live_..." }
}
}
}
```
---
## Configure your MCP client
### Claude Desktop
Edit your config file:
- **macOS** — `~/Library/Application Support/Claude/claude_desktop_config.json`
- **Windows** — `%APPDATA%\Claude\claude_desktop_config.json`
- **Linux** — `~/.config/Claude/claude_desktop_config.json`
Add Vestream to the `mcpServers` block:
```json
{
"mcpServers": {
"vestream": {
"command": "npx",
"args": ["-y", "@vestream/mcp"],
"env": {
"VESTREAM_API_KEY": "vstr_live_..."
}
}
}
}
```
Restart Claude Desktop. Open a new chat and ask: *"What's vesting for `0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045`?"*
### Cursor / Windsurf / Cline
Open settings → MCP servers (the exact path varies by version) and paste:
```json
{
"vestream": {
"command": "npx",
"args": ["-y", "@vestream/mcp"],
"env": { "VESTREAM_API_KEY": "vstr_live_..." }
}
}
```
### ChatGPT (Custom GPT / Actions)
ChatGPT doesn't speak MCP natively yet — for ChatGPT we recommend pointing your **Custom GPT Action** at the [Vestream OpenAPI spec](https://vestream.io/openapi.json) directly. That gives you the same three endpoints (`/wallet/{address}/vestings`, `/wallet/{address}/upcoming-unlocks`, `/stream/{id}`) with built-in auth handling.
A native ChatGPT MCP bridge is in beta — check [vestream.io/developer](https://vestream.io/developer) for the current recommended path.
### Run it manually (for debugging)
```bash
npm install -g @vestream/mcp
VESTREAM_API_KEY=vstr_live_... vestream-mcp
```
The server speaks MCP over stdio. A "Server running on stdio. Waiting for MCP client..." log on stderr means it's ready.
---
## Tool reference
### `get_wallet_vestings`
Get every vesting stream for one wallet.
**Parameters**
| name | required | type | notes |
|---|---|---|---|
| `address` | yes | `string` | EVM `0x…` or Solana base58 pubkey |
| `protocol` | no | `string` | comma-separated; e.g. `"sablier,hedgey"` |
| `chain` | no | `string` | comma-separated chain ids; e.g. `"1,8453"` |
| `active_only` | no | `boolean` | `true` to skip fully-vested streams |
| `limit` | no | `integer` | page size 1–500; default 100 |
| `offset` | no | `integer` | zero-indexed; use `pagination.next_offset` from a prior page |
**Example**
```js
get_wallet_vestings({
address: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
active_only: true
})
```
**Paginating large wallets**
A wallet with hundreds of streams can blow your agent's context window in
one shot. Page through it with `limit` + `offset` — the response includes a
`pagination` block with `total`, `next_offset` (null when exhausted), and
the count returned. Typical loop in agent pseudocode:
```js
let offset = 0;
const all = [];
while (true) {
const page = get_wallet_vestings({ address, limit: 100, offset });
all.push(...page.streams);
if (page.pagination.next_offset == null) break;
offset = page.pagination.next_offset;
}
```
### `get_upcoming_unlocks`
Forecast unlock events in a forward window.
| name | required | type | notes |
|---|---|---|---|
| `address` | yes | `string` | EVM `0x…` or Solana base58 pubkey |
| `days` | no | `integer` | 1–365, default 30 |
| `protocol` | no | `string` | comma-separated, same set as above |
### `get_stream`
| name | required | type | notes |
|---|---|---|---|
| `stream_id` | yes | `string` | `"{protocol}-{chainId}-{nativeId}"` — e.g. `"sablier-1-12345"`, `"streamflow-101-7xKX…"` |
---
## Authentication & rate limits
Every request includes `Authorization: Bearer ${VESTREAM_API_KEY}`. The plaintext key is shown to you once at issue time — store it in your shell profile or a secret manager, never commit it.
**Limits** depend on your plan: Free is 250 calls a month (50 a day, 30 a minute); paid plans are listed at <https://www.vestream.io/developer#pricing>. Batch tools count one call per item. Get a free key in 30 seconds at <https://www.vestream.io/build>.
The server returns standard error JSON on failure:
```json
{ "error": "Invalid API key.", "docs": "https://www.vestream.io/developers/docs" }
```
---
## Environment
| variable | default | description |
|---|---|---|
| `VESTREAM_API_KEY` | *required* | Your `vstr_live_…` API key |
| `VESTREAM_API_URL` | `https://www.vestream.io/api/v1` | Override for staging or self-hosted backends. |
---
## Versioning
This package follows [SemVer](https://semver.org). Tool **names** and required-parameter shapes are stable within a major version. Optional parameters and added tools are minor bumps. Breaking changes — removed tools or required-parameter shape changes — happen on major bumps with a deprecation window of at least 90 days.
The matching REST API is versioned at the URL prefix (`/api/v1`); we'll bump to `/api/v2` before any breaking change there.
---
## Links
- Website — <https://vestream.io>
- Developer portal — <https://vestream.io/developer>
- OpenAPI spec — <https://vestream.io/openapi.json>
- Live API docs (Swagger UI) — <https://www.vestream.io/api-docs> (gated; sign in via the developer portal)
- GitHub — <https://github.com/NonFungibleH/Vestream/tree/main/mcp>
- Contact — <hello@vestream.io>
---
## Licence
MIT. Vestream is operated by 3UILD LLC.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues