Katana MCP Server
Enables seamless interaction with the Katana network for cross-chain bridging, SushiSwap trading, and Yearn vault management. It allows AI assistants to manage portfolios and execute DeFi operations across multiple networks including Ethereum, Polygon, and Arbitrum.
README
Katana MCP Server
A Model Context Protocol (MCP) server for interacting with the Katana network, providing seamless cross-chain bridging, DeFi operations, and Yearn vault management through AI assistants.
Features
Cross-Chain Bridging
- Bridge assets from Ethereum, Polygon, Arbitrum, and Base to Katana
- Automatic deposit address generation
- Support for major tokens (USDC, USDT, ETH, DAI, etc.)
SushiSwap Integration
- Get real-time swap quotes
- Execute token swaps with customizable slippage
- Support for all major tokens on Katana
Yearn Vault Management
- Deposit into yield-generating vaults
- Withdraw from vault positions
- View vault performance and user positions
Portfolio Management
- Check token balances across all assets
- Track Yearn vault positions
- Monitor transaction history
Supported Networks
| Network | Chain ID | Minimum Deposit |
|---|---|---|
| Ethereum | 1 | $50 |
| Polygon | 137 | $2.5 |
| Arbitrum | 42161 | $2.5 |
| Base | 8453 | $2.5 |
| Katana | 747474 | Destination |
Supported Tokens
Katana Native Tokens
- ETH - Ethereum
- USDC - USD Coin
- USDT - Tether USD
- WBTC - Wrapped Bitcoin
- AUSD - Aave USD
- USDS - USDS Stablecoin
Yearn Vaults Available
- yvUSDC - USDC Vault
- yvETH - ETH Vault
- yvUSDT - USDT Vault
- yvWBTC - WBTC Vault
- yvAUSD - AUSD Vault
Installation
Prerequisites
- Node.js 18.0.0 or higher
- npm or pnpm package manager
- A wallet private key with funds on supported networks
MCP Configuration
Add this server to your MCP-compatible AI assistant (like Claude Desktop):
{
"mcpServers": {
"katana-mcp": {
"command": "npx",
"args": ["katana-mcp"],
"env": {
"WALLET_PRIVATE_KEY": "your_private_key_here"
}
}
}
}
Available Tools
Bridge Assets
Tool: bridgeAssets
Bridge tokens from supported chains to Katana network.
Parameters:
asset(string): Token symbol (e.g., 'USDC', 'ETH')chain(string): Source chain ('ethereum', 'polygon', 'arbitrum', 'base')amount(string): Amount to bridge (e.g., '100')
Example Usage:
Bridge 100 USDC from Ethereum to Katana
Get Token Balances
Tool: getTokenBalances
Check your token balances on Katana network.
Parameters:
walletAddress(optional): Wallet address to check
Example Usage:
Show my token balances on Katana
Yearn Vault Operations
Get Vault Information
Tool: getYearnVaultInfo
Get detailed information about available Yearn vaults.
Example Usage:
Show me all available Yearn vaults on Katana
Deposit to Vault
Tool: depositToYearnVault
Deposit tokens into yield-generating vaults.
Parameters:
token(string): Token to deposit ('USDC', 'ETH', etc.)amount(string): Amount to depositvaultTarget(string): Target vault ('USDC', 'ETH', 'WBTC', 'USDT', 'AUSD')
Example Usage:
Deposit 1000 USDC into the USDC vault
Withdraw from Vault
Tool: withdrawFromYearnVault
Withdraw tokens from vault positions.
Parameters:
vaultAddress(string): Vault contract addressamount(string): Amount to withdrawwithdrawType(string): 'assets' or 'shares'
Get Vault Positions
Tool: getUserYearnPositions
View your current vault positions and yields.
Example Usage:
Show my Yearn vault positions
SushiSwap Integration
Get Swap Quote
Tool: getSushiQuote
Get a quote for token swaps on SushiSwap.
Parameters:
tokenIn(string): Input tokentokenOut(string): Output tokenamount(string): Amount to swapmaxSlippage(number): Maximum slippage percentage
Example Usage:
Get a quote to swap 1 ETH for USDC with 0.5% slippage
Execute Swap
Tool: executeSushiSwap
Execute a token swap on SushiSwap.
Parameters:
tokenIn(string): Input tokentokenOut(string): Output tokenamount(string): Amount to swapmaxSlippage(number): Maximum slippage percentage
Example Usage:
Swap 0.1 ETH for USDC with 2% slippage tolerance
Error Handling
The server includes comprehensive error handling for common issues:
- Insufficient Balance: Clear messages about available vs required amounts
- Network Issues: Automatic retry logic and helpful troubleshooting
- Slippage Protection: Configurable slippage tolerance with sensible defaults
- Gas Estimation: Automatic gas limit calculation with safety margins
Security Features
- Private Key Management: Secure environment variable handling
- Transaction Simulation: Pre-execution validation to prevent failed transactions
- Allowance Optimization: Efficient token approval management
- Slippage Protection: Configurable MEV protection
Local Setup
- Clone the repository
git clone https://github.com/yourusername/katana-mcp-server.git
cd katana-mcp-server
- Install dependencies
pnpm install
- Environment Configuration
Create a
.envfile in the root directory:
WALLET_PRIVATE_KEY=your_private_key_here
⚠️ Security Warning: Never commit your private key to version control. Keep your .env file secure and private.
- Build the project
pnpm run build
# or
npm run build
- Start the server
pnpm run start
# or
npm run start
Project Structure
katana-mcp-server/
├── index.ts # Main server implementation
├── dist/ # Compiled JavaScript
├── package.json # Dependencies and scripts
├── tsconfig.json # TypeScript configuration
└── README.md
Contributing
We welcome contributions! Please see our contributing guidelines:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Troubleshooting
Common Issues
"WALLET_PRIVATE_KEY not found"
- Ensure your
.envfile contains your private key - Verify the environment variable is correctly set
"Insufficient balance" errors
- Check your token balance on the source chain
- Ensure you have enough for gas fees
- Verify minimum deposit requirements are met
Transaction failures
- Try increasing slippage tolerance
- Check network congestion
- Ensure sufficient gas token balance
Bridge issues
- Verify the token is supported on the source chain
- Check minimum deposit amounts
- Ensure wallet has sufficient balance
Getting Help
- Issues: Open an issue on GitHub with detailed error messages
- Discussions: Use GitHub Discussions for questions and feature requests
- Documentation: Check this README and inline code comments
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。