Nodit MCP Server is a powerful tool that connects AI agents and developers to structured blockchain data across multiple networks through Nodit's Web3 infrastructure. It eliminates the need to handle complex node RPCs or chain-specific data structures by providing normalized multi-chain blockchain data in a format optimized for AI reasoning.
The simplest way to get started is using npx:
npx @noditlabs/nodit-mcp-server@latest
If you prefer a local build:
# Clone the repository
git clone --recurse-submodules https://github.com/noditlabs/nodit-mcp-server.git
# Move into the project directory
cd nodit-mcp-server
# Install dependencies
npm install
# Build the project
npm run build
Before starting the server, set your Nodit API key:
export NODIT_API_KEY=your-api-key
Then start the server:
node build/index.js
Once running, you can communicate with the server using JSON-RPC over stdio:
List available tools:
echo '{"method":"tools/list","params":{},"jsonrpc":"2.0","id":1}' | node build/index.js
Call a specific tool:
echo '{"method":"tools/call","params":{"name":"list_nodit_api_categories","arguments":{}},"jsonrpc":"2.0","id":1}' | node build/index.js
Add this configuration to your .cursor/mcp.json
:
{
"mcpServers": {
"nodit": {
"command": "npx",
"args": ["@noditlabs/nodit-mcp-server@latest"],
"env": {
"NODIT_API_KEY": "your-api-key"
}
}
}
}
Add the same configuration to your claude_desktop_config.json
.
# Add the Nodit MCP server
claude mcp add nodit-mcp-server npx @noditlabs/nodit-mcp-server
# Set API Key
export NODIT_API_KEY=your-api-key
# Start Claude with the Nodit MCP server enabled
claude
For a simpler setup, you can use Nodit's Remote MCP Server:
https://mcp.nodit.io/sse?apiKey=INSERT_YOUR_API_KEY
Add this to your mcp.json
:
{
"mcpServers": {
"nodit": {
"url": "https://mcp.nodit.io/sse?apiKey=INSERT_YOUR_API_KEY"
}
}
}
If you encounter problems running the MCP server with Claude Desktop:
Check your Node.js version:
node --version
Install or switch to Node.js 18+ if needed:
# Using nvm (recommended)
nvm install 20
nvm use 20
nvm alias default 20
Restart Claude Desktop after making changes
Once connected, you can query blockchain data with natural language:
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "nodit" '{"command":"npx","args":["@noditlabs/nodit-mcp-server@latest"],"env":{"NODIT_API_KEY":"****"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"nodit": {
"command": "npx",
"args": [
"@noditlabs/nodit-mcp-server@latest"
],
"env": {
"NODIT_API_KEY": "****"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"nodit": {
"command": "npx",
"args": [
"@noditlabs/nodit-mcp-server@latest"
],
"env": {
"NODIT_API_KEY": "****"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect