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:
@→Docs→+ Add new doc- Add:
https://docs.near.org/llms.txt - 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:
- Static context (
llms.txt) for fast, high-signal docs grounding. - 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
| Skill | Focus |
|---|---|
| near-ai-cloud | Verifiable private AI inference and attestation |
| near-api-js | JS/TS blockchain interaction, transactions, tokens, and wallet integration |
| near-dapp | dApp project setup, wallet integration, React/Next.js patterns |
| near-intents | Cross-chain swaps via the 1Click API |
| near-kit | TypeScript SDK with type-safe contracts and sandbox testing |
| near-smart-contracts | Rust 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
The NEAR MCP is designed to run locally or on your trusted infrastructure because it handles private keys. There is no hosted public version.