Stellar MCP & Policy Plugins
Welcome to the documentation for Stellar MCP & Policy Plugins - two powerful Stellar CLI plugins that streamline Soroban smart contract development.
What Are These Plugins?
stellar-mcp-generator
Generate production-ready MCP (Model Context Protocol) servers from deployed Soroban contracts. Create AI-powered interfaces to your smart contracts in TypeScript or Python.
stellar mcp generate --contract-id CABC... --lang typescript --output my-mcpFeatures:
- TypeScript and Python server generation
- PasskeyKit integration for smart wallet authentication
- Transaction signing with sequence staleness handling
- Claude Desktop integration for AI-assisted interaction
stellar-policy-cli
Create policy-enforced smart contracts through an interactive wizard. Add security controls like whitelists, amount caps, and rate limiting without writing Rust from scratch.
stellar policy generateFeatures:
- Interactive wizard with colored UI and progress bars
- Function, contract, and recipient whitelisting
- Amount caps and rate limiting
- Generated Makefile workflows and TypeScript bindings
Quick Start
Install the Stellar CLI
If you don’t have the Stellar CLI installed:
# macOS/Linux
curl -sSL https://stellar.org/install | bash
# Or via cargo
cargo install stellar-cliInstall the Plugins
# Clone the repository
git clone https://github.com/JoseCToscano/stellar-mcp
cd stellar-mcp
# Install MCP Generator
cd stellar-mcp-generator
cargo install --path .
# Install Policy CLI
cd ../stellar-policy-cli
cargo install --path .Verify Installation
stellar plugins --list
# Should show:
# Installed Plugins:
# mcp
# policyGenerate Your First MCP Server
stellar mcp generate \
--contract-id CBX7HKQ6WIOYAHS6SLL7Y3MRPTYOSGJTDL6XXYYOTEWEN3PRGK3DSVZG \
--network testnet \
--lang typescript \
--output my-token-mcpOr Create a Policy Contract
stellar policy generate
# Follow the interactive wizardWhy Use These Plugins?
| Benefit | Description |
|---|---|
| Save Hours | Skip boilerplate configuration and get working projects in minutes |
| Production Ready | Battle-tested patterns for transaction signing, error handling, and security |
| AI-Powered | Integrate with Claude Desktop for AI-assisted smart contract development |
| Type-Safe | Generated TypeScript bindings ensure type safety across your application |
| Best Practices | Follow Stellar ecosystem conventions out of the box |
What’s Next?
Last updated on