Skip to main content

Setup

This section of the doc will walk through how to set up the MCP server in the AI agent of your choice that supports connecting to third-party MCP servers.

Authentication Method 1: OAuth browser flow (Claude Desktop, Cursor, Windsurf, etc.)

  1. Pre-requisite: Install Node.js on your machine.
  2. Identify the config file of the MCP client (eg. an AI agent).
  3. Add the following to the config file:
  1. Restart your MCP client. You will be redirected to a Login page where you will enter your Uniblock API key.

Authentication Method 2: API key in the connection arguments (Google ADK, OpenAI Agents SDK, LangChain/LangGraph)

  1. Pre-requisite: Install Node.js on your machine.
  2. Identify the config file of the MCP client (eg. an AI agent).
  3. Add the following to the config file:
  1. Restart your MCP client.
The Uniblock MCP server and its tools should now be available through the MCP client.

Overview

It is highly recommended that users sign up for a Uniblock API key for higher limits and usage tracking via the Dashboard. Although it is usable without a Uniblock API key, users will be subjected to heavy limits on shared resources. Not recommended for production.
The Uniblock MCP server is a way for MCP clients, like Google Gemini (and other AI Agents), to connect to the web3 tools and API endpoints that are available through the Uniblock API. With this, AI agent can now query for information regarding the blockchain using the MCP server and, combined with the power of AI, provide accurate and reliable information to users prompting for web3 data in their MCP clients. All Endpoints listed under the Unified API are supported by the MCP server. Direct API support is coming soon.