npmlens-mcp lets your coding agent (such as Claude, Cursor, Copilot, Gemini or Codex) search the npm registry and fetch package context (README, downloads, GitHub info, usage snippets). It acts as a ModelContextProtocol (MCP) server, giving your AI assistant a structured way to discover libraries and integrate them quickly. Structured npm search with optional ranking weights. Direct README fetch (optionally truncated). Enriched package info (downloads + GitHub details). Usage snippet extraction from README. Stdio MCP transport, ready for MCPcompatible clients.
To support HTTP client APIs, Cloudflare reimplemented the core node:http APIs by building on top of the standard fetch() API that Workers use natively, maintaining Node.js compatibility without significantly affecting performance. The wrapper approach supports standard HTTP methods, request and response headers, request and response bodies, streaming responses, and basic authentication. However, the managed approach makes it impossible to support a subset of Node.js APIs.