Chainlink Feeds MCP Server

Chainlink Feeds MCP Server

Real-time Chainlink price feeds via the Model Context Protocol.

5
Stars
5
Forks
5
Watchers
2
Issues
Provides an MCP server that enables real-time access to Chainlink’s decentralized on-chain price feeds, designed for seamless integration with AI agents and autonomous systems. Supports multiple blockchain networks and hundreds of price feeds, allowing querying of latest prices, historical data (by round ID), and discovery of supported feeds and chains. Allows configuration of custom feeds and endpoints via a JSON file, and is optimized for integration into agents using standardized MCP tools and workflows. Features tight integration with tools like Claude Desktop and MCP Inspector for both natural language and programmatic querying.

Key Features

Real-time fetching of latest price data from on-chain Chainlink feeds
Support for querying price by blockchain network and feed pair
Access to price data by round ID
Lists supported chains and price feeds
Configurable feeds and endpoints through feeds.json
Integration with Claude Desktop and other MCP clients
Markdown-formatted feed listings
Support for 9 major blockchain networks
329+ updatable price feeds
Input validation and robust environment configuration

Use Cases

Powering autonomous agents needing live asset prices for decision-making
Providing price feed data to AI assistants via natural language interfaces
Building crypto portfolio monitoring tools
Enhancing on-chain analytics platforms with real-time data
Automating trading bots with dependable market data
Supporting risk management applications that require reliable price references
Developing Web3 dashboards for real-time price querying
Feeding price information into smart contract workflows
Integrating decentralized finance (DeFi) product data pipelines
Enabling multi-chain price discovery within agent-based systems

README

Chainlink Feeds MCP Server

An MCP server that provides real-time access to Chainlink's decentralized on-chain price feeds, optimized for seamless integration into AI agents and autonomous systems

License Node.js Status

Features

  • Query Latest Price: Fetch the latest price for a specified price feed pair (e.g., FIL/ETH) on a given chain (e.g., ethereum), including price, decimals, round ID, and timestamp.
  • Query Price by Round ID: Retrieve price data for a specific round ID (currently a placeholder due to on-chain historical data limitations).
  • List Supported Chains: Get a comma-separated list of supported blockchain networks (e.g., ethereum,base).
  • List All Feeds: Retrieve a Markdown-formatted list of all chains and their price feed names (e.g., - ethereum: FIL/ETH,FDUSD/USD).
  • List Feeds by Chain: Obtain a comma-separated list of price feed names for a specific chain (e.g., FIL/ETH,FDUSD/USD for ethereum).
  • Configurable Feeds: Define price feeds and RPC endpoints in a feeds.json file, supporting multiple chains and feed categories.

Supported Chains and Feeds

The server supports 9 blockchain networks with a total of 329 price feeds, as defined in feeds.json:

  • Ethereum: 107 feeds (e.g., FIL/ETH, BTC/USD, USDC/USD)
  • BNB Chain (bsc): 80 feeds (e.g., DOT/USD, CAKE/USD, BUSD/BNB)
  • Base: 52 feeds (e.g., AXL/USD, USDC/USD, WIF/USD)
  • Starknet: 9 feeds (e.g., ETH/USD, BTC/USD, WSTETH/ETH)
  • Linea: 15 feeds (e.g., ETH/USD, FOXY/USD, MATIC/USD)
  • Mantle: 6 feeds (e.g., MNT/USD, USDT/USD, BTC/USD)
  • Scroll: 22 feeds (e.g., SCR/USD, STETH/USD, WBTC/BTC)
  • zkSync: 16 feeds (e.g., ZK/USD, PEPE/USD, TRUMP/USD)
  • Celo: 22 feeds (e.g., CELO/USD, CUSD/USD, NGN/USD)

Additional chains and feeds can be added by updating feeds.json with new network configurations and proxy addresses from Chainlink's Price Feeds documentation.

Prerequisites

  • Node.js: Version 18.x or higher.
  • npm: For dependency installation.
  • Infura API Key: Obtain a key from the MetaMask Developer Dashboard with access to supported networks (e.g., Ethereum, Base).
  • MCP Inspector (optional): For testing the server locally.
  • Claude Desktop (optional): For integration with Anthropic's Claude interface.

