Developer-docs MCP server

Context7 MCP

Version history of discovered tools, schemas, and declared agent authority.

View watchlist

DistributionDistribution: npm
Package@upstash/context7-mcp
Latest analyzed version4.7.0
Current tool count2
Latest analysisNov 13, 2026
Package source

OBSERVED INTERFACE

Capability surface

Modelara’s observed declarations are shown separately from its derived effect classifications.

7 releases analyzed4.4.2 → 4.7.0Latest: 4.7.0
  • read2
  • write0
  • destructive0
  • unknown0

Unknown means Valyd could not determine the capability's effect confidently from the declared interface and static evidence. It is not treated as safe.

Package
@upstash/context7-mcp@4.7.0
Registry
npm
Published
Nov 12, 2026
Integrity
sha512-t3Jqm0hGQtkZvx5mwrBZMEiedqhmltVwhOiFKgnzDBcOXUZNqtVSQShaBLmUNVjsIRoV202THb/BEYlJF5Dajg==
Analyzer
modelara v0.1.8 · policy not recorded
Repository
https://github.com/upstash/context7

2 capabilities

CapabilityTypeDerived effectFirst observed in Valyd coverageLast changed
query-docscontext7:tool:query-docs
Observed interface and hashes

Retrieves and queries up-to-date documentation and code examples from Context7 for any programming library or framework. You must call 'Resolve Context7 Library ID' tool first to obtain the exact Context7-compatible library ID required to use this tool, UNLESS the user explicitly provides a library ID in the format '/org/project' or '/org/project/version' in their query. Do not call this tool more than 3 times per question. If you know the programming language the user is working in, pass it as `language` so the results match their setup.

Input schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "language": {
      "description": "Programming language the user is writing code in, such as 'Python', 'TypeScript', 'Go', or 'C#'. Ranks code examples in that language first. Leave it out when the language is unknown or does not apply.",
      "type": "string"
    },
    "libraryId": {
      "description": "Exact Context7-compatible library ID (e.g., '/mongodb/docs', '/vercel/next.js', '/supabase/supabase', '/vercel/next.js/v16.2.9') retrieved from 'resolve-library-id' or directly from user query in the format '/org/project' or '/org/project/version'.",
      "type": "string"
    },
    "query": {
      "description": "What to look up in the library's documentation, scoped to a single concept. Be specific and include relevant details, but keep each query to one topic — if the user's question spans multiple distinct concepts, make a separate call per concept instead of combining them, unless the question is about how the concepts interact. Good: 'How to set up authentication with JWT in Express.js' or 'React useEffect cleanup function examples'. Bad (too vague): 'auth' or 'hooks'. Bad (too broad): 'routing and auth and caching in Next.js'. The query is sent to the Context7 API for processing. Do not include any sensitive or confidential information such as API keys, passwords, credentials, personal data, or proprietary code in your query.",
      "type": "string"
    }
  },
  "required": [
    "libraryId",
    "query"
  ],
  "type": "object"
}
sha256:6562d43255340690a9c6ca18aacc2a2209e8fd47b1f07ca1c08ff52632a4fd8b

Output schema

Not exposed in the analyzed interface.

sha256:398b676e47d03a29016ee92fe378b8b4f1b3e965390c4c64ce78d27f79df74d1

Description hash: sha256:986083342f812ebbef73de8617638841779d71104da38eb4ea01eb06c0cf4f13

Interface hash: sha256:3b36ca6e0c2dcfff21974d31f785132281e756e8f848b196e994054799b80b70

Other observed Modelara metadata
{
  "id": "mcp:Context7/query-docs",
  "title": "Query Documentation",
  "source": {
    "type": "mcp",
    "server": "Context7",
    "operation": "query-docs"
  },
  "declared": {
    "read_only": "true",
    "destructive": "false",
    "idempotent": "true",
    "open_world": "true"
  },
  "safety": {
    "idempotent": "true",
    "retry_safe": "true"
  },
  "metadata": {
    "mcp.annotations": "present"
  },
  "fingerprint": "sha256:953e4cb775747a1b9632e285f35a43a7a9b0f7e9b05226878ce1f9ae6d5108c5"
}
toolread4.4.2No change observed
resolve-library-idcontext7:tool:resolve-library-id
Observed interface and hashes

