How to Look Up Package Docs with Claude

Look up npm package documentation with Claude and ToolRouter. Get current library docs without leaving your conversation.

Tool
Library Docs icon
Library Docs

Claude fetches live documentation and immediately applies it to your question — it does not just return the raw docs but answers your specific question using current content. You get a practical explanation rather than a raw reference paste.

Connect ToolRouter to Claude

1Open connector settings Open Settings
2Add a custom connector with these details
Name
ToolRouter
URL
https://api.toolrouter.com/mcp
3Let Claude set you up Open Claude

Steps

Once connected (see setup above), use the Library Docs tool:

  1. Ask: "Get the documentation for the axios package"
  2. Claude resolves the library and retrieves the relevant docs
  3. Ask a specific question: "What are the available config options for an axios instance?"
  4. Claude answers using current documentation content

Example Prompt

Try this with Claude using the Library Docs tool
Look up the current documentation for the zod library and show me how to define a schema that validates an email address and a number between 1 and 100.

Tips

  • Ask about a specific method or feature rather than requesting the full docs
  • Specify the version if you are working with a specific release rather than the latest
  • Ask Claude to compare docs across two versions to understand what changed