Packagelens MCP Server

PackageLens MCP: a server exposing tools to search package registries (npm today) and fetch READMEs.

Local serverstdioPython

What is the Packagelens MCP Server?

PackageLens MCP: a server exposing tools to search package registries (npm today) and fetch READMEs.

What the server does

packagelens-mcp lets your coding agent (such as Claude, Cursor, Copilot, Gemini or Codex) search package registries across multiple ecosystems (npm, PyPI, RubyGems, Crates.io, Packagist, Hex) and fetch package context (README, downloads, GitHub info, usage snippets). It features smart ecosystem auto-detection, so your AI can find packages without needing to specify which ecosystem to search. It acts as a Model‑Context‑Protocol (MCP) server, giving your AI assistant a structured way to discover libraries and integrate them quickly.

  • 🌟 Smart ecosystem auto-detection - Ask "Find HTTP clients"
  • 🔍 Multi-ecosystem support: npm, PyPI, RubyGems, Crates.io,
  • 📦 Structured package search with optional ranking weights
  • 📄 Direct README fetch (optionally truncated)
  • 📊 Enriched package info (downloads + GitHub details)
  • 🔖 Version listing and dependency analysis

Credentials and setup notes

  • Node.js v18.17 or newer - npm (or pnpm)

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
smart_package_infoGet detailed package info
Argsitems[] with {ecosystem, name} objects
ExampleCompare axios (npm), requests (PyPI), httparty (RubyGems)
smart_get_readmeFetch package README
smart_get_usage_snippetExtract code examples from README
smart_get_versionsList package versions
smart_get_dependenciesGet package dependencies
smart_get_downloadsGet download statistics
compare_packagesCompare packages across ecosystems

How to install the Packagelens MCP Server

{
  "mcpServers": {
    "packagelens": {
      "command": "npx",
      "args": [
        "-y",
        "packagelens-mcp@latest"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

  • Node.js v18.17 or newer - npm (or pnpm)

Example prompts to try

  • “Use Packagelens MCP to smart package info.”
  • “Use Packagelens MCP to Args.”
  • “Use Packagelens MCP to Example.”

Frequently asked questions

PackageLens MCP: a server exposing tools to search package registries (npm today) and fetch READMEs. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.