Overview
NEAR MCP is a server compatible with the Model Context Protocol (MCP) designed for interacting with the NEAR blockchain, allowing AI models to securely access and manage NEAR accounts and blockchain functionalities.
To use NEAR MCP, you can integrate it with an MCP compatible service or install it globally. Use the command npx @nearai/near-mcp@latest run to start the server or add it to your service with claude mcp add near-mcp npx -y @nearai/near-mcp@latest run.
- Account management (create, import, list, delete) - Transaction signing and execution - Token transfers - Account information retrieval - Account key management
- Managing NEAR accounts for users through AI assistants.
- Signing and sending transactions on behalf of users.
- Creating and managing access keys for NEAR accounts.
Add to your AI client
Use these steps to connect NEAR MCP in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"near-mcp-nearai": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-near-mcp-nearai"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"near-mcp-nearai": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-near-mcp-nearai"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"near-mcp-nearai": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-near-mcp-nearai"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"near-mcp-nearai": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-near-mcp-nearai"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"near-mcp-nearai": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-near-mcp-nearai"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"near-mcp-nearai": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-near-mcp-nearai"
]
}
}
}FAQ
Is NEAR MCP secure?
Yes, it runs locally and stores private keys in an unencrypted keystore, ensuring that models do not have access to private keys unless explicitly provided by the user.
Can I use NEAR MCP with any AI model?
NEAR MCP is designed to work with AI models that support the Model Context Protocol.