NEAR MCP
Official
MCP 근처
이 프로젝트는 NEAR 블록체인 과 상호 작용하기 위한 모델 컨텍스트 프로토콜( MCP ) 호환 서버입니다. 이 도구는 LLM과 AI 에이전트가 NEAR 계정 및 블록체인 기능에 안전하게 접근하고 상호 작용할 수 있는 방법을 제공합니다.
빠른 시작
다음은 claude 코드 CLI를 사용하여 near-mcp 서버를 빠르게 시작하는 방법입니다.
지엑스피1
또는 Phala Cloud에서 원격으로 MCP 서버를 배포하려면 여기에서 지침을 확인하세요.
Related MCP server: near-hydra-mcp
설치 중
near-mcp MCP 호환 클라이언트와 함께 사용해야 합니다. 자세한 내용은 MCP 문서를 참조하세요.
claude mcp add near-mcp npx @nearai/near-mcp@latest runJSON 구성을 통해 Claude Desktop에 추가:
{
"mcpServers": {
"near-mcp": {
"command": "npx",
"args": ["-y", "@nearai/near-mcp@latest", "run"],
"env": {}
}
}
}goose 에 추가
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◇ What would you like to call this extension?
│ near-mcp
│
◇ What command should be run?
│ npx @nearai/near-mcp@latest run
│
◇ Please set the timeout for this tool (in secs):
│ 60
│
◇ Would you like to add environment variables?
│ No
│
└ Added near-mcp extension또는 글로벌하게 설치하여 바로 사용할 수도 있습니다.
# Install globally
npm install -g @nearai/near-mcp@latest
# Or use directly with npx
npx @nearai/near-mcp@latest run사용 가능한 도구
사용 가능한 도구와 인수 목록은 TOOLS.md를 참조하세요.
AI 모델과의 통합
이 도구는 모델 컨텍스트 프로토콜(Model Context Protocol)을 지원하는 AI 모델과 함께 사용하도록 설계되었습니다. AI 어시스턴트는 이 도구를 통해 다음과 같은 작업을 수행할 수 있습니다.
사용자를 대신하여 NEAR 계정 관리
계좌 잔액 및 상태 확인
거래에 서명하고 전송하세요
새 계정을 만들고 액세스 키를 관리하세요
스마트 계약 검사 및 실행
보안 고려 사항
이 MCP는 로컬에서 실행되도록 설계되었습니다. 계정 개인 키는 MCP 서버가 실행 중인 암호화되지 않은 로컬 키 저장소에 저장됩니다.
기본 모델은 한 가지 예외를 제외 하고는 상호 작용하는 계정의 개인 키를 볼 수 있는 권한이 없어야 합니다.
import_account도구를 사용하면 모델이 개인 키에서 계정을 가져올 수 있습니다. 이를 위해서는 사용자가 모델에 개인 키를 제공해야 합니다.
기여하다
NEAR MCP 서버에 대한 기여를 환영합니다! 자세한 내용은 CONTRIBUTING.md 파일을 참조하세요.
문제 보고
버그를 발견하거나 기능 요청이 있는 경우 GitHub 저장소에서 이슈를 열어주세요.
Available Tools
23 toolsaccount_add_access_keyC
Add an access key to an account. This can be used to grant full access to an account, or allow the specified account to have specific function call access to a contract.
Inputs: accountId (required), accessKeyArgs (required), networkId.
account_create_accountA
Create a new NEAR account with a new account ID. The initial balance of this account will be funded by the account that is calling this tool. This account will be created with a random public key. If no account ID is provided, a random one will be generated. Ensure that mainnet accounts are created with a .near suffix, and testnet accounts are created with a .testnet suffix.
Inputs: signerAccountId (required), initialBalance (required), newAccountId, networkId.
account_create_implicit_accountA
Create an implicit account on the NEAR blockchain. An implicit account is a new random keypair that is not associated with an account ID. Instead the account ID is derived from the public key of the keypair (a 64-character lowercase hexadecimal representation of the public key). This implicit account id can be used just as a regular account id, but remember it is not an official account id with a .near or .testnet suffix. Creating implicit accounts is useful for adding new access keys to an existing account.
Inputs: networkId.
account_delete_access_keysB
Delete an access key from an account based on it's public key.
Inputs: accountId (required), publicKey (required), networkId.
account_delete_accountA
Delete an account from the NEAR blockchain. This will also remove the account from the local keystore and any associated keypair.
Inputs: accountId (required), beneficiaryAccountId (required), networkId.
account_export_accountC
Export a NEAR account from the local keystore to a file.
Inputs: accountId (required), networkId, filePath.
account_list_access_keysC
List all access keys for an given account.
Inputs: accountId (required), networkId.
account_sign_dataB
Cryptographically sign a piece of data with a local account's private key, then encode the result with the specified encoding. Outputs the curve, encoded signature, and encoding used.
Inputs: accountId (required), data (required), networkId, signatureEncoding.
account_verify_signatureB
Cryptographically verify a signed piece of data against a NEAR account's public key.
Inputs: accountId (required), data (required), signatureArgs (required), networkId.
account_view_account_summaryA
Get summary information about any NEAR account. This calls a public RPC endpoint to get this information.
Inputs: accountId (required), networkId.
contract_call_raw_functionB
Call a function of a contract as a raw function call action. This tool creates a function call as a transaction which costs gas and NEAR.
Inputs: accountId (required), contractAccountId (required), methodName (required), args (required), +3 more.
contract_call_raw_function_as_read_onlyB
Call a function of a contract as a read-only call. This is equivalent to saying we are calling a view method of the contract.
Inputs: contractId (required), methodName (required), args (required), networkId.
contract_get_function_argsB
Get the arguments of a function call by parsing the contract's ABI or by using the nearblocks.io API (as a fallback). This function API checks recent execution results of the contract's method being queried to determine the likely arguments of the function call. Warning: This tool is experimental and is not garunteed to get the correct arguments.
Inputs: contractId (required), methodName (required), networkId.
contract_view_functionsB
View available functions on a NEAR smart contract.
Inputs: contractId (required), networkId.
ref_finance_execute_swapC
Execute a swap on Ref Finance based on two tokens and a pool id. Prioritize pools with higher liquidity and better rates for the user.
Inputs: accountId (required), tokenIn (required), tokenOut (required), amount (required), +2 more.
ref_finance_get_poolsC
Search for liquidity pools on the Ref Finance exchange contract based on two tokens. Prioritize pools with higher liquidity and better rates for the user.
Inputs: tokenA (required), tokenB (required), networkId.
ref_finance_get_swap_estimateC
Get a swap estimate from the Ref Finance exchange contract based on two tokens and a pool id.
Inputs: tokenIn (required), tokenOut (required), amount (required), estimateType, +1 more.
search_near_fungible_tokensA
Search for fungible token contract information for the NEAR blockchain, based on search terms. This tool works by 'grepping' through a list of contract information JSON objects. Be careful with this tool, it can return a lot of results. Ensure that your query is specific.
Inputs: accountIDSearchTerm, symbolSearchTerm, nameSearchTerm, maxNumberOfResults.
system_import_accountB
Import an account into the local keystore. This will allow the user to use this account with other tools. Remember mainnet accounts are created with a .near suffix, and testnet accounts are created with a .testnet suffix.
Inputs: args (required).
system_list_local_keypairsA
List all NEAR accounts and their keypairs in the local keystore by network.
Inputs: networkId.
system_remove_local_accountA
Removes a local NEAR account from the local keystore. Once removed, the account will no longer be available to the user. This does not delete the account from the NEAR blockchain, it only removes the account from the local keystore.
Inputs: accountId (required), networkId.
tokens_send_ftC
Send Fungible Tokens (FT) like USDC native, USDT, WNEAR, etc. based on the NEP-141 and NEP-148 standards to an account. The signer account is the sender of the tokens, and the receiver account is the recipient of the tokens. Ensure the contract account id exists and is in the same network as the signer and receiver accounts.
Inputs: signerAccountId (required), receiverAccountId (required), fungibleTokenContractAccountId (required), amount (required), +1 more.
tokens_send_nearA
Send NEAR tokens to an account (in NEAR). The signer account is the sender of the tokens, and the receiver account is the recipient of the tokens. Remember mainnet accounts are created with a .near suffix, and testnet accounts are created with a .testnet suffix. The user is sending tokens as the signer account. Please ensure that the sender and receiver accounts are in the same network.
Inputs: signerAccountId (required), receiverAccountId (required), amount, networkId.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 23 tools
Each tool belongs to a distinct category (account, contract, ref_finance, system, tokens, search) with clear action verbs. No two tools have overlapping purposes, making it easy for an agent to select the correct one.
All tools consistently use snake_case with a domain prefix (account_, contract_, etc.) followed by a verb_noun pattern. Even the longer names like contract_call_raw_function_as_read_only adhere to this pattern.
23 tools cover account management, contract interaction, Ref Finance, token transfers, and system keystore operations. While slightly on the higher end, each tool serves a distinct purpose and the count is appropriate for the breadth of functionality.
The tool surface covers the most common NEAR operations: account lifecycle, key management, contract calling, token transfers, and Ref Finance. Minor gaps like contract deployment or staking are absent but do not hinder basic workflows.
Maintenance
Related MCP Connectors
- meok-abci-bridge-mcpDeprecatedio.github.CSOAI-ORG
MEOK ABCI Bridge MCP — read-only Tendermint / Cosmos blockchain query for agents. Built-in registry
Hosted MCP server for live Bittensor chain reads and self-custodial on-chain writes.
Discover and call AI agents via MCP. Supports A2A agents and platform agents with async tasks.
Multi-chain wallet MCP. 18 tools: balance, swap, bridge, stake, claim. Pay-per-call USDC (x402 v2).
Related MCP Servers
- AlicenseBqualityDmaintenanceFacilitates interaction with Starknet blockchain via MCP by exposing various RPC methods, allowing users to query chain states, transaction details, and block information using natural language queries.19MIT
- AlicenseNot gradedqualityDmaintenanceEnables cross-chain transactions (swap, send, balance) on 10 blockchains from a single NEAR account, designed for AI agents and humans via MCP.6Apache 2.0
- AlicenseAqualityDmaintenanceThe NEAR MCP Server enables AI agents to interact with the NEAR Protocol blockchain, providing smart contract interaction, transaction handling, and event listening with AI-driven processing.31ISC
- AlicenseNot gradedqualityDmaintenanceEnables Claude Desktop and MCP clients to interact with NEAR blockchain accounts for balance checks, account info, access keys, transaction status, and sending signed transactions.MIT