Installation

  1. Clone the Repository:

    bash
    git clone https://github.com/kukapay/chainlink-feeds-mcp.git
    cd chainlink-feeds-mcp
    
  2. Install Dependencies:

    bash
    npm install
    

    The project requires:

    • @modelcontextprotocol/sdk: For MCP server functionality.
    • ethers: Version 6.x for blockchain interactions.
    • zod: For input validation.
    • dotenv: For environment variable management.
  3. Configure MCP Client: To use this server with an MCP client like Claude Desktop, add the following to your config file (or equivalent):

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

Usage

The server exposes five tools via the MCP protocol, accessible through Claude Desktop (for natural language queries) or MCP Inspector (for JSON inputs). Below are the tools, with examples in both natural language (via Claude Desktop) and JSON formats.

Tool: getLatestPrice

  • Description: Fetches the latest price for a given pair on a specified chain, returns a JSON object like this:

    json
    {
      "chain": "ethereum",
      "pair": "FIL/ETH",
      "price": 0.01234,
      "decimals": 18,
      "roundId": "123456",
      "timestamp": "2025-04-17T12:00:00.000Z",
      "proxyAddress": "0x0606Be69451B1C9861Ac6b3626b99093b713E801",
      "feedCategory": "medium"
    }
    
  • Parameters:

    • pair (string): The price feed pair, e.g., FIL/ETH.
    • chain (string): The blockchain network, e.g., ethereum.
  • Natural Language Example (Claude Desktop):

    Input: "What¡¯s the latest FIL/ETH price on Ethereum?"

    Output: "The latest FIL/ETH price on Ethereum is 0.01234, with 18 decimals, round ID 123456, updated at 2025-04-17 12:00:00 UTC."

Tool: queryPriceByRound

  • Description: Queries the price for a given pair and round ID on a specified chain, returns a JSON object like this:

    json
    {
      "chain": "ethereum",
      "pair": "FDUSD/USD",
      "price": 1.0001,
      "decimals": 8,
      "roundId": "123",
      "timestamp": "2025-04-17T12:00:00.000Z",
      "proxyAddress": "0xfAA9147190c2C2cc5B8387B4f49016bDB3380572",
      "feedCategory": "medium"
    }
    
  • Parameters:

    • roundId (string): The round ID for the price data.
    • pair (string): The price feed pair, e.g., FDUSD/USD.
    • chain (string): The blockchain network, e.g., ethereum.
  • Natural Language Example (Claude Desktop):

    Input: "Can you get the FDUSD/USD price for round ID 123 on Ethereum?"

    Output: "For round ID 123, the FDUSD/USD price on Ethereum is 1.0001, with 8 decimals, updated at 2025-04-17 12:00:00 UTC. Note: This is a placeholder response due to historical data limitations."

Tool: listSupportedChains

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

  • Parameters: None.

  • Natural Language Example (Claude Desktop):

    Input: "Which blockchain networks does this server support?"

    Output: "The server supports the following networks: ethereum, bsc, base, starknet, linea, mantle, scroll, zksync, celo."

Tool: listSupportedFeeds

  • Description: Returns a Markdown list of all supported chains and their price feed names.

  • Parameters: None.

  • Natural Language Example (Claude Desktop):

    Input: "Can you list all the price feeds supported by the server?"

    Output: "Here are the supported price feeds by chain:

    • Ethereum: FIL/ETH, FDUSD/USD, UNI/ETH, ...
    • BNB Chain: DOT/USD, CAKE/USD, BUSD/BNB, ...
    • Base: AXL/USD, USDC/USD, WIF/USD, ...
    • Starknet: ETH/USD, BTC/USD, WSTETH/ETH, ...
    • Linea: ETH/USD, FOXY/USD, MATIC/USD, ...
    • Mantle: MNT/USD, USDT/USD, BTC/USD, ...
    • Scroll: SCR/USD, STETH/USD, WBTC/BTC, ...
    • zkSync: ZK/USD, PEPE/USD, TRUMP/USD, ...
    • Celo: CELO/USD, CUSD/USD, NGN/USD, ..."

Tool: listSupportedFeedsByChain

  • Description: Returns a comma-separated list of price feed names for a specified blockchain network.

  • Parameters:

    • chain (string): The blockchain network, e.g., base.
  • Natural Language Example (Claude Desktop):

    Input: "What price feeds are available on the Base chain?"

    Output: "The Base chain supports the following price feeds: AXL/USD, USDC/USD, WIF/USD, CBETH/ETH, ..."