Resolves a package/product name to a Context7-compatible library ID and returns matching libraries. You MUST call this function before 'Query Documentation' tool to obtain a valid Context7-compatible library ID UNLESS the user explicitly provides a library ID in the format '/org/project' or '/org/project/version' in their query. Each result includes: - Library ID: Context7-compatible identifier (format: /org/project) - Name: Library or package name - Description: Short summary - Code Snippets: Number of available code examples - Source Reputation: Authority indicator (High, Medium, Low, or Unknown) - Benchmark Score: Quality indicator (100 is the highest score) - Versions: List of versions if available. Use one of those versions if the user provides a version in their query. The format of the version is /org/project/version. For best results, select libraries based on name match, source reputation, snippet coverage, benchmark score, and relevance to your use case. Selection Process: 1. Analyze the query to understand what library/package the user is looking for 2. Return the most relevant match based on: - Name similarity to the query (exact matches prioritized) - Description relevance to the query's intent - Documentation coverage (prioritize libraries with higher Code Snippet counts) - Source reputation (consider libraries with High or Medium reputation more authoritative) - Benchmark Score: Quality indicator (100 is the highest score) Response Format: - Return the selected library ID in a clearly marked section - Provide a brief explanation for why this library was chosen - If multiple good matches exist, acknowledge this but proceed with the most relevant one - If no good matches exist, clearly state this and suggest query refinements For ambiguous queries, request clarification before proceeding with a best-guess match. IMPORTANT: Do not call this tool more than 3 times per question. If you cannot find what you need after 3 calls, use the best result you have.

Input schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "libraryName": {
      "description": "Library name to search for and retrieve a Context7-compatible library ID. Use the official library name with proper punctuation — e.g., 'Next.js' instead of 'nextjs', 'Customer.io' instead of 'customerio', 'Three.js' instead of 'threejs'.",
      "type": "string"
    },
    "query": {
      "description": "What to look up in the library's documentation. This is used to rank library results by relevance to what the user is trying to accomplish. The query is sent to the Context7 API for processing. Do not include any sensitive or confidential information such as API keys, passwords, credentials, personal data, or proprietary code in your query.",
      "type": "string"
    }
  },
  "required": [
    "query",
    "libraryName"
  ],
  "type": "object"
}
sha256:14a10ce0f1058af314bd1e05b1825c8e0b53bf823a1422ecc9f6f91448931215

Output schema

Not exposed in the analyzed interface.

sha256:398b676e47d03a29016ee92fe378b8b4f1b3e965390c4c64ce78d27f79df74d1

Description hash: sha256:78c7c974ed37be7cf1a9cbd5cc230a651c005cfc560ad9c4aa6bebc02a07eadd

Interface hash: sha256:332b65586665885332d42f0809fc055e601b90410a843eebbf55606358748e27

Other observed Modelara metadata
{
  "id": "mcp:Context7/resolve-library-id",
  "title": "Resolve Context7 Library ID",
  "source": {
    "type": "mcp",
    "server": "Context7",
    "operation": "resolve-library-id"
  },
  "declared": {
    "read_only": "true",
    "destructive": "false",
    "idempotent": "true",
    "open_world": "true"
  },
  "safety": {
    "idempotent": "true",
    "retry_safe": "true"
  },
  "metadata": {
    "mcp.annotations": "present"
  },
  "fingerprint": "sha256:91133ce1a1fb92fe9fc5aa9923f733c4056b59a258ab742fcef2c7acbb7acb47"
}
toolread4.4.2No change observed

STATIC COMPARISONS

Release history

6 release transitions
  1. 0 added0 removed0 schema0 write0 destructive0 unknown

    Nov 13, 2026· Automated static analysis

  2. 0 added0 removed0 schema0 write0 destructive0 unknown

    Nov 10, 2026· Automated static analysis

  3. 0 added0 removed0 schema0 write0 destructive0 unknown

    Nov 8, 2026· Automated static analysis

  4. 0 added0 removed0 schema0 write0 destructive0 unknown

    Nov 3, 2026· Automated static analysis

  5. 0 added0 removed0 schema0 write0 destructive0 unknown

    Nov 1, 2026· Automated static analysis

  6. 0 added0 removed0 schema0 write0 destructive0 unknown

    Nov 1, 2026· Automated static analysis