Socket MCP Server

Socket MCP Server

socket-security•bysocketdev

An MCP server that lets AI assistants query Socket's dependency security scores and metadata, available as a public hosted service or self-hosted.

License: MIT•Runtime: Awaiting documentation review•Category: auth security

WHAT IT DOES

  • •Provides security scores for packages across many ecosystems including npm, PyPI, cargo, Maven, NuGet, RubyGems, and Go Modules.
  • •Can check multiple dependencies in a single request through batch processing.
  • •Can be run locally via stdio or HTTP, or used as the public hosted service.
  • •Exposes tools including depscore, organizations, alerts, threat_feed, and package file inspection tools.

BEST FOR

  • •Scoring a single package's security risk in conversation.
  • •Auditing the security of an existing package.json dependency set.
  • •Comparing vulnerability scores across several dependencies at once.

ABOUT SOCKET-SECURITY

Socket MCP Server is cataloged as an MCP server attributed to socketdev. An MCP server that lets AI assistants query Socket's dependency security scores and metadata, available as a public hosted service or self-hosted. It is categorized under auth security. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Socket MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Do I need an API key to use the public Socket MCP server?

No. The public server authenticates through your MCP client's OAuth flow, so no API key is needed.

Can I self-host the Socket MCP server?

Yes, the project offers self-hosting instructions covering installation, stdio and HTTP setup, environment variables, and OAuth configuration.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 5baf67fe7951 · 采集于 2026-11-13 08:46:14 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Socket MCP Server

Socket Badge Coverage

Follow @SocketSecurity Follow @socket.dev on Bluesky

Socket MCP lets AI assistants query Socket's dependency security scores and metadata through the Model Context Protocol (MCP). Use it to score a package, audit a package.json, or identify risky dependencies in a conversation. Connect your MCP client to the hosted server at https://mcp.socket.dev/ and authenticate through OAuth, or run the npm package yourself.

✨ Features

  • 🔍 Dependency Security Scanning - Get comprehensive security scores for npm, PyPI, cargo, Maven, NuGet, RubyGems, Go Modules, and more (supported ecosystems)
  • 🌐 Public Hosted Service - Use our public server at https://mcp.socket.dev/ and sign in through your MCP client's OAuth flow
  • 🚀 Multiple Deployment Options - Run locally via stdio, HTTP, or use our service
  • 🤖 AI Assistant Integration - Connect from MCP-compatible clients; OAuth behavior varies by client
  • 📊 Batch Processing - Check multiple dependencies in a single request
  • 🔒 OAuth Sign-In - Public server authenticates through your MCP client's OAuth flow; no API key to copy or manage

🛠️ This project is in early development and rapidly evolving.

Install

The public server requires Socket sign-in through OAuth for every tool call, including package scoring. Some MCP clients need an explicit sign-in step. You do not need an API key.

Manual install - Claude Desktop / Claude Code

Add the hosted server through Claude's custom connector settings. The Developer configuration file is for local servers.

  1. Open Customize > Connectors in Claude.
  2. Select Add custom connector and enter https://mcp.socket.dev/ as the server URL. On Team and Enterprise plans, an organization owner adds the connector through Organization settings > Connectors first.
  3. Select Connect and complete the Socket authorization flow when prompted.
  4. Enable the connector for your conversation, then ask Claude "Check the security score for express version 4.18.2".

For Claude Code, add the server:

claude mcp add --transport http socket-mcp https://mcp.socket.dev/

Then run /mcp, select socket-mcp, choose Authenticate (or Re-authenticate, if shown), and approve access in your browser. An "authenticated" status before sign-in does not mean organization tools are ready.

Manual install - Codex CLI

Add the server:

codex mcp add socket-mcp --url https://mcp.socket.dev/

Codex starts sign-in during this command. You may see an invalid_scope page before Codex automatically retries with the three MCP read permissions. Complete the browser authorization on the retry.

To avoid that initial error page, you can instead add the server directly to ~/.codex/config.toml:

[mcp_servers.socket-mcp]
url = "https://mcp.socket.dev/"
scopes = ["packages:list", "alerts:list", "threat-feed:list"]

Then run:

codex mcp login socket-mcp

With dynamic client registration, each sign-in creates a new OAuth client with Socket.

Manual install - VS Code
# For VS Code with GitHub Copilot
code --add-mcp '{"name":"socket-mcp","type":"http","url":"https://mcp.socket.dev/"}'

Or add to .vscode/mcp.json:

{
  "servers": {
    "socket-mcp": {
      "type": "http",
      "url": "https://mcp.socket.dev/"
    }
  }
}
Manual install - Cursor

Cursor Settings → MCP → Add new MCP Server. Name socket-mcp, http type, URL https://mcp.socket.dev/.

{
  "mcpServers": {
    "socket-mcp": {
      "type": "http",
      "url": "https://mcp.socket.dev/"
    }
  }
}
Manual install - Windsurf

Windsurf does not support http type MCP servers. Use the stdio configuration in Option 2 below, or the serverUrl form:

{
  "mcpServers": {
    "socket-mcp": {
      "serverUrl": "https://mcp.socket.dev/mcp"
    }
  }
}
Manual install - Factory

Factory is an AI-powered software engineering platform. Install the Socket MCP server with the Factory CLI:

droid mcp add socket https://mcp.socket.dev/ --type http

To self-host with an API key instead, see Option 2 below and register the stdio command with droid mcp add.

Alternatively, type /mcp within the Factory droid to manage MCP servers from an interactive UI. Learn more in the Factory MCP documentation.

Clients that need a local bridge

