home / mcp / chainlink feeds mcp server
An MCP server that provides real-time access to Chainlink's decentralized on-chain price feeds.
Configuration
View docs{
"mcpServers": {
"kukapay-chainlink-feeds-mcp": {
"command": "node",
"args": [
"path/to/chainlink-feeds-mcp/index.js"
],
"env": {
"INFURA_API_KEY": "your_api_key_here"
}
}
}
}You can query Chainlink real-time price feeds through a dedicated MCP server that exposes convenient tools for AI agents and autonomous systems. This server lets you fetch the latest prices, retrieve historical round data when available, and list feeds and chains—all via MCP-compatible endpoints or clients.
Use an MCP client to call the available tools and retrieve price data for your preferred feeds. The server supports the following tools: getLatestPrice to fetch the latest price for a pair on a chosen chain, queryPriceByRound to retrieve data for a specific round ID, listSupportedChains to see all supported networks, listSupportedFeeds to view a Markdown list of feeds by chain, and listSupportedFeedsByChain to get feeds for a particular chain. You can provide inputs in natural language through MCP-enabled interfaces or in structured JSON when using an MCP Inspector.
Prerequisites you need on your machine: Node.js 18.x or higher, npm for dependency installation. Obtain an Infura API key if you plan to access networks via Infura. Optionally install MCP Inspector for local testing.
Step-by-step setup and run flow:
# 1. Clone the project
git clone https://github.com/kukapay/chainlink-feeds-mcp.git
cd chainlink-feeds-mcp
# 2. Install dependencies
npm install
# 3. Create or update your MCP client config to point to this server (see below for the example){
"mcpServers": {
"chainlink_feeds_mcp": {
"command": "node",
"args": ["path/to/chainlink-feeds-mcp/index.js"],
"env": { "INFURA_API_KEY": "your_api_key_here" }
}
}
}Environment variables shown are placeholders. Replace with your actual API key or other required values as you configure the MCP client.
If you are testing locally, you may use MCP Inspector to simulate inputs or Claude Desktop for natural-language queries, depending on your setup.
Fetches the latest price for a given feed pair on a specified chain, returning price, decimals, roundId, timestamp, and related metadata.
Retrieves price data for a specific round ID and feed on a given chain, returning the corresponding price, decimals, timestamp, and metadata.
Returns a comma-separated list of all supported blockchain networks.
Provides a Markdown-formatted list of all chains and their price feed names.
Returns a comma-separated list of price feed names for a specified chain.