Skip to main content
Glama
Timwal78

ScriptDocs MCP Server

ScriptDocs MCP Server

A Model Context Protocol (MCP) server that gives AI coding agents real, live, source-cited documentation for npm and PyPI packages — pulled directly from registry.npmjs.org and pypi.org at call time.

Built by ScriptMaster Labs.

What this actually does (and doesn't)

Every tool call makes a real HTTP request to the actual registry. There is no cached demo data, no fabricated example output, and no guessing. If a package or its docs can't be found, the tool returns an explicit error — never a plausible-looking made-up answer. Every successful response includes source_url and fetched_at so the caller can verify exactly where the data came from and how fresh it is.

Not yet built (honest status, not hype):

  • Payment/licensing (Stripe, API keys, usage tiers) — this is scaffolding work that needs your real Stripe account and pricing decisions. Nothing in this repo simulates a working payment system.

  • GitHub-source doc fetching beyond README/long-description (e.g. specific guide pages, versioned doc sites) — README/long-description only in v0.1.

Related MCP server: docs-mcp-server

Tools

Tool

What it does

docs_get_package_info

Live metadata: latest version, description, homepage, repo — npm, PyPI, or Cargo (crates.io), right now.

docs_get_readme

The verbatim README (npm), long description (PyPI), or README-derived text (Cargo — see note below) for a package/version.

docs_search_docs

Keyword search inside a package's real docs (any of the 3 ecosystems, optionally a specific version), returns verbatim matching snippets with context — not a summary.

docs_check_vulnerabilities

Checks a specific package+version against OSV.dev. When a fix exists, automatically fetches that fixed version's README in the same call — "here's what's wrong" and "here's what upgrading looks like," one round trip.

docs_resolve_library

Fuzzy name → real candidates, via npm's and crates.io's actual search APIs. PyPI has no official search API (confirmed: XML-RPC search was killed in 2022, never replaced) — calling this for PyPI returns an honest explanation, not a scraped or fabricated result.

Note on Cargo READMEs: crates.io stores READMEs pre-rendered as HTML, not the original markdown source — there's no raw-source endpoint. docs_get_readme/docs_search_docs return that HTML converted to plain text (tags stripped, entities decoded) — a mechanical transformation, not a summary; no content is invented or dropped.

Project layout

scriptdocs-mcp-server/
├── package.json
├── tsconfig.json
├── Dockerfile
├── src/
│   ├── index.ts          # server entry point, transport selection
│   ├── constants.ts
│   ├── types.ts
│   ├── services/
│   │   ├── npm.ts        # real npm registry client
│   │   ├── npmSearch.ts  # real npm search API (fuzzy resolution)
│   │   ├── pypi.ts       # real PyPI registry client (supports version pinning)
│   │   ├── cargo.ts      # real crates.io client (metadata, readme, search)
│   │   ├── osv.ts        # real OSV.dev vulnerability database client
│   │   ├── versionCompare.ts  # best-effort numeric version comparator
│   │   ├── access.ts     # founder always-free guarantee
│   │   └── docSearch.ts  # keyword/snippet extraction over fetched text
│   └── tools/
│       ├── getPackageInfo.ts
│       ├── getReadme.ts
│       ├── searchDocs.ts
│       ├── checkVulnerabilities.ts
│       └── resolveLibrary.ts
└── dist/                 # build output (git-ignored)

Run it locally (stdio — for Claude Desktop / Cursor)

npm install
npm run build
node dist/index.js

To wire it into Claude Desktop or Cursor, point their MCP config at:

{
  "mcpServers": {
    "scriptdocs": {
      "command": "node",
      "args": ["/absolute/path/to/scriptdocs-mcp-server/dist/index.js"]
    }
  }
}

Run it as a remote server (HTTP — for Render, same pattern as your other services)

npm install
npm run build
TRANSPORT=http PORT=3000 node dist/index.js
  • Health check: GET /health

  • MCP endpoint: POST /mcp

Deploy to Render

The included Dockerfile builds and runs the HTTP transport. Point a Render Web Service at this repo with:

  • Environment: Docker

  • Health check path: /health

This mirrors how mcp-x402 and squeezeos-api are already deployed.

Verified working (tested against live registries and APIs)

  • v0.3.1 fixed a real published-package bug: dist/index.js had no #!/usr/bin/env node shebang and wasn't marked executable, so running it as a bin (exactly what npx/Claude Code do) failed — on Linux with a shell syntax error, and this was very likely the cause of the "Failed to connect" a real Windows user hit via Claude Code. Root cause confirmed by directly executing the packed tarball's bin file before and after the fix, not assumed. postbuild now runs chmod +x dist/index.js so this can't silently regress.

  • docs_get_package_infoexpress (npm), serde (cargo) returned real current metadata straight from their respective registries.

  • docs_get_readmezod (npm, jsDelivr fallback), requests (PyPI, latest + version-pinned), and serde (cargo) all returned real README content. The cargo path hit a real bug during testing — crates.io's README endpoint varies its response by Accept header and was returning a JSON pointer instead of HTML — caught and fixed, verified again after the fix.

  • docs_search_docs → keyword search over real docs verified across npm and cargo.

  • docs_check_vulnerabilitiesexpress@4.17.1 correctly returned 2 real advisories (incl. CVE-2024-43796) and automatically fetched the real README for 4.20.0 (the fixed version) in the same call — the vuln-to-fix bridge, verified working end-to-end.

  • docs_resolve_library → real fuzzy search verified for npm ("react" → react, react-is, ...) and cargo ("http client" → real candidates). PyPI correctly returns an honest limitation message instead of a fabricated result (verified: PyPI has had no official search API since 2022).

  • Nonexistent package name → correctly returns an explicit isError: true response instead of fabricating a plausible answer.

  • Both stdio and TRANSPORT=http modes verified against the actual MCP JSON-RPC protocol (initialize, tools/list, tools/call).

Founder always-free guarantee

ScriptMaster Labs (you) always gets full, unmetered, free access to every tool this server exposes — no matter what paid tiers get built later. This is baked into the architecture now, before any billing exists, not retrofitted after the fact:

  • src/services/access.ts exports isOwnerRequest(), checked against a secret in the SCRIPTDOCS_OWNER_KEY environment variable (never hardcoded — this repo is public, so a hardcoded bypass would give everyone free access, not just you).

  • The HTTP transport already tags every request with an x-scriptdocs-access-tier response header (owner-unlimited or standard) — verified working, not just written.

  • Rule for any future billing/rate-limit code: call isOwnerRequest() first and skip all limits/charges when it returns true.

To use it once deployed: set SCRIPTDOCS_OWNER_KEY as an environment variable on your Render service, then send requests with header x-scriptdocs-owner-key: <that value>. Keep the value secret — it's not in this repo, and shouldn't be.

Getting listed as a real alternative (not hype — the actual mechanics)

There's no "beat Context7's ranking" button. There's one source-of-truth feed and a handful of directories that read from it. This is the real, current (as of July 2026) process, verified against the official docs at modelcontextprotocol.io/registry:

  1. The official MCP Registry (registry.modelcontextprotocol.io) is what a growing number of AI clients read to discover servers. There's no review queue — you publish a server.json record under a namespace you prove you own, and it's live.

  2. Discovery directories — Smithery, Glama, PulseMCP, mcp.so — crawl GitHub and the registry on their own. You may already show up there unclaimed once this is public; claiming ownership is what lets you control the description instead of a bot's guess.

What's already prepped in this repo

  • package.json has "mcpName": "io.github.Timwal78/scriptdocs-mcp-server" and is renamed to the scoped package @scriptmasterlabs/scriptdocs-mcp-server (under the existing @scriptmasterlabs org scope — same one publishing mcp-x402 and mcp-x402-sdk — rather than a personal scope, since this sits alongside your other MCP infrastructure)

  • server.json is written and validated against the real, live official schema (static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json) — not guessed at.

  • .github/workflows/publish-mcp.yml auto-publishes to npm and the MCP Registry every time you push a v* tag, using the official OIDC flow (no registry secret needed — just an NPM_TOKEN).

  • License changed from UNLICENSED to MIT — a package meant for strangers to install needs a license that actually lets them use it.

What only you can do (needs your accounts/credentials — I don't have them)

  1. Push this to a public GitHub repo at github.com/Timwal78/scriptdocs-mcp-server (or wherever you want it — update repository in package.json and server.json to match if the path differs).

  2. Add an NPM_TOKEN secret to that repo (Settings → Secrets → Actions) from an npm access token tied to your npm account.

  3. Tag and push a release: git tag v0.2.0 && git push origin v0.2.0 — the workflow handles npm publish + MCP Registry publish automatically from there.

  4. Claim your listing on Smithery, Glama, and PulseMCP once the registry record is live — they crawl and often list you automatically, but claiming moves you from "anonymous crawl result" to a verified, owner-controlled listing.

Being honest about "replacing Context7"

Context7 has real scale (tens of thousands of installs, broad ecosystem coverage) built over time. What actually makes a server "a viable alternative" in these registries isn't a claim in a README — it's real uptime, a working install, and accurate tool descriptions, which is what steps 1-4 above get you: correctly listed, discoverable, and functioning. Nothing here fabricates traction that doesn't exist yet.

Other next steps (your call)

  1. Licensing/monetization — needs your real Stripe/x402 decisions and pricing before anything gets built here. Research so far: Context7 (the main comparable) keeps public docs lookup free indefinitely and monetizes private-library support + team seats + compliance, not public lookups. Freemium dev-tools convert free→paid at 2-4% typically (8-12% is considered great).

  2. Private/internal library support — the one proven lever in this category (see above) — needs a hosted service (see #6 below), not yet built.

  3. PyPI fuzzy resolution — not buildable against PyPI's official API (confirmed: no search API has existed since 2022). Only real option is leaning on an unofficial third-party index/mirror, with the tradeoffs that implies.

  4. Go modules — metadata support (versions, checksums) would follow the same pattern as npm/PyPI/Cargo. Fuzzy resolution would not: confirmed proxy.golang.org has no search endpoint at all.

  5. Real relevance ranking (semantic search, not keyword substring) — buildable, but the real version needs an embeddings API (real ongoing cost) and a vector store — a spend decision, not built yet.

  6. Remote (HTTP) registry listing + hosted deployment — needed as the foundation for private-library support and any future rate limiting; server.json supports adding a remotes entry once this is deployed to Render with a public URL.

  7. Caching layer — currently every call hits the live registry fresh (correct for accuracy, but means repeated calls for the same package in one session re-fetch). A short in-memory TTL cache would cut latency without sacrificing truthfulness — not yet built.

Available Tools

5 tools
docs_check_vulnerabilitiesCheck Package VulnerabilitiesA
Read-onlyIdempotent

Check a real, specific package version against OSV.dev (Google-run, aggregates GitHub/PyPA/npm/RustSec advisories) — and, when a fix exists, automatically fetch that fixed version's README in the same call, so the result is "here's what's wrong" AND "here's exactly what upgrading looks like," not just a CVE list you have to research further yourself.

This is a live query against OSV.dev's public API for the exact package+version given. It never estimates or guesses risk — if OSV has no advisories on record for that version, this correctly reports zero vulnerabilities rather than implying danger that isn't documented. Note: this tool is more limited than dedicated vulnerability-intelligence tools (e.g. VulnCheck, Snyk) — it reports what OSV.dev has on file, not exploit activity or threat intelligence.

Args:

  • ecosystem ('npm' | 'pypi' | 'cargo')

  • package_name (string): exact package name

  • version (string, optional): specific version to check; defaults to the latest published version

  • include_fix_docs (boolean, default true): also fetch the README for the version that fixes the found vulnerabilities

Returns JSON with: vulnerability_count, vulnerabilities (array of {id, summary, severity, aliases, fixed_in, references}), recommended_fix (null, or {version, readme, truncated, source_url} for the version that resolves the found issues), source_url, fetched_at.

Error Handling:

  • Returns "Error: ..." if the package doesn't exist or OSV.dev can't be reached

  • vulnerability_count: 0 with an empty array is a normal, valid result — not an error

  • If fetching the fix's README fails, recommended_fix is null rather than the whole call failing — the vulnerability data itself is never withheld because of it

ParametersJSON Schema
NameRequiredDescriptionDefault
versionNoSpecific version to check. Defaults to the current latest published version if omitted.
ecosystemYesWhich package registry the version belongs to: 'npm', 'pypi', or 'cargo'.
package_nameYesExact package name as published on the registry.
include_fix_docsNoWhen a vulnerability is found with a known fixed version, also fetch that version's README so the response includes what upgrading actually looks like. Set false to skip the extra fetch.

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, openWorldHint=true, idempotentHint=true, and destructiveHint=false. The description adds substantial behavioral context beyond this: it performs a live query, never estimates risk, reports zero when OSV has no advisories, and gracefully handles README fetch failures by returning null rather than failing entirely. No contradictions with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with clear sections (overview, args, return format, error handling). Every sentence contributes meaningful context—no fluff or repetition. Despite its length, it remains scannable and each element earns its place, making it appropriately sized for the tool's complexity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has no output schema, so the description fully explains the return JSON structure, including fields and types. It also covers error handling, edge cases (zero vulnerabilities, failed README fetch), and the live nature of the query. Given the tool's complexity (4 params, external API, conditional behavior), the description is comprehensive and leaves no major gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all four parameters are fully described in the schema. The description's Args section largely repeats the schema (e.g., defaults, package name exactness) without adding new meaning or constraints. It adds little value beyond what the schema already provides, so baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool checks a specific package version against OSV.dev for vulnerabilities and goes beyond a CVE list by fetching the fixed version's README. It distinguishes itself from siblings like docs_get_package_info and docs_search_docs by focusing specifically on vulnerability checking and remediation guidance.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit context on when to use the tool: for a live vulnerability check on a real package version. It also clearly notes limitations compared to dedicated vulnerability-intelligence tools (VulnCheck, Snyk) and explains that zero vulnerabilities is a valid result, not an error. This gives clear usage boundaries and alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

docs_get_package_infoGet Package InfoA
Read-onlyIdempotent

Fetch real, current metadata for a package directly from the npm registry, PyPI JSON API, or crates.io.

This tool makes a live HTTP request to the actual registry (registry.npmjs.org, pypi.org, or crates.io) at call time. It never returns cached, guessed, or simulated data — if the package doesn't exist, it returns an explicit error rather than a plausible-looking fabrication.

Args:

  • ecosystem ('npm' | 'pypi' | 'cargo'): which registry to query

  • package_name (string): exact package name, e.g. "zod", "fastapi", or "serde"

Returns JSON with: name, latest_version, description, homepage, repository, source_url (the exact registry URL the data came from, for verification), fetched_at (ISO timestamp).

Error Handling:

  • Returns "Error: package not found" if the registry has no such package

  • Returns "Error: registry request failed" on network/HTTP errors

ParametersJSON Schema
NameRequiredDescriptionDefault
ecosystemYesWhich package registry to query: 'npm', 'pypi', or 'cargo' (Rust/crates.io).
package_nameYesExact package name as published on the registry, e.g. 'express', 'requests', or 'serde'.

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description adds substantial context beyond the annotations: it makes a live HTTP request, never returns cached/guessed/simulated data, returns explicit errors for missing packages or network failures, and provides verification fields. This complements the readOnly/idempotent hints without contradiction.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with a clear purpose sentence, an Args block, a Returns line, and an Error Handling section. It is information-dense without redundancy, earning its length.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity and the rich schema/annotations, the description fully covers return fields and error behavior despite lacking an output schema. It tells the agent exactly what to expect, making it complete for safe invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Both parameters are fully described in the schema with 100% coverage, so the description's Args section mostly reiterates the schema. It adds example package names but no additional semantic constraints beyond what the schema already provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it fetches real, current package metadata from npm, PyPI, or crates.io, with a specific verb and resource. It distinguishes itself from sibling tools by focusing on metadata retrieval rather than vulnerabilities, readmes, or search.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context for when to use the tool (when live, accurate metadata is needed) and emphasizes its live HTTP behavior. However, it does not explicitly compare against sibling tools or state when not to use it, so alternatives are not named.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

docs_get_readmeGet Package READMEA
Read-onlyIdempotent

Fetch the real README/description for a package, straight from the registry — not a summary, not a paraphrase, not AI-generated.

For npm this reads the registry's stored README, falling back to the published README.md file via jsDelivr if the registry copy is missing (verbatim markdown). For PyPI this reads the exact long_description shown on the package's PyPI page (verbatim). For Cargo (Rust/crates.io) this reads crates.io's stored README — note: crates.io only stores a pre-rendered HTML version, not the original markdown source, so this is that HTML converted to plain text, not byte-for-byte source.

Args:

  • ecosystem ('npm' | 'pypi' | 'cargo')

  • package_name (string): exact package name

  • version (string, optional): specific version; defaults to latest

Returns JSON with: readme (truncated to 12000 chars if longer — check 'truncated'), truncated (boolean), source_url (exact URL fetched, for verification), fetched_at.

Error Handling:

  • Returns "Error: ..." if the package or its README cannot be found — never fabricates content to fill the gap.

ParametersJSON Schema
NameRequiredDescriptionDefault
versionNoSpecific version to fetch. Defaults to the latest published version if omitted.
ecosystemYesWhich package registry to query: 'npm', 'pypi', or 'cargo'.
package_nameYesExact package name as published on the registry.

TDQS

A4.4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations declare read-only, idempotent, open-world, and non-destructive, and the description adds substantial behavioral detail beyond that: verbatim markdown for npm/PyPI, HTML-converted-to-text for Cargo, truncation at 12000 chars with a 'truncated' flag, fallback via jsDelivr, and explicit 'never fabricates content' error handling. This is rich, non-obvious context that fully informs the agent of side effects and output nuances.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with clear paragraphs: purpose, ecosystem nuances, args, return format, error handling. It is longer than average, but the complexity of three registries and important caveats (truncation, HTML conversion, fallback) justifies the length. The 'Args' section is somewhat redundant with the schema, preventing a perfect score, but every other sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description must document return values, and it does: 'readme', 'truncated', 'source_url', 'fetched_at'. It also covers truncation length, error behavior, fallback logic, and per-ecosystem differences. Combined with rich annotations and a small param count, this description is exceptionally complete for the tool's complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema already provides 100% coverage of all three parameters, including defaults ('version' description notes it defaults to latest) and enums. The description's 'Args' section largely repeats this schema information without adding new parameter-level semantics. The ecosystem-specific differences (e.g., Cargo returns HTML-converted-to-text) are more behavioral than parameter semantics, so the description adds only marginal value beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a highly specific verb and resource: 'Fetch the real README/description for a package, straight from the registry.' It immediately distinguishes itself from sibling tools by emphasizing 'not a summary, not a paraphrase, not AI-generated,' which contrasts with docs_search_docs or docs_get_package_info. The per-ecosystem details further clarify scope.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description clearly indicates when to use this tool: when you need the exact, unmodified README rather than a synthesized or summarized description. It explains the behavior across npm, PyPI, and Cargo, giving context on what 'real' means per ecosystem. However, it does not explicitly name sibling tools or state when not to use this tool, so it lacks explicit exclusions/alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

docs_resolve_libraryResolve Library NameA
Read-onlyIdempotent

Turn a fuzzy or partial name into real, ranked candidate package names, using the registry's own live search index — not a guess at what the package is probably called.

For npm this queries registry.npmjs.org's actual search API (the same one npmjs.com uses). For Cargo this queries crates.io's real search endpoint. For PyPI: there is currently no official PyPI search API (XML-RPC search was permanently disabled in 2022 and never replaced) — calling this with ecosystem 'pypi' returns an explicit message saying so rather than a fabricated or scraped result, along with a suggestion to use the exact package name with docs_get_package_info instead.

Args:

  • ecosystem ('npm' | 'pypi' | 'cargo')

  • query (string): the name or description to resolve, e.g. "react" or "async http client"

  • max_results (number, 1-10, default 5)

Returns JSON with: candidates (array of {name, version, description, score, url}), source_url, fetched_at.

Error Handling:

  • ecosystem 'pypi' always returns an explanatory message, not an error and not fabricated results

  • Returns "Error: ..." only for actual npm/crates.io request failures

ParametersJSON Schema
NameRequiredDescriptionDefault
queryYesNatural-language or partial name to resolve, e.g. 'react', 'http client for python', 'serde'.
ecosystemYesWhich registry to search: 'npm', 'pypi', or 'cargo'. Note: PyPI has no official search API (see limitation below).
max_resultsNoMaximum number of candidates to return.

TDQS

A4.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description adds detail beyond the readOnly/idempotent hints by specifying the exact live search endpoints (npmjs.com and crates.io) and explaining that PyPI calls return an explicit explanatory message rather than fabricated results. It also specifies the exact error condition ('Error: ...' only on real request failures) and the return JSON shape, which is not available from an output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with a clear one-sentence purpose, then uses labeled sections (Args, Returns, Error Handling) to keep details scannable. Although it goes into depth on the pypi limitation, each sentence earns its place, and the structure prevents it from feeling bloated.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, but the description fully specifies the return JSON structure (candidates, source_url, fetched_at) and covers error handling and ecosystem-specific behavior. It also provides a fallback suggestion for PyPI, making the tool's behavior predictable and complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema already provides 100% coverage with descriptions for all three parameters, so the baseline is 3. The description adds concrete query examples ('react' or 'async http client'), the per-ecosystem search API mapping, and the note that max_results defaults to 5. This adds practical color, but the schema already captures the essential constraints, so a 4 rather than 5 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific, action-oriented statement ('Turn a fuzzy or partial name into real, ranked candidate package names, using the registry's own live search index'), which clearly defines the tool's output and approach. It also differentiates this from the sibling docs_get_package_info by naming it as the alternative for exact lookups, distinguishing this tool's search/resolution purpose.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly says when to use this tool (fuzzy or partial name → real candidates) and when not to: for PyPI it states there is no official search API and recommends using docs_get_package_info with the exact package name instead. It also clarifies per-ecosystem behavior, giving agents actionable context for choosing this tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

docs_search_docsSearch Package DocsA
Read-onlyIdempotent

Search for keywords inside a package's real README/docs and return verbatim matching snippets with surrounding context.

This does keyword matching over the actual fetched document (registry README for npm, long description for PyPI, README-derived text for Cargo) — it does not summarize or paraphrase, and it does not answer from general knowledge. If no matches are found, it says so rather than guessing at an answer.

Args:

  • ecosystem ('npm' | 'pypi' | 'cargo')

  • package_name (string): exact package name

  • query (string): keyword(s) to search for, e.g. "rate limit" or "async client"

  • max_snippets (number, 1-20, default 5): cap on returned matches

  • version (string, optional): specific version to search; defaults to latest

Returns JSON with: snippets (array of {match, context, line_hint}), source_url, fetched_at.

Error Handling:

  • Returns "Error: ..." if the package/docs can't be fetched

  • Returns an empty snippets array (not an error) if the docs were fetched successfully but the query has no matches

ParametersJSON Schema
NameRequiredDescriptionDefault
queryYesKeyword(s) to search for inside the package's real documentation, e.g. 'authentication middleware'.
versionNoSpecific version to search within. Defaults to the latest published version if omitted.
ecosystemYesWhich package registry to query: 'npm', 'pypi', or 'cargo'.
max_snippetsNoMaximum number of matching snippets to return.
package_nameYesExact package name as published on the registry.

TDQS

A4.4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond annotations (readOnly, idempotent, openWorld), the description adds meaningful behavioral details: it matches keywords over actual fetched docs, does not summarize/paraphrase, returns empty array on no matches, and returns an error if the package/docs cannot be fetched. This gives the agent a clear model of what to expect.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with bolded section headers and front-loaded purpose, but the Args list largely duplicates the input schema, making it slightly longer than necessary. It remains clear and every non-Args sentence carries important behavioral context.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description fully specifies the return JSON structure (snippets array with match/context/line_hint, source_url, fetched_at) and error handling (error string vs empty array). It covers all five parameters' semantics via schema plus the tool's overall behavior, making it complete for an AI agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description's Args section repeats schema information (exact name, max cap, default version) without adding new parameter-level semantics; the main added value is return-format and error-handling context rather than richer parameter meaning.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb+resource: 'Search for keywords inside a package's real README/docs' and immediately distinguishes itself by promising 'verbatim matching snippets with surrounding context' and explicitly ruling out summarization or general knowledge. This clearly differentiates it from sibling tools like docs_get_readme or docs_resolve_library.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description establishes clear context for when the tool is appropriate: keyword matching over real fetched documents, with a note that it does not summarize or answer from general knowledge. However, it does not explicitly name alternative tools or state when not to use it, so it stops short of the 'explicit when/when-not' standard.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 5 tool updatesv0.3.1
    • First observeddocs_check_vulnerabilities
    • First observeddocs_get_package_info
    • First observeddocs_get_readme
    • First observeddocs_resolve_library
    • First observeddocs_search_docs

TDQS

A4.7/5.0
Disambiguation5/5

Each tool has a clear, non-overlapping purpose: resolving names, fetching metadata, retrieving READMEs, searching within docs, and checking vulnerabilities. No two tools could be easily confused.

Naming Consistency5/5

All tools share the docs_ prefix and follow a consistent verb_noun pattern (check, get, get, search, resolve). The naming is uniform and predictable.

Tool Count5/5

Five tools is well-scoped for a focused documentation server covering metadata, README, search, name resolution, and vulnerability checks. Each tool earns its place with no redundancy.

Completeness5/5

The server covers the full workflow: resolving package names, fetching package info and READMEs, searching within docs, and checking vulnerabilities with fix documentation. No obvious gaps for the stated purpose.

Maintenance

ActivityMaintained
ResponsivenessSyncing

Related MCP Connectors

Related MCP Servers

  • A
    license
    D
    quality
    D
    maintenance
    A Model Context Protocol server that allows AI models to fetch detailed information about npm packages and discover popular packages in the npm ecosystem.
    1
    12
    1
    ISC
  • A
    license
    Not graded
    quality
    A
    maintenance
    A Model Context Protocol (MCP) server that scrapes, indexes, and searches documentation for third-party software libraries and packages, supporting versioning and hybrid search.
    3,262
    1,711
    MIT
  • A
    license
    B
    quality
    D
    maintenance
    A Model Context Protocol server that enables AI agents to access, search, and understand structured package documentation and source code from Git repositories. It automatically generates specialized tools to browse module overviews, components, and detailed documentation for technical libraries.
    1
    381
    7
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    An MCP server that provides tools to fetch live, version-accurate documentation, changelogs, examples, and method signatures for npm and PyPI packages, preventing AI coding agents from hallucinating stale APIs.
    21
    ISC

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Timwal78/scriptdocs-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server