GnistAI GnistAI
Log in

Package Registry

Package metadata and vulnerability data from npm, PyPI, crates.io, and OSV.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 7 tools tools 7 7 Software

Data source: npm, PyPI, crates.io, OSV.dev

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/package-registry/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-package-registry": {
      "url": "https://context.gnist.ai/mcp/package-registry/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
Shell
curl -X POST "https://context.gnist.ai/mcp/package-registry/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "get_package", "arguments": {"ecosystem": "example", "name": "example"}}}'

API REST API

API Root https://context.gnist.ai/rest/package-registry/

7 endpoints available:

Shell
curl "https://context.gnist.ai/rest/package-registry/get_package?ecosystem=example&name=example" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/package-registry/get_package",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "ecosystem": "example",
        "name": "example"
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc package-registry

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (7)

get_package
Get metadata for a package — latest version, description, license, maintainers.
ParameterTypeRequiredDescription
ecosystemstringrequiredPackage ecosystem: 'npm', 'pypi', or 'crates'.
namestringrequiredPackage name (e.g. 'express', 'requests', 'tokio').
get_package_versions
Get full release history for a package with publish timestamps.
ParameterTypeRequiredDescription
ecosystemstringrequiredPackage ecosystem: 'npm', 'pypi', or 'crates'.
namestringrequiredPackage name.
get_download_stats
Get download statistics for a package.
ParameterTypeRequiredDescription
ecosystemstringrequiredPackage ecosystem: 'npm', 'pypi', or 'crates'.
namestringrequiredPackage name.
periodstringoptionalTime period — 'last-week' or 'last-month' (npm and PyPI). crates.io always returns recent 90-day downloads. (default: "last-week")
get_dependencies
Get direct dependencies for a package version.
ParameterTypeRequiredDescription
ecosystemstringrequiredPackage ecosystem: 'npm', 'pypi', or 'crates'.
namestringrequiredPackage name.
versionanyoptionalSpecific version string. If omitted, uses the latest release.
get_vulnerabilities
Get known vulnerabilities for a package via OSV.dev (covers npm, PyPI, crates.io).
ParameterTypeRequiredDescription
ecosystemstringrequiredPackage ecosystem: 'npm', 'pypi', or 'crates'.
namestringrequiredPackage name.
versionanyoptionalSpecific version to check. If omitted, returns all known vulns for the package.
search_packages
Search for packages by keyword across npm, PyPI, or crates.io.
ParameterTypeRequiredDescription
ecosystemstringrequiredPackage ecosystem: 'npm', 'pypi', or 'crates'.
querystringrequiredSearch keywords (e.g. 'http client async', 'date parsing').
limitintegeroptionalMaximum results (1–50, default 20). (default: 20)
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related