Avalanche AVAX MCP for LangChain
io.github.airpote/avalanche-docs
Search and retrieve Avalanche blockchain documentation for building on AVAX.
client:LangChain
transport:streamable-http
tools:48
Install Avalanche AVAX MCP in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"avalanche-docs": {
"transport": "streamable_http",
"url": "https://build.avax.network/api/mcp",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs
What LangChain can do once it is connected
- docs_search
- docs_fetch
- docs_list_sections
- cli_lookup_command
- rpc_lookup_method
- acp_lookup
- acp_list
- avalanche_docs_search
- avalanche_docs_fetch
- avalanche_docs_list_sections
- blockchain_lookup_transaction
- blockchain_lookup_subnet
- blockchain_lookup_chain
- blockchain_lookup_validator
- platform_get_height
- platform_get_block
- platform_get_block_by_height
- platform_get_blockchains
- platform_get_subnets
- platform_get_current_validators
- platform_get_pending_validators
- platform_get_staking_asset_id
- platform_get_min_stake
- platform_get_total_stake