> For the complete documentation index, see [llms.txt](https://docs.agentipy.fun/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.agentipy.fun/key-features/easy-integration.md).

# Easy Integration

Designed with AI agents and dApps in mind, AgentiPy provides a simple and intuitive API that makes integration into existing projects seamless. Whether you're using a framework like Langchain, LlamaIndex, or building a custom agent, AgentiPy's tools and functions are easy to incorporate.

The toolkit provides Langchain-compatible tools, allowing you to directly connect blockchain functionalities to your AI agent's reasoning and action capabilities.

**New: Agentipy MCP Server for Claude Desktop**\
The Agentipy MCP Server implements the Model Context Protocol (MCP) to expose on-chain functionality directly to Claude AI via a standardized interface. Written in Python and released under the MIT license, this MCP server enables AI agents to:

* Interact with the Solana blockchain (send transactions, query accounts, manage wallets)
* Fetch price predictions and real-time data from Pyth Network
* Trade and stake tokens, deploy new tokens, and bridge assets cross-chain via deBridge
* Pull comprehensive token information—from CoinGecko’s market data to trending tokens and pool analytics

By adhering to the MCP specification, Claude Desktop can now orchestrate complex DeFi workflows and on-chain analytics seamlessly—without bespoke RPC plumbing in your agent code.

### Overview of the Agentipy MCP Server

The Agentipy MCP Server for Claude Desktop is a Python implementation of the Model Context Protocol (MCP) that provides a standardized, AI-friendly interface to the Solana blockchain. With this server, Claude AI gains the ability to perform on-chain operations—ranging from simple balance checks to complex DeFi trades—directly within its reasoning loop.

#### Features

* **Standardized MCP Interface**\
  Implements the MCP specification so Claude Desktop can discover and invoke blockchain tools via a consistent API surface.
* **Comprehensive Toolset**
  * **Transactions & Wallets:** Create, sign, and send transactions; import and manage keypairs.
  * **Account Querying:** Fetch balances, token accounts, staking positions, and NFT holdings.
  * **DeFi Actions:** Trade tokens, provide liquidity, stake/unstake, bridge assets.
  * **Market Data:** Real-time price feeds from Pyth Network; historical price queries via CoinGecko.
  * **Analytics & Trends:** Retrieve trending tokens, top gainers, pool activity, and on-chain events.
* **Easy Deployment**
  * Install via `pip install agentipy-mcp`
  * Configure endpoints and API keys in a `.env` or YAML file
  * Run the server with `agentipy-mcp serve` to expose a local HTTP MCP endpoint

#### Prerequisites

* **Python 3.8+**
* **Solana CLI** (for local keypair management)
* **API Keys** (optional but recommended for CoinGecko, Pyth, deBridge, etc.)
* **Claude Desktop** configured to point at your local MCP endpoint

```yaml
# Example .env or config.yaml
MCP_HOST: 0.0.0.0
MCP_PORT: 8080
SOLANA_RPC_URL: https://api.mainnet-beta.solana.com
COINGECKO_API_KEY: your_key_here
PTH_NETWORK_WS: wss://api.pyth.network
DEBRIDGE_API_URL: https://api.debridge.io
```
