This document explains how to use the Stability Model Context Protocol (MCP) for interacting with the STABILITY blockchain. Users can access tools for wallet management, smart contract deployment, and blockchain interactions via the production API.
- Click the button above to add Stability MCP to your Cursor IDE
- Alternatively, manually add the MCP server URL:
https://mcp.stabilityprotocol.com/mcp - Configure your STABILITY API key in Cursor's MCP settings
{
"mcpServers": {
"stabilityprotocol": {
"url": "https://mcp.stabilityprotocol.com/sse"
}
}
}- The production instance is available at: https://mcp.stabilityprotocol.com
- Wallet Management Tools: Create, check balances, and view transaction history.
- Smart Contract Deployment Tools: Deploy ERC20, ERC721, ERC1155 tokens, or custom contracts.
- Blockchain Interaction Tools: Send transactions, query transaction details, get block information, read/write to contracts, and get latest block data.
- API Endpoints: RESTful APIs for all tools, with SSE support for real-time updates.
- Zero Gas Fees: All transactions on STABILITY blockchain use zero gas fees.
- Use SSE for real-time updates by connecting to
/sse/{toolset}endpoints for specific toolsets, or/ssefor all tools combined. - Example: Connect to
https://mcp.stabilityprotocol.com/sse/walletfor wallet-related real-time events. - Handle events in your client application to receive live updates on transactions, deployments, etc.
- The API supports streamable HTTP responses for tools that produce ongoing output.
- Use standard HTTP POST to
/mcp/{toolset}for specific toolsets, or/mcpfor all tools combined, and handle chunked responses. - Example:
curl -N https://mcp.stabilityprotocol.com/mcp/blockchain -d '{"tool": "get_latest_block", "args": {...}}'to stream block updates.
- For direct integration in scripts or applications, run the server in STDIO mode locally.
- Command:
node dist/index.js --stdio --tools=wallet(after building the project). - Interact by writing JSON commands to stdin and reading responses from stdout.
- Example Input:
{"tool": "create_wallet", "args": {"alias": "MyWallet"}} - Requires local setup; see README.md for installation.
- Make POST requests to endpoints like
/v1/tools/{toolset}where toolset iswallet,contracts, orblockchain. - Authentication: Provide STABILITY API key via
X-API-Keyheader, or as a query parameter?api-key=your_api_key_here, or as a parameter for blockchain tools. - Example: Create Wallet
curl -X POST https://mcp.stabilityprotocol.com/v1/tools/wallet \ -H "Content-Type: application/json" \ -H "X-API-Key: your_api_key_here" \ -d '{"tool": "create_wallet", "args": {"alias": "MyWallet"}}' - Example: Deploy ERC20 Token
curl -X POST https://mcp.stabilityprotocol.com/v1/tools/contracts \ -H "Content-Type: application/json" \ -H "X-API-Key: your_api_key_here" \ -d '{"tool": "deploy_erc20", "args": {"name": "MyToken", "symbol": "MTK", "initialSupply": "1000000", "walletAddress": "0x...", "privateKey": "0x..."}}' - Example: Send Transaction
curl -X POST https://mcp.stabilityprotocol.com/v1/tools/blockchain \ -H "Content-Type: application/json" \ -d '{"tool": "send_transaction", "args": {"apiKey": "your_api_key_here", "to": "0x...", "value": "0.1", "privateKey": "0x..."}}' - Get API Key: Obtain from https://portal.stabilityprotocol.com/
- More Examples: See the README.md for additional API examples and details.
- Security Note: Keep API keys and private keys secure; never share them.
For development setup or contributing, refer to README.md.