NEARpedia
Provides live NEAR blockchain knowledge and developer tooling: checks NEAR code for deprecated or removed APIs and suggests replacements, resolves NEAR packages, reports protocol upgrades and breaking changes, and exposes validator, governance, incident, project, and network-state data with sources and dates.
This server has a remotely hosted endpoint. Open its connector listing for connection details, authentication requirements, and setup instructions:
Live NEAR knowledge for AI agents. NEARpedia is an MCP server and REST API that tells a coding agent when the NEAR code it is about to write is already stale, and gives the replacement, with a source and a date on every answer. The same index serves people researching NEAR: a site and an /ask chat about protocol upgrades, House of Stake votes, validators, projects and incidents.
Built for the NEAR Hackathon (1–14 November 2026, tracks open and agents). Live at near-pedia.xyz since 2 November 2026; the MCP endpoint https://near-pedia.xyz/mcp needs no key.
Agents write NEAR code from what they remember, and NEAR keeps moving. A few changes from the last year, the first two in the weeks before this hackathon, that a model trained earlier cannot know about:
near-sdk-jsis archived and its README says "DO NOT USE".nearcore 2.14.0 removes
DelegateV2.NEAR Lake is shut down and its tutorials are gone from docs.near.org.
@near-js/*packages stopped at 2.5.1; the maintained package isnear-api-js7.x, which ships nokeyStores.
Package registries rarely flag any of this, so the agent finds out when the build or the transaction fails. The official near/agent-skills are static instructions, and nearai/near-mcp performs chain actions rather than answering what is current.
How it works
The deprecation engine is fed by six signals: archived repositories, "deprecated / do not use" in a README, npm and crates.io deprecation or yank flags, removals in release notes, the docs' own deprecation markers and deleted pages, and long-dormant packages with a live successor. Weak signals are reported as "possibly deprecated". The radar keeps only what is true now: every alert ends when its subject resolves.
Related MCP server: clewwiki
Three ways in
You want to | Go to |
Give your coding agent the tools | Connect an agent, or /for-ai for Claude.ai and ChatGPT (a custom connector, no install), Claude Desktop, Cursor, VS Code, Windsurf, Cline, Continue, Zed and JetBrains |
See what NEAR deprecated, with the evidence | |
Follow the protocol upgrade and the validator vote | |
Read House of Stake proposals and how the vote stands | |
Ask in plain words | /ask, answered by a model in a TEE on NEAR AI Cloud |
Connect an agent
claude mcp add --transport http nearpedia https://near-pedia.xyz/mcpOr, in Claude Code, the plugin: the same server plus a skill that checks NEAR code before and after writing it.
/plugin install nearpedia --marketplace UnityNodes/near-pediaThen ask Claude Code to write a NEAR contract in JavaScript with meta-transactions and to check it with the nearpedia tools: check_code names near-sdk-js and DelegateV2 with their replacements.
Codex, in ~/.codex/config.toml:
[mcp_servers.nearpedia]
url = "https://near-pedia.xyz/mcp"Cursor, in ~/.cursor/mcp.json or .cursor/mcp.json:
{
"mcpServers": {
"nearpedia": { "url": "https://near-pedia.xyz/mcp" }
}
}Claude.ai and ChatGPT take the URL as a custom connector, with no install. Claude Desktop, Cursor, VS Code, Windsurf, Cline, Continue, Zed and JetBrains each name the fields differently; near-pedia.xyz/for-ai has the exact block for each. The public endpoint allows 300 tool calls per 15 minutes per client.
Check every pull request
A GitHub Action runs check_code on the files a pull request changes and leaves one comment: each line that uses something NEAR deprecated, removed or changed, what replaces it, and the source. Add .github/workflows/nearpedia.yml:
name: NEARpedia
on: pull_request
permissions:
contents: read
pull-requests: write
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: UnityNodes/near-pedia/github-action@mainNo key is needed. Checked on 3 November 2026, near-examples/coin-flip-examples#37 adds 7 such lines: the @near-js/* packages that near-api-js 7 replaced, and dependencies a major version or more behind. To see the comment the action writes, open UnityNodes/near-pedia#5, a demo pull request that adds stale NEAR code to this repository: 12 findings in one comment and annotations on the changed lines. Inputs, outputs and a way to run it against any public pull request without installing anything are in github-action/README.md.
How common this is: on 3 November 2026, 19 of the 67 NEAR Hackathon projects with a public repository used something NEAR deprecated, removed or changed, most often keyStores and the @near-js/* packages. The method, and a script that runs the same check on any set of clones without naming anyone, are in docs/demo/hackathon-stale-count.md. The 67 repositories are not listed, so as not to single out other teams; the figure can be rerun on any set, not rechecked on the same one.
Try it against the live API
No install, no key:
# a file written from memory: three findings, each with its replacement and sources
curl -s -X POST https://near-pedia.xyz/api/v1/check-code -H 'Content-Type: application/json' \
-d '{"filename":"contract.ts","code":"import { NearBindgen } from \"near-sdk-js\";\nconst d = { DelegateV2: signed };\nconst ks = new keyStores.InMemoryKeyStore();"}'
# the mainnet protocol version, the upgrade vote by stake and the voting schedule
curl -s 'https://near-pedia.xyz/api/v1/protocol?network=mainnet' | head -c 600
# what is changing now, each alert with what ends it
curl -s https://near-pedia.xyz/api/v1/radar | head -c 600check_code answers: line 1 imports near-sdk-js, archived, use near-sdk in Rust; line 2 builds a DelegateV2 action, removed in nearcore 2.14.0, use Delegate signed with a regular access key; line 3 uses keyStores, which near-api-js 7 does not ship, use a KeyPairSigner.
Run it yourself
The judge path, from a clean clone:
git clone https://github.com/UnityNodes/near-pedia
cd near-pedia
npm ci
npm run db:init
npm run sync:near # every source is read live, about 25 minutes
npx tsx mcp-server.ts # MCP and REST on :3131, leave it runningIn another terminal:
curl -s -X POST http://127.0.0.1:3131/api/v1/check-code -H 'Content-Type: application/json' \
-d '{"filename":"contract.ts","code":"import { near } from \"near-sdk-js\";\nconst a = { DelegateV2: signed };"}'
curl -s 'http://127.0.0.1:3131/api/v1/protocol?network=mainnet' | head -c 600
curl -s -X POST http://127.0.0.1:3131/api/v1/explain-error -H 'Content-Type: application/json' \
-d '{"error_text":"wasm execution failed with error: MethodResolveError(MethodNotFound)"}'
curl -s http://127.0.0.1:3131/api/v1/contracts/intents.near | head -c 600
claude mcp add --transport http nearpedia http://127.0.0.1:3131/mcpYou see two check_code findings (near-sdk-js on line 1, DelegateV2 on line 2, each with its sources, dated where the source has a date), the mainnet upgrade with its voting dates and the share of stake that has voted, what the MethodNotFound error means and how to fix it, and the methods deployed on intents.near read live from RPC. npm run build && npm run start serves the site on :3130 from the same database. npm test runs 935 tests without network or keys; docs/TESTING.md says what each part checks.
You need
Node 22 (
better-sqlite3is built against its ABI, see.nvmrc)No key for the steps above.
NEARAI_API_KEYembeds the corpus forsemantic_search(otherwise it matches words; embedding adds about 50 minutes) and turns on/ask;GITHUB_TOKENadds the open issues and discussions of the NEAR repositories
What is done
Part | State |
Engine: SQLite with FTS5 and | inherited from the baseline (see below), rebranded. The baseline's features with no NEAR counterpart (improvement-proposal pages, whitepapers, digest, trending, glossary, foundation pages, analytics) were removed with their tools, endpoints, tables and tests |
NEAR sources | built and run against the live sources: docs.near.org (198 pages; the API reference pages, which Mintlify publishes as a one-line pointer into an OpenAPI spec, are written out from that spec with their parameters, request body and response, here and in the partner docs), npm and crates.io (90 packages with every version, deprecation and yank flags), GitHub (809 repositories in 9 NEAR orgs on 2026-11-05, archived state and README notices), releases of 10 products from nearcore to near-api-js. Every change they see is logged and served by |
Corpus and semantic search | built on 2026-11-02: 17,867 chunks from docs, the forum, blogs, videos, release notes, the catalog and GitHub, embedded with Qwen3-Embedding and reranked with Qwen3-Reranker on NEAR AI Cloud (about $0.07 for that first index). New items are embedded as they sync: 32,103 chunks on 2026-11-04 ( |
Deprecation engine | built: 136 entries on 2026-11-04, 117 from five automatic signals plus a weak dormancy signal, and 19 curated entries whose quotes are re-checked against the synced sources on every build, among them what near-api-js 7 removed or renamed from the v4 API agents remember (key stores, |
| built: one JS/TS, Rust, |
GitHub Action | built: |
RPC protocol state and validators | built: mainnet and testnet protocol and nearcore version, epoch progress, the stake-weighted upgrade vote against the threshold from RPC, and the voting schedule from the nearcore release notes, every 15 minutes; protocol-gated deprecations ( |
House of Stake and forum | built: every vote.dao proposal with its votes and the contract's own quorum and approval arithmetic, veNEAR totals, and the gov.near.org thread it is discussed in; 2,836 gov.near.org topics on 2026-11-05, the posts of the 2,289 in the governance, staking, developer, ecosystem and education categories. |
Ecosystem, incidents, partners | built: the 341 projects of NEAR Catalog on 2026-11-05 with tokens and TVL on NEAR from DefiLlama, the security incidents of NEAR protocols from DefiLlama's hacks and of catalog projects hacked elsewhere, and eight partners (NEAR Intents, the Intents Agent API, NEAR AI Cloud, NEAR Agent Market, OutLayer, Trezu, HOT, Rhea) with their mainnet contracts, GitHub and docs. |
Radar | built: protocol upgrades, House of Stake votes until they close, timelocks, HSP drafts until they go on chain, CODE_RED and security nearcore releases, NEAR incidents for 30 days, the hackathon deadline. Each alert carries its expiry and is retired on the next 15-minute run once resolved; |
| built and run against the live API on 2026-11-02: a chat that answers from this index through a model in a TEE; a follow-up sees the last three exchanges, so "and did it pass?" after a question about HSP-029 answers about HSP-029. |
MCP tool surface | built: 27 tools on the public endpoint, 12 for code, 10 for builders and 5 for everyone (the cards above). Each of the 48 handlers was called with real inputs on 2026-11-02; the 21 left out duplicate a public tool, return the baseline's template data or match loosely, and stay reachable over REST ( |
NEAR Agent Market agent | live since 2026-11-05 as NEARpedia Migrator (Dev Tools, 0.5 USDC a job, 2-hour SLA; |
Site | built and live: a home page with two ways in, |
Distribution | listed in the official MCP Registry as |
Daily database hash on NEAR | live on mainnet since 2026-11-05: the contract is |
As filled on 2026-11-02:
Source | Count |
Documentation pages: docs.near.org, the Nomicon, NEAR AI Cloud, NEAR Intents, the Intents Agent API, Trezu | 483 |
gov.near.org topics (posts read for the 2,289 in the governance, staking, developer, ecosystem and education categories) | 2,834 |
near.org and near.ai blog posts | 670 |
Videos of the NEAR Protocol, NEAR DevHub and NEAR AI channels (1,806 with a description) | 1,837 |
Release notes | 1,328 |
NEAR Catalog projects | 340 |
Open issues and open pull requests of 19 NEAR repositories (with | 2,517 and 622 |
GitHub Discussions of 6 repositories (with | 255 |
NEP standards, for | 59 |
NEAR errors with quotes re-checked against docs.near.org and the Nomicon, for | 19 |
Forum posts and GitHub bodies are stripped of their HTML and blog posts of the site's footer; videos are embedded once they have a description, releases only with notes. The first fill reads the posts of the 300 newest threads and 300 video descriptions; the schedule reads the rest (40 threads every 15 minutes, 300 descriptions a day).
app/ Next.js pages and route handlers
components/ UI components
lib/ database client, search, ranking, embeddings, parsers, shared helpers
scripts/ sync-*.ts (one per source), check-*.ts, backfills, anchor-db.ts
mcp-server.ts MCP server and REST API v1
contracts/ db-anchor, the Rust contract that records the daily database hash
plugin/ Claude Code plugin: the MCP server and the near-current skill
github-action/ the pull-request check (action.yml, no dependencies)
deploy/ systemd units, Caddyfile, sync-tick.sh, git hooks
docs/ setup (cron) and distribution notes
assets/ the images in this README
tests/ VitestWhat was built before the hackathon, and what during it
Hackathon rules count work from 19 October 2026; anything earlier is a baseline (the hackathon FAQ's items Q-001, Q-002 and Q-005). We draw the line more strictly, at the template itself.
Baseline, not hackathon work. The engine is a copy of pedia-template, the ecosystem-neutral engine we extracted from our earlier knowledge hubs CCPEDIA (Canton) and Blobpedia (Celestia). It brings the database layer, search and embeddings, the MCP and REST servers, the web UI, the sync runner and the standing checks. The repository's first commit is that copy, tagged pre-hackathon and committed on 1 November 2026. It also carries general engine maintenance made in the template on 20–21 October, nothing NEAR-specific; we count that as baseline too rather than claim it.
Hackathon work. Everything after that tag: the NEAR rebrand, the NEAR sources, the deprecation engine, check_code, the RPC, validator and House of Stake readers, the ecosystem, incident and partner data, the radar, the 27-tool MCP surface, the GitHub Action, the Agent Market migration agent, the site pages, the NEAR AI Cloud integration, the database hash contract and the distribution files. The full difference is one link (FAQ Q-003): pre-hackathon...main.
Code from our other projects. lib/retry.ts and lib/polite-fetch.ts are ported from Monpedia, our Monad knowledge hub (October 2026); the port added conditional requests.
Third-party code. Open-source libraries listed in package.json (Next.js, React, better-sqlite3, sqlite-vec, the MCP SDK, Express, zod, @nearai/inference-sdk, near-api-js and others) and contracts/db-anchor/Cargo.toml (near-sdk), each under its own license. Two Lottie animations are credited in public/animations/CREDITS.txt. The site and the images in assets/ use Space Grotesk and JetBrains Mono, both under the SIL Open Font License 1.1.
AI assistance. The code in this repository, the baseline included, was written with Claude Code.
Our other hackathon project
The team also submits Hungry Minds, an AI pet NFT that pays for its own thoughts from its own balance (tracks nfts and games). The two projects are independent and share no code (Q-015).
Not an official project
NEARpedia is an independent community project. It is not a product of the NEAR Foundation, NEAR AI or House of Stake; it reads their public sources and links back to each.
License
MIT.
Maintained by Unity Nodes.
This server cannot be deployed
Maintenance
Related MCP Connectors
Open network for AI agents to find, exchange and reuse structured knowledge via MCP and JSON.
Pay-per-use tool marketplace for AI agents. Search, price-check, and call APIs via MCP.
Hosted MCP server for live public-data APIs and Skills for AI agents.
Knowledge Network for AI Agents and creators: Search, rate, and review programming guides via MCP
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceProvides code intelligence for AI coding agents by indexing repositories into a hybrid knowledge graph, enabling agents to query dependencies, impact, and context through 28 MCP tools.4Apache 2.0
- AlicenseNot gradedqualityAmaintenanceEnables humans and AI coding agents to collaboratively write to a shared knowledge base with conflict-safe claims, code-anchored staleness detection, and synchronized human/agent documentation via MCP and REST.AGPL 3.0
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to save and retrieve code snippets, perform semantic vector search, generate code style guides and wiki documentation, and orchestrate multi-agent workflows through MCP tools.-
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to save and retrieve code snippets, run semantic vector search, generate language-specific style guides and wiki documentation, and orchestrate multi-agent documentation workflows through discoverable MCP tools.-