mrkeyoor.com_
Wed 16 Sept 07:06 UTC
AI Toolsevaluationupdated 27 Aug 2026

context7 review

Context7 retrieves current library documentation and code examples for coding agents through a CLI, an MCP server, or an SDK. It is meant to stop an agent from relying on old API details when answering a version-specific programming question.

+273stars / 7d
Verdict

Our Context7 install and build finished in 38 seconds combined, but the 10-second test command still exited 1 in the SDK workspace. It is worth using when stale library APIs repeatedly waste agent turns and a hosted documentation index is acceptable. Skip it when you must own the crawler and parser, or when your work depends on documentation sets that the service cannot process automatically.

We ran it

Lab card: what happened when we ran context7Screenshot of context7 (context7.com)
Install✓ · 26s601 packages · 392 MB
Build✓ · 12s
Tests✗ · 10s4 passed · 0 failed of 4 (vitest)
Repo410 files~15,144 lines of source · 21.9 MB · 6 CI workflows

Answers from our run

Does context7 build from source?

Dependencies installed in 26 seconds (601 packages), and the build succeeded in 12 seconds. We cloned commit 63a40c6 into a clean Debian container with 3 CPUs and no project-specific setup.

Do context7's tests pass?

Yes: 4 of 4 passed when we ran the project's own test command (vitest). Some failures need services or credentials a bare container does not have.

Who should not use context7?

Organizations that require the entire documentation pipeline on their own infrastructure: the README says the API backend, parser, and crawler are private.

What are the alternatives to context7?

Microsoft Learn MCP Server, GitMCP, Firecrawl MCP Server. Our Context7 install and build finished in 38 seconds combined, but the 10-second test command still exited 1 in the SDK workspace.

Setup4/5One setup command, though our full test command exited 1
Docs4/5Clear client setup, tools, IDs, versions, and limitations
Community5/561,278 stars with active fixes and library requests
Maturity3/5Useful clients, but core indexing services remain private

Discussed on

  1. hnContext7 MCP Server: Up-to-date documentation for LLMs and AI code editors3 points

Who it’s for

Developers who regularly ask Cursor, Claude Code, or another coding agent about changing library APIs.
Teams that want documentation lookup through MCP without building their own crawler and index.
Agent authors who prefer a CLI, TypeScript SDK, or Vercel AI SDK tools over manual browser searches.
Maintainers willing to use Context7 library IDs and check retrieved source material before accepting generated code.

Who it’s NOT for

Organizations that require the entire documentation pipeline on their own infrastructure: the README says the API backend, parser, and crawler are private.
Developers who need guaranteed source accuracy or safety: Context7's disclaimer says community-contributed projects carry no such guarantee.
Teams indexing unusually large documentation sets without manual handling: issues #3079 and #3086 report projects too large for processing or automatic refresh.
Anyone expecting the repository's complete pnpm test command to pass unchanged in a fresh container: our run exited 1 in the SDK workspace.

Setup reality

Our sandbox installed 601 pnpm packages in 26 seconds, using 392 MB, and built the monorepo in 12 seconds. Tests exited 1 after 10 seconds. The summary recorded 4 passing tests and 0 failed tests, while the tail shows 3 failed SDK test files and ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL; it does not show why those files failed.

The user path needs Node.js 18 or newer. npx ctx7 setup uses OAuth, creates an API key, and installs either a CLI skill or MCP configuration. An API key is recommended for higher limits; manual MCP clients send it as a bearer token.

The checkout had 410 files, about 15,144 source lines, 6 CI workflows, and pnpm workspaces, but no Dockerfile or top-level tests directory. The public repository contains the MCP server and client packages, while the indexing backend, parsing engine, and crawler remain private.

Context7 gives coding agents version-specific library documentation

Context7 answers a narrow problem that shows up daily in agent-assisted programming: the model remembers an older API, invents an option, or mixes versions. The service resolves a library name to a Context7 ID, then returns documentation and examples relevant to a query. You can call it through two MCP tools, resolve-library-id and query-docs, or use the ctx7 command line when MCP is unwanted.

The README asks users to include an exact library ID and version when they know them. A prompt can name /vercel/next.js and Next.js 14, for example, which skips one matching step and narrows retrieval. That small discipline matters. A documentation service can supply current text, but the agent still needs a precise target and must apply the retrieved API correctly to the code in front of it.

One setup command installs a skill or MCP connection

npx ctx7 setup requires Node.js 18 or newer, authenticates through OAuth, creates an API key, and installs the selected integration. Flags target Cursor, Claude, or OpenCode. Manual clients connect to https://mcp.context7.com/mcp and send the key in an Authorization header. The key is recommended rather than mandatory because it raises rate limits, so a quick trial does not begin with local infrastructure.

