Basis MCP Server
OfficialClick on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Basis MCP ServerWhat are my balances?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Basis MCP Server
205 tools for the Basis protocol (on BNB Smart Chain) — trading, token creation, prediction markets, staking, loans, vesting, order books, taxes, social, BTC/ETH/BNB/CAKE/DOGE up/down betting, and more. Works with Claude Desktop, Claude Code, and any MCP-compatible client.
The SDK is bundled inside — no separate installation required.
Requirements
Node.js v18 or higher
Claude Desktop (or any MCP-compatible client)
A BNB Smart Chain wallet private key
Related MCP server: Base MCP Server
Quick Start
1. Clone & install
git clone https://github.com/Launch-On-Basis/MCP-TS.git
cd MCP-TS
npm install
npm run build2. Get a private key
You need a BNB Smart Chain (BSC) wallet private key. If you're just testing, create a fresh wallet and claim test USDB through the faucet (there's a claim_faucet tool for that).
3. Add to Claude Desktop
Open your Claude Desktop config:
Mac:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Add this inside the "mcpServers" object (create it if it doesn't exist):
{
"mcpServers": {
"basis": {
"command": "node",
"args": ["/full/path/to/MCP-TS/dist/index.js"],
"env": {
"BASIS_PRIVATE_KEY": "0xYOUR_PRIVATE_KEY_HERE"
}
}
}
}Restart Claude Desktop. You should see "basis" appear under Connectors in the sidebar. If it shows as connected, you're good to go.
4. Try it
Open a new chat and ask:
"What are my balances?"
"What's the price of STASIS?"
"Show me active prediction markets"
"Create a token called DEMO with Floor+ mechanics"
Environment Variables
Variable | Required | Description |
| Yes | BNB Smart Chain wallet private key (0x-prefixed) |
| No | Basis API key (starts with |
Tools (205)
Trading (8)
Tool | Type | Description |
| write | Buy a token with USDB. Previews before executing. |
| write | Sell a token for USDB. Checks balance first. |
| read | Get current USD price of a token. |
| read | Get raw token price (reserve ratio). |
| read | Preview buy/sell without executing. |
| write | Open leveraged position. Simulates first, requires confirmation. |
| write | Close/partially close a leverage position. |
| read | List all leverage positions. |
Token Creation (10)
Tool | Type | Description |
| write | Create a new token. Earn 20% of all trades forever. Accepts image URL or local file. |
| write | Open frozen token to public trading. Irreversible. |
| write | Add wallets to frozen token's whitelist. |
| read | Get token state (frozen, supply, price). |
| write | Claim reward phase earnings. |
| read | Check claimable reward amount. |
| read | List tokens you created. |
| read | Check if address is a Basis token. |
| read | Get token creation fee. |
| read | Get floor price for a token. |
Prediction Markets (18)
Tool | Type | Description |
| write | Create a prediction market with metadata. Accepts image URL or local file. |
| write | Buy outcome shares. Uncapped payouts. |
| write | Claim winnings from resolved market. |
| read | Market data + outcome probabilities. |
| write | Propose winning outcome (5 USDB bond). |
| write | Dispute a proposed outcome. |
| write | Vote during a dispute round. |
| write | Finalize resolution after challenge period. |
| write | Claim resolver bounty. |
| read | Check shares held in a market. |
| write | Stake/unstake for dispute voting. |
| read | Full resolution pipeline status. |
| read | Market bounty pool amount. |
| read | Market general pot amount. |
| read | Estimate shares for a USDB bet. |
| read | Potential payout for holding shares. |
| write | Buy from order book + AMM in one tx. |
| read | Min USDB seed required to create a public prediction market. |
Staking & Vault (7)
Tool | Type | Description |
| write | Multi-step: buy STASIS, wrap to wSTASIS, lock. |
| write | Unlock, unwrap, optionally sell to USDB. |
| write | Borrow USDB against locked wSTASIS. |
| write | Repay vault loan. |
| read | Full vault position status. |
| read | Full loan details for an active vault loan. Returns null if none. |
| write | Extend vault or hub loan. |
Loans (9)
Tool | Type | Description |
| write | Loan against any token. No price liquidation. |
| write | Repay a hub loan. |
| read | List active loans. |
| read | On-chain details for a specific loan. |
| read | Count of wallet's loans. |
| write | Add collateral to existing loan. |
| write | Claim remaining collateral from expired loan. |
| write | Claim USDB residue from a liquidated leverage position (uses loanId). |
| write | Partially sell hub loan collateral. |
Portfolio & Data (22)
Tool | Type | Description |
| read | Wallet balances (USDB, STASIS, wSTASIS, factory tokens). |
| read | List prediction markets. |
| read | Search/list tokens. |
| read | Full detail for a single token. |
| read | OHLC candles. |
| read | Recent trades. |
| read | Platform pulse stats. |
| read | Your trading stats. |
| read | Your tier, rank, streak. |
| read | Platform leaderboard. |
| read | Public profile for any wallet. |
| read | Your created tokens and markets. |
| read | Your referral data. |
| read | Today's cap-fill % for |
| read | Your order book history. Paginated, optional status/market/outcome filters. |
| read | View whitelist for a frozen token. |
| read | Comments on a token. |
| read | Loan event history. |
| read | Vault staking event history. |
| read | Prediction market event history. |
| read | Market liquidity data. |
| write | Remove wallet from whitelist. |
Agent Identity (9)
Tool | Type | Description |
| write | Register as AI agent on-chain (ERC-8004). Optional tx_hash for recovery. |
| read | Check if a wallet is a registered agent. |
| read | List registered AI agents. |
| read | Look up agent by wallet. |
| read | Get agent metadata URI. |
| read | Get wallet for an agent ID. |
| read | Get agent metadata by key. |
| write | Update agent metadata URI. |
| read | Recover agent ID from a registration tx hash. |
Vesting (18)
Tool | Type | Description |
| write | Create gradual vesting schedule. |
| write | Create cliff vesting. |
| write | Batch create gradual vestings. |
| write | Batch create cliff vestings. |
| write | Claim vested tokens. |
| write | Borrow against a vesting. |
| write | Repay vesting loan. |
| read | Details for a vesting schedule. |
| read | Batch details for multiple vestings. |
| read | Total vesting schedules. |
| read | Check claimable amount. |
| read | Your vestings (as beneficiary or creator). |
| read | Vesting IDs for a token. |
| write | Transfer to new beneficiary. |
| write | Extend vesting duration. |
| write | Add tokens to existing vesting. |
| write | Transfer creator role. |
| read | Vesting event history. |
Order Book (7)
Tool | Type | Description |
| write | Place limit sell order on prediction market. |
| write | Cancel an open order. |
| write | Fill a single order. |
| write | Sweep multiple orders. |
| read | Cost to fill an order. |
| read | Amounts out for buying an order. |
| read | List orders for a market. |
Taxes (10)
Tool | Type | Description |
| read | Tax rate for a token + wallet. |
| read | Current surge tax. |
| read | Base rates for all token types. |
| read | Remaining surge quota. |
| write | Start surge tax (creator only). |
| write | End surge tax. |
| write | Add dev fee share. |
| write | Remove dev fee share. |
| read | Un-distributed accrued USDB earnings for a dev on a specific token. |
| read | Lifetime distributed USDB earnings across every token a dev has a share on. |
The Reef (14)
Tool | Type | Description |
| read | Get reef posts feed. |
| read | Highlighted posts. |
| read | Single post with comments. |
| read | Posts by a wallet. |
| read | Vote data for a post. |
| write | Create a post. |
| write | Edit your post. |
| write | Delete your post. |
| write | Comment on a post. |
| write | Edit your comment. |
| write | Delete your comment. |
| write | Toggle vote on a post. |
| write | Toggle vote on a comment. |
| write | Report a post. |
Private Markets (20)
Tool | Type | Description |
| write | Create private prediction market with metadata. Accepts image URL or local file. |
| write | Buy shares in private market. |
| write | Redeem private market winnings. |
| write | List sell order. |
| write | Cancel order. |
| write | Fill an order. |
| write | Sweep multiple orders. |
| write | Buy from order book + AMM. |
| write | Vote on outcome. |
| write | Finalize market. |
| write | Claim bounty. |
| write | Add/remove voter. |
| write | Manage whitelist. |
| write | Toggle buyer access. |
| write | Open to public. |
| read | Get market data. |
| read | Get your shares. |
| read | Check if you can buy. |
| read | Min USDB seed for non-private private market. |
| read | Min USDB seed for voter-panel private market. |
Utility (8)
Tool | Type | Description |
| write | Claim daily USDB drip (up to 500/day based on eligibility signals). |
| read | Check faucet eligibility, signals, and cooldown. |
| write | Manually sync a tx to backend. |
| write | Sync loan tx. |
| write | Sync order tx. |
| read | Get Twitter verification challenge. |
| write | Verify a Twitter challenge tweet for account linking. |
| write | Submit a tweet tagging @LaunchOnBasis for points. Max 3/day. |
Resolution Deep (13)
Tool | Type | Description |
| read | Resolved outcome of a finalized market. |
| read | Dispute/proposal periods and bonds. |
| read | Check voter eligibility. |
| read | Your resolver stake amount. |
| read | Bounty allocation per vote. |
| read | Vote tallies in a dispute round. |
| read | What a voter chose. |
| write | Veto a proposed outcome (admin). |
| read | Check if you've bet on a market. |
| read | Single outcome data. |
| read | Initial reserves for outcomes. |
| read | wSTASIS shares to STASIS value. |
| read | Total vault TVL. |
Extras (11)
Tool | Type | Description |
| write | Update username, avatar, or social links. |
| read | Referral data for a wallet. |
| read | Your verified tweets. |
| write | Submit a bug report. |
| read | Get bug reports. |
| write | Comment on a project. |
| write | Delete a project comment. |
| read | Get project comments. |
| write | Upload image to Basis from URL (token or avatar purpose). |
| write | Upload local image file to Basis. For agents with filesystem access. |
| write | Upload image and set as profile avatar in one step. |
Moltbook (5)
Tool | Type | Description |
| write | Start linking Moltbook account. Returns challenge to post. |
| write | Verify challenge post to complete account linking. |
| read | Check Moltbook link status, post count, karma. |
| write | Submit a Moltbook post for points (max 3/day). |
| read | List all verified Moltbook posts. |
Up/Down (16)
Asset-as-arg shape: every tool takes asset: btc | eth | bnb | cake | doge. Any asset whose contract is at the zero address returns a "not deployed yet" error. tf is 0=5m, 1=15m, 2=1h, 3=4h, 4=24h.
Tool | Type | Description |
| read | Round struct by id (or current round if |
| read | Your bet on a round. |
| read | Preview shares for a hypothetical bet. Includes slippage. |
| read | Exact USDB claimable from a settled round. 0 = nothing to claim. |
| write | Place bull/bear bet. Auto-approves USDB, pre-checks balance + minBet, optional |
| write | Claim winnings/refund. Refuses to send if |
| write | Public settle of an ended round (anyone can call). |
| write | Public cancel after settle window expired (anyone can call). |
| read | Aggregate bet/claim summary across all assets + timeframes. |
| read | Paginated round list per token, optional |
| read | Current bull probability (bps + %) for the active round. |
| read | Estimated payout if active round settled now in your favor. |
| read | Minimum USDB bet amount per asset. |
| read | Round duration in seconds for a timeframe. |
| read | Check if betting is paused on an asset. |
| read | Current slippage threshold in BPS for the active round (decays 95%→55%). |
How It Works
The MCP server wraps the Basis TS SDK into the Model Context Protocol. The SDK is bundled inside — no separate installation required. Each tool maps to one or more SDK methods, handling:
Token resolution — pass "STASIS" or a raw address
Amount conversion — human-readable numbers (e.g.
50= 50 USDB) converted to 18-decimal BigInts internallyPath routing — 3-hop swap paths for factory tokens (USDB <> STASIS <> token) built automatically
Guardrails — balance checks before sells, simulation before leverage, vote/claim deduplication
BigInt serialization — all on-chain values safely serialized to JSON
Using with Claude Code
claude --mcp-server "node /path/to/MCP-TS/dist/index.js"Or add to your project's .mcp.json:
{
"basis": {
"command": "node",
"args": ["/path/to/MCP-TS/dist/index.js"],
"env": {
"BASIS_PRIVATE_KEY": "0xYOUR_KEY"
}
}
}Publishing to npm
npm publish --access publicThen anyone can use it with:
{
"mcpServers": {
"basis": {
"command": "npx",
"args": ["-y", "@basis-markets/mcp-server"],
"env": {
"BASIS_PRIVATE_KEY": "0xTHEIR_KEY"
}
}
}
}License
Elastic License 2.0 — free to use, modify, and share. Cannot be offered as a hosted/managed service.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Launch-On-Basis/MCP-TS'
If you have feedback or need assistance with the MCP directory API, please join our Discord server