kinetifi-mcp
Click on "Install 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., "@kinetifi-mcpshow me current yield opportunities on Casper and Mantle"
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.
KinetiFi Cross-Chain MCP Server (kinetifi-mcp)
A high-performance Model Context Protocol (MCP) server built with Python and FastMCP. This server coordinates cross-chain operations between the Casper Network and the Mantle Network, enabling agentic systems to scan yields, aggregate multi-chain portfolio balances, and generate intent-based execution strategies.
Features
Cross-Chain Yield Scanner: Connects to DefiLlama (for Mantle) and CSPR.cloud APIs (for Casper) to scan active DEX volumes, estimate APYs, and identify yield-generating pools.
Unified Portfolio Aggregator: Aggregates and standardizes balances for both Casper and Mantle accounts, parsing raw base units (motes/wei) into standardized, human-readable decimal strings.
Intent-Based Strategy Generator: Evaluates a user's natural language goal against their liquid holdings and active cross-chain yields to design optimal transaction paths (bridges, swaps, or stakes).
Stateless & Secure: Functions strictly as a read-only advisor. It does not handle private keys or execute transactions, adhering to KinetiFi's Zero-Trust design.
Related MCP server: Big Brain MCP
Repository Structure
kinetifi-mcp/
├── .ai_rules # Local developer instructions
├── requirements.txt # Python dependencies
├── server.py # Server entrypoint and tool registration
├── models/ # Pydantic models defining standard schemas
│ ├── execution_intent.py # Strategy intent blueprint schema
│ ├── portfolio_state.py # Cross-chain asset balance schema
│ └── yield_state.py # Cross-chain pool yield schema
├── tools/ # Sub-modules implementing individual query logic
│ ├── __init__.py
│ ├── generate_strategy.py # Strategy formulation logic
│ ├── get_portfolio_state.py# Portfolio balancer logic
│ └── scan_yields.py # DefiLlama and CSPR.cloud scanners
└── tests/ # Offline unit and integration tests
├── test_smoke.py # Basic connection tests
├── test_phase2_yields.py # Yield scanner mock assertions
├── test_phase3_portfolio.py # Portfolio state mock tests
└── test_phase4_strategy.py # Intent strategy generator testsPrerequisites
Ensure you have the following installed:
Python 3.10+ (verified on Python 3.14)
Virtual Environment Tool (
venv)MCP Host (e.g., Claude Desktop, KinetiFi Agent, or any custom client)
Installation & Setup
Navigate to the Directory:
cd /home/tmalone1250/KinetiFi_local/KinetiFi/kinetifi-mcpCreate and Activate a Virtual Environment:
python3 -m venv .venv source .venv/bin/activateInstall Dependencies:
pip install --upgrade pip pip install -r requirements.txt
Configuration
Set up your .env file in the project root to authenticate with Casper APIs:
# KinetiFi MCP Environment Variables
CSPR_CLOUD_BASE_URL=https://api.testnet.cspr.cloud
CSPR_CLOUD_API_KEY=your_cspr_cloud_api_key_hereRunning the Server
Development Mode (with Live Reload Dashboard)
fastmcp dev server.pyProduction Mode (stdio transport)
python server.pyMCP Tool Reference
kinetifi-mcp exposes 4 tools to clients:
1. get_status
Checks the server health.
Response Format:
"KinetiFi MCP Server is operational."
2. scan_yields
Aggregates live yield opportunities across Casper DEXs (e.g., Friendly Market) and Mantle L2 DEXs (e.g., Agni, Merchant Moe).
Response Format: A JSON string representing a list of cross-chain pool yields:
[ { "network": "Mantle", "dex_name": "merchant-moe", "trading_pair": "WMNT-USDT", "apy": 45.2, "pool_hash": "0x365722f12ceb2063286a268B03c654Df81B7C00F" }, { "network": "Casper", "dex_name": "Friendly Market", "trading_pair": "CSPR-USDC", "apy": 12.45, "pool_hash": "hash-abcd..." } ]
3. get_portfolio_state
Aggregates portfolio balances from Casper and Mantle addresses, converting them into standardized decimal representation.
Arguments:
casper_account(string, required): The Casper public key or account hash.mantle_account(string, required): The Mantle EVM wallet address.
Response Format:
{ "balances": [ { "network": "Casper", "asset_symbol": "CSPR", "balance": "1500.2500", "usd_value_estimate": null }, { "network": "Mantle", "asset_symbol": "USDC", "balance": "250.00", "usd_value_estimate": null } ] }
4. generate_strategy
Analyzes the aggregated portfolio and yield conditions to design a non-binding execution plan that maximizes yields or balances risks.
Arguments:
user_goal(string, required): The user's goal (e.g."Maximize yield on my Casper assets").portfolio_state(object, required): Output fromget_portfolio_state.yield_state(array, required): Output fromscan_yields.
Response Format:
{ "action_type": "bridge_and_swap", "source_network": "Casper", "target_network": "Mantle", "asset_to_deploy": "CSPR", "estimated_amount": "1500.2500", "target_protocol": "merchant-moe", "expected_apy": 45.2, "reasoning": "Matched highest available APY (45.2%) on merchant-moe by routing CSPR to Mantle L2." }
Testing
Run the test suite offline (all external API calls are fully mocked):
.venv/bin/pytest -vThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Tmalone1250/kinetifi-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server