
Bitcoin SV MCP Server
A collection of Bitcoin SV tools for the Model Context Protocol that enables AI assistants to interact with the BSV blockchain through wallet operations, ordinals (NFTs), and various blockchain utilities.
README
Bitcoin SV MCP Server
⚠️ NOTICE: Experimental Work in Progress
This project is in an early experimental stage. Features may change, and the API is not yet stable. Contributions, feedback, and bug reports are welcome! Feel free to open issues or submit pull requests.
A collection of Bitcoin SV (BSV) tools for the Model Context Protocol (MCP) framework. This library provides wallet, ordinals, and utility functions for BSV blockchain interaction.
Installation
To install dependencies:
bun install
For global installation (recommended for MCP client integration):
# Install globally with bun
bun install -g bsv-mcp
# Or with npm
npm install -g bsv-mcp
External Dependencies
For full functionality of all tools, the following additional dependencies are installed:
# For ordinal listing purchase functionality
js-1sat-ord
Running the Server
Start the MCP server:
# If installed locally
bun run index.ts
# If installed globally
bunx bsv-mcp
Connecting to MCP Clients
This server implements the Model Context Protocol (MCP), allowing AI assistants to utilize Bitcoin SV functionalities. You can connect this server to various MCP-compatible clients.
Cursor
To use the BSV MCP server with Cursor:
- Install Cursor if you haven't already
- Install this package globally:
bun install -g bsv-mcp
- Open Cursor and navigate to Settings → Extensions → Model Context Protocol
- Click "Add a new global MCP server"
- Enter the following configuration in JSON format:
{
"Bitcoin SV": {
"command": "env",
"args": [
"PRIVATE_KEY_WIF=<your_private_key_wif>",
"bunx",
"bsv-mcp"
]
}
}
- Replace
<your_private_key_wif>
with your actual private key WIF (keep this secure!) - Click "Save"
The BSV tools will now be available to Cursor's AI assistant under the "Bitcoin SV" namespace.
Claude for Desktop
To connect this server to Claude for Desktop:
- Ensure you have Claude for Desktop installed and updated to the latest version
- Install this package globally:
bun install -g bsv-mcp
- Open your Claude for Desktop configuration file:
# macOS/Linux code ~/Library/Application\ Support/Claude/claude_desktop_config.json # Windows code %APPDATA%\Claude\claude_desktop_config.json
- Add the BSV MCP server to your configuration (create the file if it doesn't exist):
{ "mcpServers": { "Bitcoin SV": { "command": "env", "args": [ "PRIVATE_KEY_WIF=<your_private_key_wif>", "bunx", "bsv-mcp" ] } } }
- Replace
<your_private_key_wif>
with your actual private key WIF - Save the file and restart Claude for Desktop
- The BSV tools will appear when you click the tools icon (hammer) in Claude for Desktop
Generic MCP Client Integration
For other MCP clients that support JSON configuration:
{
"Bitcoin SV": {
"command": "env",
"args": [
"PRIVATE_KEY_WIF=<your_private_key_wif>",
"bunx",
"bsv-mcp"
]
}
}
If running the server directly:
# Set environment variable first
export PRIVATE_KEY_WIF=<your_private_key_wif>
# Then run the server
bunx bsv-mcp
Available Tools
The toolkit is organized into several categories:
Wallet Tools
Wallet tools provide core BSV wallet functionality:
Tool Name | Description |
---|---|
wallet_getPublicKey |
Retrieves a public key for a specified protocol and key ID |
wallet_createSignature |
Creates a cryptographic signature for the provided data |
wallet_verifySignature |
Verifies a cryptographic signature against the provided data |
wallet_encrypt |
Encrypts data using a specified protocol and key |
wallet_decrypt |
Decrypts data using a specified protocol and key |
wallet_getAddress |
Returns a BSV address for the current wallet or a derived path |
wallet_sendToAddress |
Sends BSV to a specified address (supports BSV or USD amounts) |
wallet_purchaseListing |
Purchases an NFT from a marketplace listing |
BSV Tools
Tools for interacting with the BSV blockchain and network:
Tool Name | Description |
---|---|
bsv_getPrice |
Gets the current BSV price from an exchange API |
bsv_decodeTransaction |
Decodes a BSV transaction and returns detailed information |
Ordinals Tools
Tools for working with ordinals (NFTs) on BSV:
Tool Name | Description |
---|---|
ordinals_getInscription |
Retrieves detailed information about a specific inscription |
ordinals_searchInscriptions |
Searches for inscriptions based on various criteria |
ordinals_marketListings |
Retrieves current marketplace listings for inscriptions |
ordinals_bsv20MarketSales |
Gets information about BSV20 token market sales |
ordinals_getBsv20ById |
Retrieves details about a specific BSV20 token by ID |
Utility Tools
General-purpose utility functions:
Tool Name | Description |
---|---|
utils_convertData |
Converts data between different encodings (utf8, hex, base64, binary) |
Using the Tools with MCP
Once connected, you can use natural language to interact with Bitcoin SV through your AI assistant. Here are some example prompts:
Wallet Operations
- "Get my Bitcoin SV address"
- "Send 0.01 BSV to 1ExampleBsvAddressXXXXXXXXXXXXXXXXX"
- "Send $5 USD worth of BSV to 1ExampleBsvAddressXXXXXXXXXXXXXXXXX"
Ordinals (NFTs)
- "Show me information about the NFT with outpoint 6a89047af2cfac96da17d51ae8eb62c5f1d982be2bc4ba0d0cd2084b7ffed325_0"
- "Search for Pixel Zoide NFTs"
- "Show me the current marketplace listings for BSV NFTs"
Blockchain Operations
- "What is the current BSV price?"
- "Decode this BSV transaction: (transaction hex or ID)"
Data Conversion
- "Convert 'Hello World' from UTF-8 to hex format"
How MCP Works
When you interact with an MCP-enabled AI assistant:
- The AI analyzes your request and decides which tools to use
- With your approval, it calls the appropriate BSV MCP tool
- The server executes the requested operation on the Bitcoin SV blockchain
- The results are returned to the AI assistant
- The assistant presents the information in a natural, conversational way
Troubleshooting
If you're having issues connecting to the server:
- Ensure the package is properly installed:
bun install -g bsv-mcp
- Verify your WIF private key is correctly set in the environment
- Check that your client supports MCP and is properly configured
- Look for error messages in the client's console output
For Claude for Desktop, check the logs at:
tail -n 20 -f ~/Library/Logs/Claude/mcp*.log
For Cursor, check the Cursor MCP logs in Settings → Extensions → Model Context Protocol.
Development
This project was created using bun init
in bun v1.2.9. Bun is a fast all-in-one JavaScript runtime.
Package Configuration
To ensure the package can be run with bunx bsv-mcp
, make sure your package.json
includes:
{
"name": "bsv-mcp",
"bin": {
"bsv-mcp": "./index.ts"
},
"type": "module"
// ...other configuration
}
Running Tests
bun test
License
This project is licensed under the MIT License - see the LICENSE file for details.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.