Simplicity MCP Server
Click on "Deploy 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., "@Simplicity MCP Server compile the timelock contract and deploy it to Liquid Testnet"
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.
Simplicity MCP Server
AI-Native Development Environment for Simplicity Smart Contracts
Built with the Model Context Protocol for seamless integration with AI coding assistants
π― Overview
The Simplicity MCP Server bridges the gap between AI-powered development tools and the Simplicity smart contract language on Liquid/Elements. It provides a complete toolkit for compiling, deploying, and interacting with Simplicity contracts directly through conversational AI interfaces like Cursor.
What Makes This Special
Zero Configuration - Works out of the box with Cursor IDE
No Docker Required - Direct connection to Liquid Testnet via Esplora API
Dual Binary Architecture - Intelligent selection between compilation and signing tools
Complete Workflow - From contract writing to blockchain deployment in natural language
Production Ready - Comprehensive test suite with 100% passing rate
Related MCP server: MIDL MCP Server
π Quick Start
Prerequisites
Node.js 18+
Cursor IDE (or any MCP-compatible editor)
Rust/Cargo (for Simplicity tools)
Installation
# Clone the repository
git clone https://github.com/your-org/hackathon-satsconf-2025-mcp.git
cd hackathon-satsconf-2025-mcp
# Install dependencies
npm install
# Build and setup
npm run setup
# Restart CursorThat's it! The MCP server is now available in Cursor.
π‘ Usage Examples
Deploy a Contract
Simply ask in Cursor:
"Deploy the empty contract from examples/ to Liquid Testnet"The AI will:
β Compile the contract using
simcβ Generate the contract address
β Request funds from the testnet faucet
β Verify the deployment
β Provide the transaction details
Check Blockchain Status
"What's the current block height on Liquid Testnet?"Response: Block height: 2169092
Sign and Broadcast Transactions
"Create and sign a transaction to spend from this contract"The AI will:
β Create a PSET (Partially Signed Elements Transaction)
β Add UTXO data
β Finalize with the Simplicity program
β Extract the signed transaction
β Broadcast to the network
π οΈ Core Features
Simplicity Tools Integration
Feature | Tool Used | Description |
Compilation |
| Compile .simf files to bytecode |
Address Generation |
| Create Liquid addresses from programs |
Transaction Signing |
| PSET workflow for signing |
Blockchain Queries | Esplora API | Real-time testnet data |
Available MCP Tools (49 total)
Category | Count | Examples |
Simplicity | 17 |
|
Elements | 16 |
|
PSET Signing | 4 |
|
Testnet | 2 |
|
Helpers | 10 |
|
π¦ Example Contracts
The repository includes production-ready contract examples:
1. Empty Contract
Purpose: Simplest possible Simplicity program (always approves)
Use Case: Testing infrastructure, learning the basics
2. Timelock Contract
Purpose: Funds locked until a specific block height
Use Case: Vesting schedules, time-delayed payments
3. Hash Time Lock Contract (HTLC)
Purpose: Conditional payment with hash preimage and timeout
Use Case: Atomic swaps, Lightning Network, cross-chain trades
4. Pay-to-Multisig (P2MS)
Purpose: 2-of-3 multisignature wallet
Use Case: Corporate treasuries, joint accounts, DAOs
5. Vault Contract
Purpose: Time-delayed withdrawal protection
Use Case: Cold storage, theft protection
ποΈ Architecture
Intelligent Binary Selection
The server automatically selects the appropriate tool for each operation:
User Request β MCP Server β Tool Selection
ββ simc (compilation)
ββ hal-simplicity (general ops)
ββ hal-simplicity-signer (signing)Example Flow:
Parse program β
hal-simplicity(nums-key branch)Create PSET β
hal-simplicity-signer(pset-signer branch)Finalize PSET β
hal-simplicity-signerBroadcast β Esplora API
No Docker, No Problem
Unlike traditional setups, this server connects directly to Blockstream's public Esplora API:
β Instant setup - No blockchain sync required
β Zero maintenance - No local node to manage
β Always available - 99.9% uptime via Blockstream
β Testnet ready - Perfect for development
π Technical Highlights
Code Quality
3,500+ lines of TypeScript
109 comprehensive tests (100% passing)
Zero linter errors
Type-safe throughout
Full test coverage of critical paths
Performance
< 2 seconds for contract compilation
< 1 second for blockchain queries
Instant tool responses via MCP
Efficient caching and memoization
Developer Experience
Natural language interface via AI
Automatic error recovery and helpful messages
Step-by-step guidance for complex operations
Detailed logging for debugging
π Documentation
Getting Started
QUICKSTART - 2-minute setup guide
INSTALL_TOOLS - Toolchain installation
HACKATHON - Competition details
Advanced
DUAL_BINARY_SETUP - Binary selection guide
HAL_SIMPLICITY_BRANCHES - Branch comparison
SIMC_FEATURES - Compiler features
Examples
examples/README.md - Contract examples and tutorials
π§ Advanced Setup
Install Simplicity Toolchain
# Install simc (Simplicity compiler)
cargo install --git https://github.com/BlockstreamResearch/SimplicityHL.git
# Install hal-simplicity (general operations)
cargo install --git https://github.com/apoelstra/hal-simplicity.git \
--branch 2025-11/nums-key
# Install hal-simplicity-signer (PSET signing)
cargo install --git https://github.com/apoelstra/hal-simplicity.git \
--branch 2025-10/pset-signer \
--bin hal-simplicity
# Rename the signer binary
mv ~/.cargo/bin/hal-simplicity ~/.cargo/bin/hal-simplicity-signer
# Verify installations
simc --version
hal-simplicity --version
hal-simplicity-signer --versionThe MCP server automatically detects and uses the appropriate binary for each operation.
See DUAL_BINARY_SETUP.md for detailed information.
π§ͺ Development
Run Tests
npm test # Run all tests
npm run test:watch # Watch mode
npm run test:coverage # Coverage reportBuild
npm run build # Build TypeScript
npm run lint # Check code quality
npm run format # Format codeProject Structure
hackathon-satsconf-2025-mcp/
βββ src/
β βββ lib/
β β βββ config.ts # Configuration management
β β βββ esplora-client.ts # Esplora API client
β β βββ simplicity-tools.ts # Simplicity toolchain
β β βββ handlers.ts # MCP tool handlers
β β βββ tools.ts # MCP tool definitions
β βββ mcp-server.ts # Main server entry point
β βββ types.ts # TypeScript types
βββ examples/
β βββ contracts/ # Example Simplicity contracts
β βββ witnesses/ # Witness templates
βββ docs/ # Documentation
βββ scripts/ # Setup scriptsπ Real-World Use Cases
1. Smart Contract Development
Developers can write, compile, and test Simplicity contracts without leaving their IDE.
2. Educational Tool
Perfect for learning Simplicity - ask questions and get immediate feedback.
3. Rapid Prototyping
Test contract ideas quickly on testnet without complex setup.
4. Integration Testing
Validate contract behavior against real blockchain data.
5. Multi-Party Workflows
Enable collaborative development with PSET-based transaction signing.
π Troubleshooting
Server won't start or "No server info found" error
If you see errors like "No server info found" after restarting Cursor:
# Rebuild the project
cd /path/to/hackathon-satsconf-2025-mcp
npm run build
# Verify the configuration
cat ~/.cursor/mcp.jsonThe MCP configuration should look like this:
{
"mcpServers": {
"simplicity": {
"command": "node",
"args": [
"/absolute/path/to/hackathon-satsconf-2025-mcp/dist/mcp-server.js"
],
"env": {
"ESPLORA_API_URL": "https://blockstream.info/liquidtestnet/api"
}
}
}
}If the configuration is incorrect, run:
npm run setupThen completely restart Cursor (Cmd+Q or Ctrl+Q, then reopen).
Tools not showing in Cursor
Check
~/.cursor/mcp.jsonexists and has the correct configurationVerify the server path is correct and file exists
Restart Cursor completely (Cmd+Q or Ctrl+Q)
Check Cursor's MCP logs for errors
API Connection Issues
The server uses Blockstream's public Esplora API. If you experience issues:
Check your internet connection
Verify API status: https://blockstream.info/liquidtestnet/api
Try again in a few moments
For more help, see QUICKSTART.md.
π Innovation Highlights
First of Its Kind
First MCP server specifically designed for Simplicity
Pioneering AI-native smart contract development
Novel approach to blockchain tooling integration
Technical Achievement
Dual binary architecture with intelligent selection
Complete PSET workflow implementation
Zero-configuration deployment pipeline
Developer Impact
Reduces contract deployment time from hours to minutes
Eliminates need for Docker and local blockchain nodes
Makes Simplicity accessible to AI-assisted development
π License
MIT License - see LICENSE file for details.
π Acknowledgments
Built for the Simplicity Hackathon at SatsConf 2025.
Special Thanks To
Blockstream Research - For creating Simplicity
Andrew Poelstra - For hal-simplicity development and guidance
Model Context Protocol Team - For the MCP framework
Elements Project - For the foundation
Simplicity Community - For support and feedback
π Resources
Simplicity: https://github.com/BlockstreamResearch/simplicity
SimplicityHL: https://github.com/BlockstreamResearch/SimplicityHL
hal-simplicity: https://github.com/apoelstra/hal-simplicity
MCP Protocol: https://modelcontextprotocol.io
Liquid Network: https://liquid.net
Esplora API: https://github.com/Blockstream/esplora
Made with β‘ for the future of Bitcoin smart contracts
Documentation β’ Examples β’ Issues
Available Tools
49 toolsanalyze_simplicity_in_blockC
Analyze Simplicity usage in a block
Inputs: block_hash (required).
contract_deployB
Complete workflow: compile contract, get address, and optionally fund it
Inputs: contract_file (required), auto_fund.
contract_spendC
Spend funds from a Simplicity contract
Inputs: program (required), witness_file (required), utxo_txid, utxo_vout, +1 more.
decode_simplicity_transactionC
Extract and decode Simplicity programs from a transaction
Inputs: txid (required), output_index.
elements_decode_rawtransactionC
Decode a raw transaction hex
Inputs: hex (required).
elements_generate_blocksA
Generate blocks to a specific address (regtest/testnet only)
Inputs: address (required), nblocks (required).
elements_get_address_infoC
Get address information
Inputs: address (required).
elements_get_asset_infoC
Get asset information
Inputs: asset_id (required).
elements_get_balanceC
Get wallet balance
Inputs: account, minconf.
elements_get_blockC
Get block by hash or height
Inputs: hash, height.
elements_get_blockchain_infoC
Get blockchain information from Elements node
Inputs: no named parameters.
elements_get_block_countA
Get the current block height
Inputs: no named parameters.
elements_get_block_hashC
Get block hash by height
Inputs: height (required).
elements_get_new_addressC
Generate a new address
Inputs: label.
elements_get_pegin_addressC
Get a pegin address
Inputs: no named parameters.
elements_get_transactionC
Get transaction details
Inputs: txid (required), verbose.
elements_list_issuancesB
List all asset issuances
Inputs: no named parameters.
elements_list_transactionsC
List recent transactions
Inputs: skip, count, account.
elements_list_unspentC
List unspent transaction outputs
Inputs: address.
elements_send_to_addressC
Send amount to a given address
Inputs: amount (required), address (required), comment, comment_to.
estimate_simplicity_costC
Estimate execution cost of a Simplicity program
Inputs: program (required).
faucet_check_statusA
Check if Liquid testnet faucet is available
Inputs: no named parameters.
faucet_request_fundsC
Request LBTC from Liquid testnet faucet
Inputs: address (required), asset.
helper_extract_transactionC
Extract transaction hex from hal-simplicity output
Inputs: output (required).
helper_get_example_contractC
Get the content of an example contract
Inputs: name (required).
helper_list_example_contractsB
List available example contracts
Inputs: no named parameters.
helper_validate_addressC
Validate if a string is a valid Liquid address
Inputs: address (required).
pset_createB
Create an empty PSET (Partially Signed Elements Transaction). Uses hal-simplicity-signer (pset-signer branch). This is the first step to build and sign a Simplicity transaction.
Inputs: no named parameters.
pset_extractB
Extract the final signed transaction from a completed PSET. Uses hal-simplicity-signer (pset-signer branch). The resulting transaction can be broadcast to the network.
Inputs: pset (required).
pset_finalizeB
Finalize a PSET by attaching a Simplicity program and witness. Uses hal-simplicity-signer (pset-signer branch). This completes the signing process.
Inputs: pset (required), program (required), witness (required).
pset_update_inputA
Update a PSET input with UTXO data (txid, vout, amount, asset, scriptPubKey). Uses hal-simplicity-signer (pset-signer branch). Required before finalizing the PSET.
Inputs: pset (required), txid (required), vout (required), amount (required), +2 more.
simplicity_analyzeC
Analyze a Simplicity program's properties
Inputs: program (required).
simplicity_check_toolsA
Check if Simplicity tools (simc, hal-simplicity) are installed with detailed installation instructions
Inputs: no named parameters.
simplicity_compile_fileB
Compile a .simf file to Simplicity program using simc compiler
Inputs: file_path (required).
simplicity_compile_sourceC
Compile SimplicityHL source code to Simplicity program
Inputs: source (required).
simplicity_constructD
Construct a Simplicity expression
Inputs: expression (required), context.
simplicity_create_witnessC
Create witness template for a contract type
Inputs: contract_type (required).
simplicity_decodeC
Decode bytes to a Simplicity program
Inputs: data (required), format.
simplicity_decode_programC
Decode a Simplicity program to readable format
Inputs: program (required).
simplicity_encodeC
Encode a Simplicity program to bytes
Inputs: program (required), format.
simplicity_finalizeC
Finalize a ConstructNode to CommitNode
Inputs: construct (required).
simplicity_generate_exampleC
Generate a working Simplicity contract example based on a pattern (minimal, comparison, assertion)
Inputs: pattern (required).
simplicity_get_addressC
Get on-chain address for a Simplicity program using hal-simplicity
Inputs: program (required).
simplicity_get_featuresA
Get detailed information about supported and unsupported simc features, including working jets
Inputs: no named parameters.
simplicity_install_toolsB
Automatically install missing Simplicity tools (simc, hal-simplicity) via cargo
Inputs: no named parameters.
simplicity_suggest_fixB
Get helpful suggestions to fix a simc compilation error based on error message
Inputs: error_message (required).
simplicity_validateC
Validate a Simplicity program
Inputs: program (required).
simplicity_validate_syntaxB
Validate SimplicityHL source code syntax before compiling, with helpful error messages
Inputs: source (required).
verify_simplicity_scriptC
Verify a Simplicity script with optional witness
Inputs: program (required), witness.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 49 tools
Several tools overlap substantially: simplicity_decode vs simplicity_decode_program, simplicity_validate vs simplicity_validate_syntax vs verify_simplicity_script, and simplicity_analyze vs analyze_simplicity_in_block/estimate_simplicity_cost. Category prefixes help, but an agent must read descriptions closely to choose correctly, especially between core Simplicity, PSET, and contract workflows.
Most tools use snake_case with category prefixes (simplicity_, elements_, pset_, contract_, faucet_, helper_), but several Simplicity transaction helpers break the pattern (decode_simplicity_transaction, verify_simplicity_script, estimate_simplicity_cost, analyze_simplicity_in_block). The prefixes are readable, but there is no single consistent verb_noun convention.
49 tools is far beyond the well-scoped 3-15 range and includes many specialized variants and overlapping workflows. The breadth is real, but the set is heavy enough that selection, documentation, and maintenance all suffer.
The surface covers compile/validate/construct/finalize, address generation, PSET assembly, deploy, spend, faucet, and many Elements queries. However, there is no explicit transaction broadcast tool after PSET extraction, and some lifecycle operations such as contract listing or management are absent.
Maintenance
Related MCP Connectors
Provide AI agents and automation tools with contextual access to blockchain data including balanceβ¦
Bitcoin RPC for AI agents. 7 read tools; x402 USDC on Base mainnet. Discovery is free.
OpenAI-compatible LLM MCP (7 tools); chat via balance key or x402 USDC on Base
AI-native programming language and toolchain for accountable, verifiable agent-driven development.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI assistants to interact with RGB assets, Lightning Network operations, and Bitcoin transactions through RGB Lightning Node APIs. Supports asset management, invoice creation/payment, channel management, on-chain transactions, and asset swaps.181MIT

MIDL MCP Serverofficial
AlicenseAqualityDmaintenanceEnables AI assistants to interact with the MIDL blockchain, supporting smart contract deployment, balance queries, asset bridging, Bitcoin Rune management, and more through natural language.291MIT- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with the Solana blockchain, manage accounts and tokens, and develop and deploy smart contracts end-to-end.4MIT
- AlicenseNot gradedqualityCmaintenanceProvides AI agents with knowledge and code generation tools for building BSV blockchain applications using @bsv/simple.11 npmApache 2.0