That convenience comes from using Context7's service. The public repository contains the MCP server, CLI, TypeScript SDK, Vercel AI SDK tools, and a pi extension. Its README explicitly excludes the API backend, parsing engine, and crawling engine from the repository. A company that needs the whole ingestion path inside its own network cannot recreate the hosted product from this checkout alone.

What happened when we ran it

Our run at commit 63a40c6 installed 601 pnpm packages in 26 seconds and used 392 MB on disk. The monorepo build succeeded in 12 seconds. The checkout itself held 410 files, about 15,144 source lines, and 21.9 MB. Those figures make the client code approachable compared with many agent platforms, though 392 MB is still a meaningful dependency footprint for two simple retrieval operations.

The test command failed with exit code 1 after 10 seconds. Its top-level measurement recorded 4 passing tests and 0 failed tests. The log tail adds important detail: the pi package showed 4 passing tests, the CLI showed 254 passing tests, and the SDK showed 4 passing tests while 3 of its 4 test files were marked failed. pnpm then stopped at @upstash/context7-sdk with ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL.

The supplied tail does not include the errors that made those 3 SDK files fail. Passing assertions alongside failed files can happen for several reasons, but this log does not establish one. The responsible conclusion is limited: install and build worked in our 3-CPU, 8 GB unprivileged Node 22 sandbox, while the full repository test command did not. Our scan also found 6 CI workflow files, no Dockerfile, and no top-level tests directory.

Community indexing can be incomplete or too large

Context7 says projects in its index are community contributed and disclaims guarantees about their accuracy, completeness, or security. That is more than legal padding for an agent tool. Retrieved documentation can enter a prompt and shape code, commands, or configuration. Developers should inspect the named library, version, and returned source before accepting a change, especially for authentication, deployment, or destructive operations.

Current issues show concrete ingestion limits. Issue #3079 reports an Unreal Engine API documentation source that ended as too large to process. Issue #3086 asks maintainers to refresh a 2,829,655-token library manually because automatic refresh cannot handle it. Another report, #3071, marks a documentation crawl as failed. These are catalog records rather than client crashes, yet they determine whether a query receives current and complete material.

Library selection can also introduce ambiguity. Context7 recommends exact IDs because a general name must first be resolved. If a team depends on a small set of frameworks, pin those IDs in agent rules and include the desired version in the question. Treat an empty or weak result as a reason to open first-party documentation, not permission for the model to fill missing APIs from memory.

August fixes show activity across CLI and MCP paths

GitHub recorded the last push on August 26, 2026, with 57 combined issues and pull requests. The latest release was @upstash/context7-mcp@4.0.3, published August 21. Recent work covers Git Bash path handling, cancelled JSON-RPC batches, Codex configuration preservation, and OAuth issuer metadata. New library verification and refresh requests were also being handled in the same week.

One open pull request, #3068, says it closes an authentication bypass in which unsupported bearer values could reach the MCP handler. Because the pull request was open when fetched, its proposed validation should not be described as released protection. Security-sensitive users should check whether that change reached the version they deploy and should keep the MCP package current rather than treating a hosted URL as maintenance-free.

Context7 saves lookup time when its catalog has the right source

The product is easiest to justify for developers who ask agents many framework questions and are tired of correcting old syntax. Its two-tool MCP surface is understandable, the CLI path avoids MCP overhead, and setup completed quickly in our sandbox. The service also supports more than one coding client, so a team can keep a common documentation source while editors differ.

The limits are equally plain. You cannot self-host the complete indexing system from this repository, some large sources need intervention, and our pnpm test command exited 1 despite passing assertions in the visible summary. Context7 should be a retrieval aid with source checking, rather than an authority that turns every generated answer into verified code.

Alternatives

ProjectWhat it isPick it when
Microsoft Learn MCP ServerAn MCP server that searches official Microsoft documentation and returns cited excerpts.pick this instead when your questions are mainly about Microsoft products and first-party scope is an advantage.
GitMCPA remote MCP service that turns public GitHub repositories into documentation sources for agents.pick this instead when you need repository-specific context without depending on a curated library catalog.
Firecrawl MCP Server gh↗An MCP wrapper for searching, crawling, and extracting content from the web.pick this instead when fresh web pages matter more than a programming-library index.

Sources

  1. Context7 README
  2. Context7 MCP 4.0.3 release
  3. Large library refresh request
  4. Library too large to process report
  5. Opaque credential validation pull request

More ai tools reviews

Concat · DLSS5-Feeder · Concat · LocalMiniDrama · agents-towards-production · Marinara-Engine · the whole board →