This page walks through installing the IFÁ Labs MCP Server and connecting it to every major MCP-compatible client. The server runs locally on your machine and communicates with IFÁ Labs’ deployed oracle contracts on your behalf.Documentation Index
Fetch the complete documentation index at: https://docs.ifalabs.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before installing, confirm you have the following:- Node.js v18 or higher — the MCP server is a Node.js process. Check your version with
node --version. - npm or yarn — for installation.
- An MCP-compatible client — Claude Desktop, Cursor, Windsurf, TRAE, or any other listed in Supported MCP Clients.
No wallet, private key, or gas is required to run the IFÁ Labs MCP Server. All oracle reads are view calls — free, read-only, and require no on-chain signing.
Step 1: Install the MCP Server
- npm
- yarn
- Run without installing
Step 2: Configure Your Client
Select your MCP client below and follow the configuration steps.- Claude Desktop
- Cursor
- Windsurf
- TRAE
- Other MCP Clients
Claude Desktop supports MCP servers via a JSON configuration file.
Locate the config file
Open or create the Claude Desktop MCP configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
Restart Claude Desktop
Fully quit and relaunch Claude Desktop. The IFÁ Labs tools will appear in the tools panel on the next launch.
Configuration Options
The IFÁ Labs MCP Server accepts the following arguments:| Argument | Values | Default | Description |
|---|---|---|---|
--network | base-mainnet, base-sepolia, assetchain-testnet | base-mainnet | The network to read oracle data from |
--rpc-url | Any valid RPC URL | Network default | Override the default RPC endpoint |
--max-price-age | Integer (seconds) | 3600 | Default staleness threshold for freshness checks |
--port | Integer | 3000 | Port for SSE transport mode (if applicable) |
--log-level | silent, error, info, debug | error | Logging verbosity |
Connecting to Testnet
For development and testing against live testnet oracle data, point the server at Base Sepolia:Using with Custom Agents and Frameworks
For LangChain, CrewAI, AutoGen, or any custom MCP-compatible agent framework, the server can be connected programmatically:Windows users running programmatic integrations should use the
node command with the full path to dist/index.js in the StdioClientTransport config, or use npx with -y @ifalabs/mcp-server.Verifying the Connection
Once configured, verify the server is connected and returning live data with these test prompts in your client:| Test Prompt | Expected Behaviour |
|---|---|
| ”List all supported IFÁ Labs assets” | Returns all asset symbols and IDs via get_supported_assets |
| ”What is the current USDT/USD price from IFÁ Labs?” | Returns live price via get_asset_price |
| ”Is the CNGN/USD feed fresh?” | Returns age and freshness status via check_price_freshness |
| ”Get the ZARP/USD asset ID” | Returns 0x12373a3b1c4827c84bf6d7b11df100442695d0abfdb7a20d30a41d67d58e75a8 via get_asset_id |
Troubleshooting
ifa-mcp: command not found The global install did not complete successfully or the npm global bin directory is not in your PATH. Run npm list -g @ifalabs/mcp-server to confirm installation, then check your PATH configuration. On Windows, use the node or npx format instead.
Connection closed immediately on Windows Cursor and some other clients on Windows cannot resolve the ifa-mcp binary. Switch to the node format with the full path to dist/index.js, or use npx -y @ifalabs/mcp-server. See the Cursor tab above for exact config blocks.
Server appears in client but tools return errors Confirm the --network argument matches a supported network. Check --log-level info output for RPC connection errors.
Prices return stale or unexpected values on testnet Testnet oracle state is independent of mainnet. Prices on Base Sepolia reflect testnet relayer activity and may be less fresh than mainnet feeds during low-activity periods.
Client doesn’t recognise the server after config change Most MCP clients require a full restart — not just a settings save — to pick up configuration changes. Fully quit and relaunch your client.
Rate limit errors on the default RPC Switch to a dedicated RPC provider using --rpc-url. See the Configuration Options table above.
Next Steps
Available Tools
Full reference for every tool the IFÁ Labs MCP Server exposes.
Example Queries
Practical prompts and workflows for using IFÁ Labs via MCP clients.

