Skip to content

Menu

Socket MCP Server logo

Socket MCP Server

Published · Updated

At a glance

GitHub repository
SocketDev/socket-mcp
Watch out for
The hosted server needs OAuth sign-in for every tool, and Socket's own compatibility table reports that hosted OAuth failed in Cursor 3.22.12 under test.

Socket MCP is published by Socket, the supply-chain security company, and lets an AI assistant query Socket's dependency scores and package metadata. You can ask it to score a package, audit a package.json, or flag risky dependencies in the middle of a coding session. Scoring covers npm, PyPI, cargo, Maven, NuGet, RubyGems, Go modules and other ecosystems Socket supports.

The recommended route is the public hosted server at https://mcp.socket.dev/, which signs you in through your MCP client's OAuth flow so there is no API key to copy around. The public server requires that sign-in for every tool call, including plain package scoring. If you prefer to run it yourself, the npm package @socketsecurity/mcp runs over stdio or HTTP, and a self-hosted HTTP deployment can accept a Socket API token as a bearer header.

The README describes the project as early and changing quickly. It also ships an optional Claude Code hook that checks packages before an agent installs them, documented separately from the MCP tools.

How it connects

Your AI app

An assistant or agent that supports MCP

Socket MCP Server

Runs as

  • Local process
  • Remote (HTTP)

Gives the agent

  • Dependency scoring
  • Organization discovery
  • Org alerts
  • Threat feed
  • Package file inspection
  • Searching package files

Socket

Signs in with

  • OAuth / browser sign-in
Your AI app talks to Socket MCP Server over the Model Context Protocol, and the server carries out the work. Built from the setup and capability sections on this page.

What it can do

Dependency scoring
depscore takes an array of packages (ecosystem, name, version) and returns Socket's score components plus a report link. It handles several packages in one request.
Organization discovery
organizations lists the Socket organizations the signed-in user belongs to and returns the org_slug that org-scoped tools need.
Org alerts
alerts lists the latest supply-chain, vulnerability, quality, license and maintenance alerts for one organization, with cursor-based paging.
Threat feed
threat_feed looks up packages an organization's feed has flagged recently, such as malware, typosquats and obfuscated code.
Package file inspection
package_files lists the files a package publishes with sizes and blob hashes, and package_file_contents reads one file by hash (up to 1 MB of text).
Searching package files
package_file_grep runs a JavaScript regular expression over one file and returns matching lines with line numbers, capped by maxMatches.

Setting it up

For Claude Code, run claude mcp add --transport http socket-mcp https://mcp.socket.dev/, then type /mcp, pick socket-mcp, choose Authenticate and approve access in the browser. In Claude Desktop, add a custom connector under Customize, Connectors with the URL https://mcp.socket.dev/ and click Connect. VS Code users with Copilot can add a socket-mcp entry of type http pointing at the same URL under mcpServers in the workspace-root .mcp.json. In Cursor, add a new MCP server named socket-mcp of type http with that URL. Codex users run codex mcp add socket-mcp --url https://mcp.socket.dev/ and finish the browser sign-in. Windsurf needs the serverUrl form, https://mcp.socket.dev/mcp, or the stdio route. Clients that only launch local servers can use mcp-remote 0.8.3 as a bridge. Self-hosting instructions, including environment variables such as SOCKET_API_TOKEN, are in the repo's docs/commands.md.

Run in a terminal
claude mcp add --transport http socket https://mcp.socket.dev/

If the server needs a sign-in or an API key, the setup notes above say which. Combine several servers in the MCP config generator

Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)

Where it helps

  • Check the score of a package and version before an agent adds it to a project.
  • Audit every dependency in a package.json in one depscore request and point out the weakest ones.
  • Read an organization's open Socket alerts and threat feed entries while triaging a security ticket.
  • Look inside a published package's files and grep for suspicious code, such as install scripts or network calls, before installing it.

Limitations and things to watch

  • The hosted server needs OAuth sign-in for every tool, and Socket's own compatibility table reports that hosted OAuth failed in Cursor 3.22.12 under test.
  • Socket's compatibility tests only covered organizations and depscore; token refresh, revocation and the other tools were not tested in that matrix.
  • Org-scoped tools (organizations, alerts, threat_feed, package_files) need the caller's own credential on HTTP deployments and will not fall back to a shared operator token.
  • HTTP requests are limited to 4 MiB, and package_file_contents returns only metadata for binary files.
  • The README calls the project early development and rapidly evolving, so tool inputs may change between releases.

Sources

Written from the project's own documentation, checked November 2026.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…