Prefer your client's native remote HTTP connection to https://mcp.socket.dev/ when available. For clients that only launch local stdio servers, install mcp-remote 0.8.3:

pnpm add --global mcp-remote@0.8.3

Add this local server configuration to your MCP client:

{
  "mcpServers": {
    "socket": {
      "command": "mcp-remote",
      "args": ["https://mcp.socket.dev/"]
    }
  }
}

The bridge runs on your computer and receives OAuth redirects at http://localhost:<port>/oauth/callback. Keep it running while you authorize. Version 0.3.3 introduced the mid-session authorization fix; the forwarding and reauthorization retry paths were verified against the published 0.8.3 package. This verification does not cover a complete browser sign-in.

Reuse saved authorization while it remains valid. If a browser reports connection refused at the localhost callback, check the bridge's version and process. The callback listener belongs to the bridge; changing the hosted MCP URL does not start it.

Option 2: Self-host the Socket MCP server

See the self-hosted server instructions for installation, stdio and HTTP setup, environment variables, and OAuth configuration.

Usage

Once installed, ask your AI assistant questions like:

  • "Check the security score for express version 4.18.2"
  • "Analyze the security of my package.json dependencies"
  • "What are the vulnerability scores for react, lodash, and axios?"

Documentation

Tools exposed

The complete tool roster, schemas, parameters, and result examples are in the service reference.

Tool quick links

depscore

See depscore.

organizations

See organizations.

alerts

See alerts.

threat_feed

See threat_feed.

package_files

See package_files.

package_file_contents

See package_file_contents.

package_file_grep

See package_file_grep.

Authentication

See the authentication reference for local tokens, per-request HTTP credentials, and hosted OAuth.

Worked example: organization details and alerts

See the organization and alerts example.

Adjusting tool usage via client rules

See client rule examples.

Claude Code Hook (Optional)

The optional Socket package guard is documented in the commands and workflows reference.

Setup

See the hook setup instructions.

How it works

See how the hook works.

Limitations

See the hook limitations.

Inspired by Jimmy Vo's dependency hook.

Development

Contributor commands

This repo uses pnpm, and every command runs from the repo root. Node.js 24+ is required.

git clone https://github.com/SocketDev/socket-mcp.git
cd socket-mcp
pnpm install

Run from source. No build step is needed, because Node 24 strips the TypeScript itself:

export SOCKET_API_TOKEN=your_api_token_here
pnpm run server-stdio

Or in HTTP mode:

pnpm run server-http

Both scripts read SOCKET_API_TOKEN (falling back to SOCKET_API_KEY) from your environment. Append :debug to either one (pnpm run server-http:debug) to set SOCKET_DEBUG=1 and get per-request tracing on stderr.

Audit events

Audit-event destinations and record behavior are documented in the service reference.

Health check endpoint

The HTTP health response is documented in the service reference.

Troubleshooting

See service troubleshooting.

Getting help

Compatibility

MCP is still evolving, and client implementations differ in how they handle parts of the protocol. We proactively track compatibility gaps and work to offer the best possible experience with Claude Code, Codex, Cursor, and Zed. The table below summarizes the latest tests and known gaps.

Snapshot dated October 2, 2026; tests ran September 29–October 1. Each result applies to the listed client version and setup.

Client and tested setupHosted OAuth resultVerified tools and continuityImportant limit or workaround
Claude Code 2.1.285, hosted HTTPFirst organizations call failed with a sign-in request; explicit OAuth then completed.The 2.1.285 run verified the initial failure and successful login. organizations and depscore passed after login in a separate 2.1.284 run.The pre-login “authenticated” label was misleading; see upstream issue #98942.
Codex CLI 0.159.2, hosted HTTPWorks after explicit login.organizations and depscore passed after login, including a new conversation and idle checks.A broad scope request showed invalid_scope before Codex retried with the three MCP read permissions; see upstream issue #15643.
Cursor 3.22.12, hosted HTTP OAuthFails in tested conditions: organizations remained Unauthorized; the Authenticate card did not establish access.organizations only; no successful hosted OAuth call verified.Cursor 3.20 recurrence was manually reported; no fix version is known. A related forum reply describes an unsuccessful workaround attempt but identifies a separate Cursor 3.18.9 marketplace-import blocker.
Cursor, local stdio with API token (version not recorded)Not applicable; this setup bypasses hosted OAuth.depscore passed; restart continuity was reported manually.This does not verify hosted OAuth, organizations, or other tools.
Zed Agent 1.22.0, hosted HTTPWorks after explicit OAuth.organizations and depscore passed after login, restart, and a six-minute idle check.Intermittent timeouts after idle, cause under investigation; four client timeouts matched fast server HTTP 400 responses.

Only organizations and depscore were tested. Token refresh, server-side revocation, and all-tool coverage were not tested. Claude Desktop, VS Code, Windsurf, and Factory were not tested in this matrix.

License

MIT

Socket

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Socket MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/socket-security)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related auth security MCP Servers

Alternative and complementary servers in the same category

View all in auth security →

A modular FastMCP server for interacting with Microsoft Graph API, supporting advanced queries for users, sign-in logs, MFA status, and privileged users.

Repository stats unavailable
Security & Secrets
Keycloak MCP Server
keycloak-mcp-server•sshaaf

A Model Context Protocol (MCP) server that provides programmatic access to Keycloak administration functionality.

Repository stats unavailable
Security & Secrets

An MCP server for LLM-driven penetration testing that wraps Kali tools and adds scope enforcement, engagement tracking, and structured output.

Repository stats unavailable
Security & Secrets