npm Registry Packages Search
Search official npm JavaScript/TypeScript packages with version, monthly downloads, quality/popularity scores, publisher, and repo URLs.
curl -sG "https://api.agentapigate.ai/v1/registry/npm/search" \ --data-urlencode "query=modelcontextprotocol" \ --data-urlencode "limit=10" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# npm Registry Packages Search (`registry.npm.search`) **query**: modelcontextprotocol · **total**: 7581 · **count**: 10 ## packages - [1] name: @modelcontextprotocol/server, version: 2.4.0, description: Model Context Protocol implementation for TypeScript - Server package, keywords: modelcontextprotocol, mcp, server, published_at: 2026-10-23T18:20:13.773Z - [2] name: @modelcontextprotocol/core, version: 2.4.0, description: Model Context Protocol for TypeScript — public Zod schemas (spec + OAuth/OpenID), keywords: modelcontextprotocol, mcp, schemas, zod, published_at: 2026-10-23T18:19:54.299Z - [3] name: @modelcontextprotocol/sdk, version: 1.32.2, description: Model Context Protocol implementation for TypeScript, keywords: modelcontextprotocol, mcp, published_at: 2026-10-23T18:11:38.362Z - [4] name: @modelcontextprotocol/client, version: 2.4.0, description: Model Context Protocol implementation for TypeScript - Client package, keywords: modelcontextprotocol, mcp, client, published_at: 2026-10-23T18:21:05.614Z - [5] name: figma-mcp, version: 0.1.4, description: ModelContextProtocol server for Figma, published_at: 2025-05-04T19:02:45.074Z, publisher: mjd - [6] name: @modelcontextprotocol/node, version: 2.1.2, description: Model Context Protocol implementation for TypeScript - Node.js middleware, keywords: modelcontextprotocol, mcp, node.js, middleware, published_at: 2026-10-23T18:19:50.364Z - [7] name: ref-tools-mcp, version: 3.0.3, description: ModelContextProtocol server for Ref, published_at: 2025-11-04T16:01:14.094Z, publisher: mjd - [8] name: @modelcontextprotocol/express, version: 2.0.2, description: Express adapters for the Model Context Protocol TypeScript server SDK - Express middleware, keywords: modelcontextprotocol, mcp, express, middleware, published_at: 2026-10-02T17:44:28.540Z - [9] name: @reventlessdev/rescript-mcp-sdk, version: 1.0.0-alpha.24, description: ReScript bindings for @modelcontextprotocol/sdk, published_at: 2026-10-25T12:33:48.487Z, publisher: reventless - [10] name: @modelcontextprotocol/ext-apps, version: 2.0.4, description: MCP Apps SDK — Enable MCP servers to display interactive user interfaces in conversational clients., published_at: 2026-10-27T07:16:07.264Z, publisher: ochafik-ant
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:registry.npm.search · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| query | string | required | modelcontextprotocol | npm search query, scope (@modelcontextprotocol), or keyword |
| limit | number | optional | 10 | Max packages returned (1-30) |
| format | enum | optional | json | compact | md | Response format; compact or md cuts LLM tokens. |
| dry_run | 0 | 1 | optional | 1 | Returns exact pre-flight price quote & validation at $0.00 cost. |
| Access Rail / Metric | Value | Policy & SLA |
|---|---|---|
| API Key (PAYG) | $0.0010 / call | $0/mo · Balance never expires |
| Remote MCP Tool | registry_npm_search | OAuth 2.1 Hub & /mcp/intel |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 350 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 3544t → 595t (-83%) | Partner credit: eligible |
More registry.npm Sibling Endpoints
Retrieve latest npm package metadata including version, description, license, homepage, repository, maintainers, keywords, and unpacked bundle size.
Retrieve npm package download counts for last-day, last-week, last-month, or last-year windows.
Frequently Asked Questions
How do I call npm Registry Packages Search (registry.npm.search) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/registry/npm/search with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool registry_npm_search on https://mcp.agentapigate.ai/mcp.
What does registry.npm.search cost per call and are failed calls billed?
Each successful HTTP 200 response costs $0.001 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.
How does ?format=md or ?format=compact optimize AI agent token usage on registry.npm.search?
Passing ?format=md transforms the response into normalized Markdown (~595 tokens vs ~3544 raw tokens, saving 83% of LLM context budget) while preserving structured JSON via ?format=json.
Can I restrict an AI agent key to only intel endpoints with a daily USD cap?
Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["intel"], optional allowed_endpoints: ["registry.npm.search"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.