home / mcp / chainlink feeds mcp server

Chainlink Feeds MCP Server

An MCP server that provides real-time access to Chainlink's decentralized on-chain price feeds.

Installation
Add the following to your MCP client configuration file.

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.

How to use

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.

How to install

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)

Configuration and running from the client side

{
  "mcpServers": {
    "chainlink_feeds_mcp": {
      "command": "node",
      "args": ["path/to/chainlink-feeds-mcp/index.js"],
      "env": { "INFURA_API_KEY": "your_api_key_here" }
    }
  }
}

Additional notes

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.

Available tools

getLatestPrice

Fetches the latest price for a given feed pair on a specified chain, returning price, decimals, roundId, timestamp, and related metadata.

queryPriceByRound

Retrieves price data for a specific round ID and feed on a given chain, returning the corresponding price, decimals, timestamp, and metadata.

listSupportedChains

Returns a comma-separated list of all supported blockchain networks.

listSupportedFeeds

Provides a Markdown-formatted list of all chains and their price feed names.

listSupportedFeedsByChain

Returns a comma-separated list of price feed names for a specified chain.