Case Study

NEAR Protocol: Blockchain data accessible to all via MCP

NEAR Protocol

Blockchain data has traditionally been reserved for developers with specialized knowledge of RPC calls and APIs. With the emergence of AI agents, a new need arose: how do you give intelligent systems, and ordinary users, access to on-chain data without writing code?

SAIBA developed an open source MCP server that solves precisely this problem.

NEAR Protocol MCP Server

The Challenge

NEAR Protocol is a layer-1 blockchain with a large ecosystem of applications and users. Data about transactions, accounts, and smart contracts is available, but only for those who know how to call RPC endpoints.

With AI agents increasingly needing to interact with blockchain data, there was a lack of a standardized interface.

NEAR Protocol MCP Server architecture

The Solution

We built an MCP server (Model Context Protocol) that translates natural language to NEAR RPC calls. The server runs locally (stdio) or hosted (HTTP) depending on use case, and only requires an API key for the hosted version at mcp.nearweek.com.

The server is open source and available on GitHub.

How it Works

Before: Developer → Read documentation → Write RPC call → Parse response → Use data

After: AI agent or user → Ask in natural language → MCP server → Structured response

Example: User asks: "What is the balance on this NEAR account?". MCP server calls view_account RPC and returns structured data to the agent.

NEAR Protocol MCP Server example

Results

Democratized access: Non-developers and AI agents can now access blockchain data.

Standardized interface: Follows the MCP protocol that's becoming industry standard for AI tool integration.

Dual deployment: Works as both local stdio and hosted HTTP service.

Technologies

Technology Usage
MCP (Model Context Protocol) Standardized AI tool interface
TypeScript Server implementation
NEAR RPC API Blockchain data access
HTTP/stdio Dual transport layer

Services delivered by SAIBA

  • MCP server architecture and development
  • NEAR RPC integration
  • Hosting and API management
  • Open source maintenance

Building AI agents that need to access external data?

Book a free AI action plan