
An MCP server that provides real-time access to Chainlink's decentralized on-chain price feeds.
概览
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 - : 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. - : Retrieve price data for a specific round ID (currently a placeholder due to on-chain historical data limitations). - : Get a comma-separated list of supported blockchain networks (e.g., ethereum,base). - : Retrieve a Markdown-formatted list of all chains and their price feed names (e.g., - ethereum: FIL/ETH,FDUSD/USD). - : Obtain a comma-separated list of price feed names for a specific chain (e.g., FIL/ETH,FDUSD/USD for ethereum). - : Define price feeds and RPC endpoints in a feeds.json file, supporting multiple chains and feed categories. The server supports with a total of , as defined in feeds.json: - : 107 feeds (e.g.
README
以下为原文 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
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/USDforethereum). - Configurable Feeds: Define price feeds and RPC endpoints in a
feeds.jsonfile, 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
- Clone the Repository:
git clone https://github.com/kukapay/chainlink-feeds-mcp.git cd chainlink-feeds-mcp
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"chainlink-feeds-mcp": {
"command": "node",
"args": ["path/to/chainlink-feeds-mcp/index.js"],
"env": { "INFURA_API_KEY": "your_api_key_here" }
}
}
}