Skip to main content
langchain-dexpaprika gives a LangChain agent live DEX market data from the DexPaprika API. It is keyless: there is no signup and no environment variable to set, so your agent has DEX data across every supported blockchain (33M+ tokens, 36M+ pools) as soon as you install the package. The tools are built for LLM consumption: descriptions spell out which parameters exist and where to get their values, error messages quote the API’s own allowed-value lists so the model can self-correct, and outputs are compact JSON with long token descriptions trimmed.

Install

There are no credentials to configure. The DexPaprika API is keyless, so there is no environment variable to set.

Quickstart

This returns compact JSON with matching tokens (contract address, chain, USD price, liquidity), pools, and DEXes. search is the entry point when you only have a ticker: it resolves a symbol into a contract address and network id you can feed into the other tools.

Tools

Use the toolkit in an agent

DexPaprikaToolkit bundles all five tools over one shared HTTP client. This example drives them with an Anthropic model, so install the provider and set its key first (swap in any chat model you prefer):
The tool descriptions chain naturally: the agent starts with dexpaprika_search to resolve a ticker into a contract address and network id, then feeds those into the other tools.

Individual tools

Every tool works standalone, sync and async:

Prefer MCP or the raw API?

The MCP server exposes the same data as callable tools for Claude, Cursor, and other MCP clients: see the hosted MCP server and the MCP tools reference. For any framework we do not ship a package for yet, call the REST API directly.

Resources

FAQs

No. The DexPaprika API is keyless, so there is nothing to sign up for and no environment variable to set. A free registered key or Pro plan only raises your rate and monthly quota; see rate limits.
Any LangChain chat model. DexPaprikaToolkit().get_tools() returns standard LangChain tools, so you can pass them to create_agent with an Anthropic, OpenAI, or other provider model.
Same data, different delivery. Use langchain-dexpaprika inside a Python LangChain agent; use the hosted MCP server to expose the tools to Claude, Cursor, or any MCP client without writing code.