Connect Npm to Claude, ChatGPT, Cursor, Claude Code, Codex, Gemini, GitHub Copilot and any other MCP client, for your whole team. Metorial adds security, governance, and tracing, and gives everyone one Magic MCP URL to connect.
Ask your agent in plain language. Each of these maps to a real tool on the server.
Use the get package tool in Npm
Use the manage dist tags tool in Npm
Use the search packages tool in Npm
Use the manage trusted publishers tool in Npm
Use the get user profile tool in Npm
Use the get download counts tool in Npm
Supported Tools
get_package
Get Package
Retrieve metadata for an npm package, including its description, versions, maintainers, and repository info.
Optionally fetch a specific version or use abbreviated mode for smaller response payloads with only installation-relevant data.
manage_dist_tags
Manage Dist-Tags
List, add, or remove distribution tags on an npm package. Dist-tags are labels that point to specific versions (e.g. "latest", "next", "beta").
Use "list" to see all current tags, "add" to create or update a tag pointing to a version, or "remove" to delete a tag.
search_packages
Search Packages
Search the npm registry for packages by text query. Supports keyword parameters like `author:`, `scope:`, and `keywords:` within the query text. Results include package metadata along with quality, popularity, and maintenance scores.
manage_trusted_publishers
Manage Trusted Publishers
List, add, or remove trusted publisher (OIDC) configurations for an npm package. Trusted publishers allow CI/CD platforms (GitHub Actions, GitLab CI, CircleCI) to publish packages without long-lived npm tokens using OIDC token exchange.
get_user_profile
Get User Profile
Retrieve the authenticated npm user's profile information including username and email.
get_downloads
Get Download Counts
Retrieve download statistics for npm packages. Supports total counts for a period, day-by-day breakdowns, per-version downloads, and bulk queries for multiple packages.
manage_tokens
Manage Access Tokens
List, create, or delete npm granular access tokens. Tokens can be scoped to specific packages, organizations, and permissions with CIDR restrictions and custom expiration.
deprecate_package
Deprecate Package Version
Mark a specific version of a package as deprecated with a message. Deprecated packages remain available for existing dependents but users are warned to use a newer version. Preferred over unpublishing since it doesn't break existing installations.
get_security_advisories
Get Security Advisories
Check package versions against npm security advisories. Returns vulnerable version ranges, severity, advisory URLs, and the other advisory fields supplied by npm.
Enable Npm in Metorial. In your Metorial portal, enable the Npm MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add a custom connector. Open Customize, then Connectors. Select Add, then Custom, then Web.
Paste your Metorial MCP URL. Name it Metorial, paste your Magic MCP URL (<your-magic-mcp-url>) and continue.
Sign in. Select Add and sign in to load Npm tools.
Enable Npm in Metorial. In your Metorial portal, enable the Npm MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add a custom MCP server. On ChatGPT web, open Plugins, select +, then Add custom MCP server.
Paste your Metorial MCP URL. Name it Metorial, paste your Magic MCP URL (<your-magic-mcp-url>), choose OAuth and accept the risk notice.
Create and install the plugin. Select Create as a plugin, install it and sign in to load Npm tools.
Enable Npm in Metorial. In your Metorial portal, enable the Npm MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add Metorial to your MCP config. Use ~/.cursor/mcp.json for every project, or .cursor/mcp.json for one.
Sign in. Open Customize in the sidebar, find Metorial and sign in to load Npm tools.
{
"mcpServers":{
"metorial":{
"url":"<your-magic-mcp-url>"
}
}
}
Enable Npm in Metorial. In your Metorial portal, enable the Npm MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add the server over HTTP. Add --scope user to use it in every project.
Sign in. Run /mcp, select Metorial and sign in to load Npm tools.
claude mcp add --transport http metorial <your-magic-mcp-url>
Enable Npm in Metorial. In your Metorial portal, enable the Npm MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add the server and sign in. The Codex CLI, IDE extension and ChatGPT desktop app share this config.
Check the connection. Type /mcp in Codex to see Metorial and its Npm tools.
codex mcp add metorial --url <your-magic-mcp-url>
codex mcp login metorial
Run Npm through the Metorial gateway
One governed layer for every app your agents reach, not a separate connector per tool.
Give Npm and every other app to your whole team through one MCP gateway, behind your SSO.
Scope which teams and agents can use Npm tools with role-based access control, and trace every call.
Prefer to run it yourself? Metorial is open source and self-hostable.
Search npm packages, retrieve full or abbreviated metadata, inspect download statistics and security advisories, manage distribution tags and deprecation messages, manage access tokens and trusted publishers, and retrieve the authenticated user profile.
Frequently asked questions
Common questions about connecting Npm to AI agents with Metorial.
How many tools does the Npm MCP server have?
The Npm MCP server exposes 9 tools, including Get Package, Manage Dist-Tags, Search Packages. Each one is governed and traced through Metorial.
Does the Npm MCP server support triggers?
Npm exposes tools your agents call on demand; it does not publish event triggers yet. Everything still runs through one governed MCP URL.
Which AI clients can use the Npm MCP server?
Any MCP client, including VS Code, Windsurf, Zed, OpenCode and Grok. Each one reaches the Npm MCP server through the same Metorial URL.
How do I give only some teams access to Npm?
Use role-based access control to decide which teams, users, and agents can use Npm and which of its tools they can call.
Can I self-host the Npm MCP server?
Yes. Metorial is open source, so you can run the Npm MCP server yourself or use the hosted gateway.
Connect Npm to production AI agents
See how Metorial gives your team governed access to Npm, with tracing and security controls built in.