License

This project is licensed under the MIT License.

Star History

Star History Chart

Repository Owner

kukapay
kukapay

User

Repository Details

Language JavaScript
Default Branch main
Size 47 KB
Contributors 2
License MIT License
MCP Verified Nov 12, 2025

Programming Languages

JavaScript
100%

Tags

Join Our Newsletter

Stay updated with the latest AI tools, news, and offers by subscribing to our weekly newsletter.

We respect your privacy. Unsubscribe at any time.

Related MCPs

Discover similar Model Context Protocol servers

  • Chainlist MCP Server

    Chainlist MCP Server

    Fast, structured EVM chain info for AI agents via the Model Context Protocol

    Chainlist MCP Server enables AI agents and MCP-compatible clients to quickly access and search verified EVM blockchain data. It sources data from Chainlist.org and provides efficient REST-like tools for retrieving details by chain ID or searching by keyword. The server outputs structured Markdown responses, supporting AI context integration with tabulated RPC endpoints and explorers for clarity.

    • 2
    • MCP
    • kukapay/chainlist-mcp
  • Uniswap V3 Price MCP Server

    Uniswap V3 Price MCP Server

    Real-time Uniswap V3 token price server for AI agents and DeFi automation.

    Uniswap V3 Price MCP Server delivers real-time token prices from Uniswap V3 across major EVM-compatible networks, including Ethereum, Polygon, Arbitrum, and Optimism. Optimized for AI agents and DeFi automation, it queries token prices in USD or other stablecoins, with optional conversion via CryptoCompare. The server is designed for compatibility with MCP clients, enabling seamless and standardized integrations. Environment setup is straightforward, leveraging Infura endpoints and Node.js.

    • 2
    • MCP
    • kukapay/uniswap-price-mcp
  • Hive Intelligence MCP Server

    Hive Intelligence MCP Server

    Unified MCP server delivering advanced cryptocurrency and Web3 analytics.

    Hive Intelligence MCP Server provides comprehensive cryptocurrency, DeFi, and Web3 analytics via the Model Context Protocol. It enables AI assistants to access and orchestrate over 200 specialized tools covering market data, on-chain analytics, portfolio tracking, and security analysis. The server offers both dynamic and category-specific analytics through a unified MCP interface, facilitating intelligent tool orchestration for diverse crypto data needs.

    • 7
    • MCP
    • hive-intel/hive-crypto-mcp
  • cryptopanic-mcp-server

    cryptopanic-mcp-server

    Provides real-time cryptocurrency news to AI agents via Model Context Protocol.

    cryptopanic-mcp-server delivers up-to-date cryptocurrency news to AI agents by integrating with the CryptoPanic API. It exposes an MCP-compliant server with a tool for fetching news or media headlines, supporting customization via API keys and configuration files. The implementation is intended for streamlined context integration into AI workflows, enhancing agent awareness with current crypto market updates.

    • 59
    • MCP
    • kukapay/cryptopanic-mcp-server
  • Cointelegraph MCP Server

    Cointelegraph MCP Server

    Real-time Cointelegraph news via Model Context Protocol tools

    Cointelegraph MCP Server provides real-time access to news from Cointelegraph by aggregating and serving content from 17 RSS feeds. Exposing MCP tools such as get_rss_categories and get_latest_news, it allows users and AI agents to interactively fetch categorized news articles with controllable output formatting and summary length. Optimized for seamless integration with platforms like Claude Desktop, it incorporates caching and markdown conversion for efficient and readable results.

    • 8
    • MCP
    • kukapay/cointelegraph-mcp
  • Dappier MCP Server

    Dappier MCP Server

    Real-time web search and premium data access for AI agents via Model Context Protocol.

    Dappier MCP Server enables fast, real-time web search and access to premium data sources, including news, financial markets, sports, and weather, for AI agents using the Model Context Protocol (MCP). It integrates seamlessly with tools like Claude Desktop and Cursor, allowing users to enhance their AI workflows with up-to-date, trusted information. Simple installation and configuration are provided for multiple platforms, leveraging API keys for secure access. The solution supports deployment via Smithery and direct installation with 'uv', facilitating rapid setup for developers.

    • 35
    • MCP
    • DappierAI/dappier-mcp
  • Didn't find tool you were looking for?

    Be as detailed as possible for better results