nebula-mcp and requires no build step. You add a JSON block to your MCP config, restart Claude, and your agent has a live Stellar wallet. This guide walks you from zero to a funded, policy-enforced wallet ready for autonomous payments.
All steps below use testnet — the default network. Testnet XLM is free and Friendbot funds your wallet instantly. You can safely explore every capability without touching real funds.
Add Nebula to your MCP config
Open your MCP configuration file and add the Replace
nebula server block. The file location depends on your client:- Claude Desktop —
~/Library/Application Support/Claude/claude_desktop_config.json(macOS) or%APPDATA%\Claude\claude_desktop_config.json(Windows) - Claude Code — project
.mcp.jsonor your global MCP settings
mcp-config.json
YOUR_STELLAR_SECRET_KEY with a Stellar secret key starting with S. If you don’t have one yet, you can generate a new keypair at laboratory.stellar.org — use the Generate Keypair tool under Account Creator.After saving the file, restart Claude to load the new server.Get your Stellar address
Once Claude restarts, ask it to call the Copy the
get_address tool. This returns your wallet’s public key — the G... address you’ll use to receive funds.G... address from the response. You’ll need it to receive testnet XLM in the next step.Fund your wallet
Your wallet needs XLM to pay transaction fees and hold a minimum balance.On testnet, ask your agent to call On mainnet, you must fund the wallet manually by sending XLM from an exchange or another wallet to your
request_funding. Nebula will return a Friendbot link that credits your wallet with free testnet XLM instantly:G... address. The minimum balance required to activate a Stellar account is 1 XLM.To use USDC (required for x402 and MPP payments), your wallet also needs a USDC trustline. On testnet, you can get test USDC from the Circle faucet after your account is funded.
Check your balance
Verify your wallet is funded and ready:Your agent will return the current XLM and USDC balances on the configured network. If the XLM balance is greater than zero, your wallet is active and your spending policy is live.
Open the wallet dashboard
The dashboard renders an interactive UI directly inside chat — balances, spending limits, treasury status, active MPP session, and 8004 identity at a glance:
The interactive dashboard requires MCP Apps support. It renders fully in Claude Desktop. In environments that don’t support MCP Apps, Nebula returns the same information as formatted text.
First commands to try
Once your wallet is funded, explore what your agent can do:Testnet vs mainnet
| Testnet | Mainnet | |
|---|---|---|
| Default | ✓ (no config needed) | Set NETWORK=mainnet |
| Free XLM | ✓ via Friendbot (request_funding) | Fund manually from exchange |
| Test USDC | ✓ via Circle testnet faucet | Real USDC |
| Blend yield | Testnet pools | Verify pool availability before use |
| Stellar8004 | Testnet contracts | Mainnet contracts |
Installation options
| Option | Best for |
|---|---|
Option A — npx via MCP config (recommended) | Most users. No install, no build step. |
Option B — .mcpb one-click installer | Claude Desktop users without terminal access. Double-click nebula.mcpb and enter your secret key in the wizard. |
| Option C — Build from source | Contributors and advanced users who want to run from source. Clone the repo and follow the instructions in INSTALL.md. |
Next steps
Tools Reference
Explore all 23 tools — parameters, what they do, and example prompts.
Configuration
Tune your spending limits, treasury settings, and agent identity metadata.