Skip to main content

Tools for AI Agents

NEAR offers multiple tools and resources to help your AI agents build and use NEAR applications. This page provides an overview of the key tools available and how to use them effectively.

llms.txt

When you need to provide your agent with a quick reference to all NEAR docs.

Open section →

Docs MCP

When you want agents to search docs in real-time for up-to-date details.

Open section →

Agent Skills

When you need your agent to become an expert in a specific task (e.g. using our API).

Open section →

NEAR MCP

When your agent needs to perform on-chain actions (e.g., transfers and function calls).

Open section →

llms.txt

What it is: Curated NEAR docs context for coding assistants.

Use it when: You need to provide your agent with a quick reference to all NEAR docs.

Link: https://docs.near.org/llms.txt

VS Code Setup

Use #fetch in your prompt:

How can I upgrade a contract state?
#fetch https://docs.near.org/llms.txt
Cursor Setup

Add docs source once in Cursor Chat:

  1. @Docs+ Add new doc
  2. Add: https://docs.near.org/llms.txt
  3. Select the source while prompting

Docs MCP endpoint

What it is: An endpoint to search NEAR documentation via MCP.

Use it when: You want agents to search docs in real-time for up-to-date details and narrower API lookups.

Link: https://docs.near.org/mcp

Use two complementary layers:

  1. Static context (llms.txt) for fast, high-signal docs grounding.
  2. Retrieval (Docs MCP) when the agent needs live lookup across docs.

NEAR Agent Skills

NEAR Agent Skills are reusable capabilities that package repeatable workflows.

Use it when: You need your agent to become an expert in specific tasks (for example, using NEAR APIs).

Link: https://github.com/near/agent-skills

SkillFocus
near-ai-cloudVerifiable private AI inference and attestation
near-api-jsJS/TS blockchain interaction, transactions, tokens, and wallet integration
near-dappdApp project setup, wallet integration, React/Next.js patterns
near-intentsCross-chain swaps via the 1Click API
near-kitTypeScript SDK with type-safe contracts and sandbox testing
near-smart-contractsRust smart contract development, security, and state management

NEAR MCP Server

The NEAR MCP Server is a tool server (currently 23 tools) that enables agents to perform blockchain operations.

Use it when: Your agent needs to hold funds, transfer funds, interact with smart contracts, or perform any action on-chain in NEAR Protocol

Repo: https://github.com/nearai/near-mcp

Remote deployment guide: https://github.com/nearai/near-mcp/blob/main/tee.md

warning

The NEAR MCP is designed to run locally or on your trusted infrastructure because it handles private keys. There is no hosted public version.