Used for HTTP API calls to interact with the Osmosis blockchain and related services
Used for type safety in the server implementation
Used for input validation of requests to the Osmosis blockchain
Osmosis MCP Server
A comprehensive MCP (Model Context Protocol) server for interacting with the Osmosis blockchain. This server provides AI assistants with 158 tools covering every aspect of the Osmosis ecosystem, from basic blockchain queries to advanced DeFi operations, smart contract interactions, wallet management, direct transaction execution, and testnet utilities.
Features
Core Blockchain Operations
- Query blockchain status, blocks, and transactions
- Get account balances and token information
- Retrieve chain parameters and module accounts
- Monitor epochs and network state
Liquidity Pools & Trading
- Query all pool types (Balancer, Stableswap, Concentrated Liquidity)
- Get pool information, liquidity, fees, and APR
- Estimate swaps and prepare trading transactions
- Access historical price data and trading records
Concentrated Liquidity (CL)
- Manage CL positions and liquidity ranges
- Convert between prices and ticks
- Query pool incentives and fee growth
- Prepare position creation and management transactions
Staking & Governance
- Query validators, delegations, and rewards
- Prepare staking, unstaking, and redelegation transactions
- Access governance proposals, votes, and tallies
- Get staking parameters and commission rates
DeFi & Advanced Features
- Time-Weighted Average Price (TWAP) calculations
- Token lockups and superfluid staking
- IBC denomination tracing
- MEV/arbitrage tracking via ProtoRev
Smart Contracts (CosmWasm)
- Query and execute smart contracts
- Get contract information and history
- Prepare contract instantiation and migration
- Estimate gas fees for contract operations
Token Factory
- Create custom tokens with metadata
- Mint and burn token factory denominations
- Manage token administration and parameters
Specialized Features
- Downtime detection and validator preferences
- IBC rate limiting and fee token management
🚀 NEW: Direct Transaction Execution (37 Tools)
- Bank Operations: Send tokens, multi-send transactions
- Governance: Submit proposals, vote, deposit on proposals
- Lockup & Incentives: Lock tokens, claim rewards, create gauges
- IBC Transfers: Cross-chain token transfers
- Superfluid Staking: Liquid staking with LP tokens
- Pool Operations: Create pools, advanced swaps
- Token Factory: Create custom tokens, mint/burn
- Module Administration: Parameter updates, upgrades
🔐 Wallet Management (6 Tools)
- Generate new Osmosis wallets with BIP-39 mnemonics
- Restore wallets from seed phrases
- Validate addresses and mnemonics
- Derive addresses from public keys
🧪 NEW: Testnet Utilities (3 Tools)
- Check Network Status: Verify if on testnet/mainnet with safety warnings
- Get Testnet Tokens: Complete guide to faucets and token sources
- Testnet Faucet: Direct integration with Osmosis testnet faucet
- Pool incentives and superfluid parameters
Installation
Usage
Running the Server
Configuring in Claude Desktop
- Open Claude Desktop
- Go to Settings
- Navigate to the MCP section
- Add a new server with the following configuration:
- Name: Osmosis Blockchain Server
- Command: path/to/osmosis-mcp-server/build/index.js
Available Tools
The server exposes 158 tools organized into 12 categories:
📊 Blockchain Tools (9 tools)
get-blockchain-status
- Get current blockchain statusget-account-balance
- Get token balances for an addressget-epochs
- Get epoch informationget-transaction
- Get transaction details by hashget-latest-blocks
- Get recent block informationget-token-info
- Get token metadataget-supply
- Get token supply informationget-chain-params
- Get chain parametersget-module-accounts
- Get module account information
🏊 Pool Tools (18 tools)
get-pool-info
- Get pool informationget-all-pools
- Get all liquidity poolsget-pool-spot-price
- Get current spot priceestimate-swap
- Estimate swap resultsget-incentivized-pools
- Get pools with incentivesget-pool-incentives
- Get pool incentive informationget-pool-type
- Get pool type (balancer/stableswap/CL)get-historical-prices
- Get historical price dataprepare-swap-transaction
- Prepare swap transactionget-pool-total-shares
- Get total LP sharesget-pool-liquidity
- Get pool liquidity detailsget-pool-swap-fee
- Get pool swap feesget-pool-exit-fee
- Get pool exit feesget-pool-join-exit-records
- Get join/exit historyget-pool-total-value-locked
- Get pool TVLprepare-join-pool
- Prepare join pool transactionprepare-exit-pool
- Prepare exit pool transactionget-pool-apr
- Get pool APR
🎯 Concentrated Liquidity Tools (15 tools)
get-cl-pools
- Get all CL poolsget-cl-positions
- Get CL positions for addressget-cl-position
- Get specific CL position detailsget-cl-positions-by-pool
- Get all positions in a poolget-cl-user-positions
- Get user's CL positionsprice-to-tick
- Convert price to ticktick-to-price
- Convert tick to priceget-cl-pool-incentives
- Get CL pool incentivesget-cl-pool-liquidity
- Get CL pool liquidityget-cl-pool-tick-data
- Get tick spacing and current tickget-cl-pool-fee-growth
- Get fee growth statisticsprepare-cl-create-position
- Prepare create position transactionprepare-cl-add-liquidity
- Prepare add liquidity transactionprepare-cl-remove-liquidity
- Prepare remove liquidity transactionget-cl-swap-estimates
- Get CL-specific swap estimates
🥩 Staking Tools (15 tools)
get-validators
- Get validator informationget-delegations
- Get delegations for addressget-staking-rewards
- Get pending staking rewardsget-unbonding-delegations
- Get unbonding delegationsget-validator-delegations
- Get all delegations to validatorget-validator-unbonding-delegations
- Get validator unbonding delegationsget-validator-commission
- Get validator commissionget-validator-self-delegation
- Get validator self-delegationprepare-delegate
- Prepare delegation transactionprepare-undelegate
- Prepare undelegation transactionprepare-redelegate
- Prepare redelegation transactionprepare-claim-rewards
- Prepare claim rewards transactionget-staking-params
- Get staking parametersget-slashing-params
- Get slashing parametersget-distribution-params
- Get distribution parameters
🗳️ Governance Tools (4 tools)
get-proposals
- Get governance proposalsget-proposal-details
- Get proposal detailsget-proposal-votes
- Get proposal votesget-proposal-tally
- Get proposal vote tally
💰 DeFi Tools (5 tools)
get-twap
- Get Time-Weighted Average Priceget-lockups
- Get token lockup informationget-superfluid-assets
- Get superfluid staking assetsget-denoms-by-creator
- Get token factory denoms by creatorget-ibc-denom-trace
- Get IBC token source information
📜 CosmWasm Tools (20 tools)
get-wasm-codes
- Get all uploaded WASM codesget-wasm-code-info
- Get WASM code informationget-contracts-by-code
- Get contracts by code IDget-contract-info
- Get contract metadataquery-contract-state
- Query contract stateget-contract-history
- Get contract migration historyprepare-instantiate-contract
- Prepare contract instantiationprepare-execute-contract
- Prepare contract executionprepare-migrate-contract
- Prepare contract migrationget-contract-code-id
- Get contract code IDget-contract-admin
- Get contract adminget-contract-label
- Get contract labelquery-contract-raw
- Query raw contract storageget-pinned-codes
- Get pinned code IDsget-code-metadata
- Get code metadatavalidate-contract-address
- Validate contract addressestimate-instantiate-fee
- Estimate instantiation gasestimate-execute-fee
- Estimate execution gasget-contract-ibc-port
- Get contract IBC portget-contract-events
- Get contract events
🏭 Token Factory Tools (10 tools)
get-token-factory-denoms
- Get all token factory denomsget-token-factory-denom-info
- Get token factory denom metadataget-token-factory-creator
- Get token creator addressprepare-create-token-factory-denom
- Prepare create token transactionprepare-mint-token-factory-tokens
- Prepare mint tokens transactionprepare-burn-token-factory-tokens
- Prepare burn tokens transactionprepare-change-token-factory-admin
- Prepare change admin transactionget-token-factory-params
- Get token factory parametersvalidate-token-factory-denom
- Validate token factory denomget-token-factory-total-supply
- Get token total supply
⚡ ProtoRev Tools (8 tools)
get-protorev-profits-by-denom
- Get MEV profits by denominationget-protorev-profits-by-tx
- Get MEV profits by transactionget-protorev-statistics
- Get overall MEV statisticsget-protorev-number-of-trades
- Get ProtoRev trade countget-protorev-enabled
- Check if ProtoRev is enabledget-protorev-developer-account
- Get developer accountget-protorev-max-pool-points
- Get max pool points per txget-protorev-pool-weights
- Get pool weight configuration
🔧 Specialized Tools (11 tools)
get-downtime-detector-params
- Get downtime detector parametersget-downtime-status
- Get current downtime statusget-validator-set-preference
- Get validator set preferencesget-ibc-rate-limits
- Get IBC rate limiting infoget-mint-params
- Get token minting parametersget-epoch-provisions
- Get current epoch provisionsget-all-locks-by-type
- Get locks by typeget-synthetic-locks-by-lock-id
- Get synthetic lock detailsget-fee-tokens
- Get accepted fee tokensget-pool-incentives-params
- Get pool incentives parametersget-superfluid-params
- Get superfluid parameters
🔐 Wallet Management Tools (6 tools)
generate-wallet
- Generate new Osmosis wallet with mnemonicrestore-wallet-from-mnemonic
- Restore wallet from seed phraseget-wallet-address
- Get address from mnemonicvalidate-mnemonic
- Validate BIP-39 mnemonic phrasevalidate-address
- Validate Osmosis address formatderive-address-from-pubkey
- Derive address from public key
🚀 Execution Tools (37 tools) - NEW!
Bank Operations (3 tools)
send
- Send tokens to another addressmulti-send
- Send tokens to multiple addressesset-send-enabled
- Enable/disable sending for token types
Governance Operations (4 tools)
submit-proposal
- Submit governance proposalvote-proposal
- Vote on governance proposaldeposit-proposal
- Deposit tokens to proposalclaim-community-pool
- Claim community pool rewards
Lockup & Incentive Operations (6 tools)
lock-tokens
- Lock tokens for incentive rewardsbegin-unlocking
- Start unlocking specific locked tokensbegin-unlocking-all
- Start unlocking all locked tokensunlock-period-lock
- Unlock completed period locksclaim-incentives
- Claim available incentive rewardscreate-gauge
- Create new incentive gauge
IBC Operations (4 tools)
ibc-transfer
- Transfer tokens across chainstimeout-packet
- Handle IBC packet timeoutsacknowledge-packet
- Acknowledge IBC packetsupdate-client
- Update IBC light clients
Advanced Pool Operations (8 tools)
create-pool
- Create new liquidity poolsjoin-swap-extern-amount-in
- Advanced join-swap operationsjoin-swap-share-amount-out
- Join-swap with share outputexit-swap-extern-amount-out
- Advanced exit-swap operationsexit-swap-share-amount-in
- Exit-swap with share inputcreate-cosmwasm-pool
- Create CosmWasm-based poolsstable-swap
- Perform stable asset swapsset-pool-weights
- Adjust pool weights
Superfluid Staking Operations (4 tools)
superfluid-delegate
- Delegate LP tokens via Superfluidsuperfluid-undelegate
- Undelegate Superfluid tokenslock-and-superfluid-delegate
- Lock and delegate in one txunlock-and-migrate-superfluid-tokens
- Unlock and migrate
Token Factory Advanced Operations (3 tools)
set-token-metadata
- Set custom token metadataforce-transfer
- Admin force transfer tokensset-before-send-hook
- Set token transfer hooks
Module Administration (5 tools)
update-params
- Update module parametersupgrade-proposal
- Submit software upgrade proposalcancel-upgrade
- Cancel pending upgradeset-withdrawal-address
- Set reward withdrawal addressfund-community-pool
- Fund community pool
Example Interactions
Basic Blockchain Queries
Ask Claude:
Pool and Trading Operations
Concentrated Liquidity Management
Staking and Governance
Smart Contract Interactions
Token Factory Operations
Advanced Analytics
🚀 NEW: Direct Transaction Execution
Security Notes
⚠️ UPDATED SECURITY MODEL:
- Default Network: TESTNET (for safety during execution tools testing)
- Execution Tools: Can sign and broadcast transactions directly using provided mnemonics
- Query Tools: Read-only operations, no private key handling
- Production Use: Set
OSMOSIS_NETWORK=mainnet
environment variable for mainnet - Mnemonic Handling: Mnemonics are processed in-memory only, never stored
- Testnet First: Always test with testnet before using mainnet funds
Development
Tool Categories Summary
Category | Count | Description |
---|---|---|
📊 Blockchain | 9 | Core blockchain operations and queries |
🏊 Pools | 18 | Liquidity pool management and trading |
🎯 Concentrated Liquidity | 15 | Advanced CL position management |
🥩 Staking | 15 | Validator operations and delegation |
🗳️ Governance | 4 | Proposal voting and governance |
💰 DeFi | 5 | Advanced DeFi features and analytics |
📜 CosmWasm | 20 | Smart contract interactions |
🏭 Token Factory | 10 | Custom token creation and management |
⚡ ProtoRev | 8 | MEV and arbitrage tracking |
🔧 Specialized | 11 | Advanced module features |
🔐 Wallet | 6 | Wallet generation and management |
🚀 Execution | 37 | Direct transaction execution |
Total | 158 | Complete Osmosis ecosystem coverage |
Architecture
The server is built with:
- TypeScript for type safety
- @modelcontextprotocol/sdk for MCP protocol implementation
- @cosmjs/stargate for Cosmos SDK interactions
- osmojs for Osmosis-specific operations
- axios for HTTP API calls
- zod for input validation
Each tool category is modular and can be used independently, making the server highly maintainable and extensible.
License
MIT
Tools
A comprehensive Model Context Protocol server that provides AI assistants with 158 tools for interacting with the Osmosis blockchain, covering everything from basic queries to direct transaction execution.
- Features
- Installation
- Usage
- Available Tools
- 📊 Blockchain Tools (9 tools)
- 🏊 Pool Tools (18 tools)
- 🎯 Concentrated Liquidity Tools (15 tools)
- 🥩 Staking Tools (15 tools)
- 🗳️ Governance Tools (4 tools)
- 💰 DeFi Tools (5 tools)
- 📜 CosmWasm Tools (20 tools)
- 🏭 Token Factory Tools (10 tools)
- ⚡ ProtoRev Tools (8 tools)
- 🔧 Specialized Tools (11 tools)
- 🔐 Wallet Management Tools (6 tools)
- 🚀 Execution Tools (37 tools) - NEW!
- Example Interactions
- Security Notes
- Development
- Tool Categories Summary
- Architecture
- License
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI agents to interact with 30+ Ethereum-compatible blockchain networks, providing services like token transfers, contract interactions, and ENS resolution through a unified interface.Last updated -28230252TypeScriptMIT License
- -securityFlicense-qualityA Model Context Protocol server that enables AI assistants to access Flow blockchain data and perform operations such as checking balances, resolving domains, executing scripts, and submitting transactions.Last updated -JavaScript
- -securityFlicense-qualityA Model Context Protocol server that enables AI agents to interact with the Flow blockchain through RPC calls, supporting account balances, script execution, transactions, domain resolution, and contract interactions.Last updated -82JavaScript
- -securityFlicense-qualityA comprehensive Model Context Protocol server implementation that enables AI assistants to interact with file systems, databases, GitHub repositories, web resources, and system tools while maintaining security and control.Last updated -16TypeScript