MCP server
by socketdev
Socket Security integrates with Socket's API to analyze npm and PyPI packages for detailed vulnerability and quality met
Analyzes npm and PyPI packages for security vulnerabilities and quality metrics using Socket's dependency security API. Helps identify risky dependencies before adding them to projects.
Socket Security is an official MCP server published by socketdev that provides AI assistants with tools and capabilities via the Model Context Protocol. Socket Security integrates with Socket's API to analyze npm and PyPI packages for detailed vulnerability and quality met It is categorized under auth security, developer tools.
You can install Socket Security in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
MIT
Socket Security is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
Add new capabilities to Claude beyond text generation
Example
Access external data sources, execute code, interact with tools and services
Transform Claude from chatbot to action-taking agent
Provide Claude with access to relevant context and data
Example
Load project documentation, access knowledge bases, query databases
Get more accurate, context-aware responses
Automate multi-step workflows combining AI and external tools
Example
Research → Summarize → Create document → Send notification
Complete complex tasks end-to-end without manual steps
Share your MCP server with the developer community
We evaluated Socket Security against two servers with overlapping tools; this profile had the clearer scope statement.
Socket Security reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
I recommend Socket Security for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
Socket Security is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
Socket Security is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
Useful MCP listing: Socket Security is the kind of server we cite when onboarding engineers to host + tool permissions.
Strong directory entry: Socket Security surfaces stars and publisher context so we could sanity-check maintenance before adopting.
Useful MCP listing: Socket Security is the kind of server we cite when onboarding engineers to host + tool permissions.
Socket Security has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
Strong directory entry: Socket Security surfaces stars and publisher context so we could sanity-check maintenance before adopting.
showing 1-10 of 30
A Model Context Protocol (MCP) server for Socket integration, allowing AI assistants to efficiently check dependency vulnerability scores and security information.
https://mcp.socket.dev/ with no setup required🛠️ This project is in early development and rapidly evolving.
The easiest way to get started is to use our public Socket MCP server. No API key or authentication required! Click a button below to install the public server in your favorite AI assistant.
<details><summary><b>Manual Installation Instructions & more MCP Clients</b></summary> <details><summary><b>Install in Claude Desktop or Claude Code</b></summary>[!NOTE] Custom integrations are not available to all paid versions of Claude. Check here for more information.
To use the public Socket MCP server with Claude Desktop:
In Claude Desktop, go to Settings > Developer > Edit Config.
Add the Socket MCP server configuration:
{
"mcpServers": {
"socket-mcp": {
"type": "http",
"url": "https://mcp.socket.dev/"
}
}
}
Save the configuration and restart Claude Desktop.
Now you can ask Claude questions like "Check the security score for express version 4.18.2".
The process is similar for Claude Code. See the Claude Code documentation for more details. Here's an example command to add the Socket MCP server:
claude mcp add --transport http socket-mcp https://mcp.socket.dev/
</details>
<details><summary><b>Install in VS Code</b></summary>
You can install the Socket MCP server using the VS Code CLI:
# For VS Code with GitHub Copilot
code --add-mcp '{"name":"socket-mcp","type":"http","url":"https://mcp.socket.dev/}'
After installation, the Socket MCP server will be available for use with your GitHub Copilot agent in VS Code.
Alternatively, you can manually add it to your VS Code MCP configuration in .vscode/mcp.json:
{
"servers": {
"socket-mcp": {
"type": "http",
"url": "https://mcp.socket.dev/"
}
}
}
</details>
<details><summary><b>Install in Cursor</b></summary>
Go to Cursor Settings -> MCP -> Add new MCP Server. Name it "socket-mcp", use http type with URL https://mcp.socket.dev/.
{
"mcpServers": {
"socket-mcp": {
"type": "http",
"url": "https://mcp.socket.dev/"
}
}
}
</details>
<details><summary><b>Install in Windsurf</b></summary>
[!WARNING] Windsurf does not support
httptype MCP servers yet. Use thestdioconfiguration below.
To use the Socket MCP server in Windsurf:
{
"mcpServers": {
"socket-mcp": {
"serverUrl": "https://mcp.socket.dev/mcp"
}
}
}
If you prefer to run your own instance, you can deploy the Socket MCP server locally using either stdio or HTTP modes.
To use a local Socket MCP Server, you need to create an API key. You can do this by following these steps. The only required permission scope is packages:list, which allows the MCP server to query package metadata for dependency scores.
For local deployment, you have two options:
Click a button below to install the self-hosted stdio server in your favorite AI assistant.
Claude Code (stdio mode) can be set up with the following command:
claude mcp add socket-mcp -e SOCKET_API_KEY="your-api-key-here" -- npx -y @socketsecurity/mcp@latest
This is how the configuration looks like on most MCP clients:
{
"mcpServers": {
"socket-mcp": {
"command": "npx",
"args": ["@socketsecurity/mcp@latest"],
"env": {
"SOCKET_API_KEY": "your-api-key-here"
}
}
}
}
This approach automatically uses the latest version without requiring global installation.
Run the server in HTTP mode using npx:
MCP_HTTP_MODE=true SOCKET_API_KEY=your-api-key npx @socketsecurity/mcp@latest --http
Configure your MCP client to connect to the HTTP server:
{
"mcpServers": {
"socket-mcp": {
"type": "http",
"url": "http://localhost:3000"
}
}
}
The depscore tool allows AI assistants to query the Socket API for dependency scoring information. It provides comprehensive security and quality metrics for packages across different ecosystems.
Parameters:
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
packages | Array | ✅ Yes | - | Array of package objects to analyze |
packages[].ecosystem | String | No | "npm" | Package ecosystem (npm, pypi, cargo, etc.) |
packages[].depname | String | ✅ Yes | - | Name of the dependency/package |
packages[].version | String | No | "unknown" | Version of the dependency |
Example Usage:
{
"packages": [
{
"ecosystem": "npm",
"depname": "express",
"version": "4.18.2"
},
{
"ecosystem": "pypi",
"depname": "fastapi",
"version": "0.100.0"
}
]
}
Sample Response:
pkg:npm/express@4.18.2: supply_chain: 1.0, quality: 0.9, maintenance: 1.0, vulnerability: 1.0, license: 1.0
pkg:pypi/fastapi@0.100.0: supply_chain: 1.0, quality: 0.95, maintenance: 0.98, vulnerability: 1.0, license: 1.0
Ask your AI assistant to check dependencies:
Get comprehensive security insights including supply chain, quality, maintenance, vulnerability, and license scores.
You can further customize how the Socket MCP server interacts with your AI assistant by modifying your client rules. The rules are usually a markdown file and its location depends on the AI assistant you are using.
| MCP Client | Rules File Location |
|---|---|
| Claude Desktop/Code | CLAUDE.md |
| VSCode Copilot | .github/copilot-instructions.md |
| Cursor | .cursor/rules |
Rules that can be added to the client rules file include the following:
Always check dependency scores with the depscore tool when you add a new dependency. If the score is low, consider using an alternative library or writing the code yourself. If you are unsure about the score, ask for a review from someone with more experience. When checking dependencies, make sure to also check the imports not just the pyproject.toml/package.json/dependency file.
You can adjust the rules to fit your needs. For example, you can add rules to include specific manifest files, or guide the AI assistant on how to handle low scores. The rules are flexible and can be tailored to your workflow.
For most users, we recommend using either:
https://mcp.socket.dev/ (no setup required)npx @socketsecurity/mcp@latest (always latest version)If you want to contribute to the Socket MCP server development:
When running in HTTP mode, the server provides a health check endpoint for Kubernetes and Docker deployments:
GET /health
Response:
{
"status": "healthy",
"service": "socket-mcp",
"ver
---
Prerequisites
Time Estimate
15-60 minutes depending on server complexity
Steps
Troubleshooting
✓ Do
✗ Don't
💡 Pro Tips
Architecture
Model Context Protocol standardizes how AI hosts (Claude, Cursor) communicate with external tools and data sources through server implementations.
Protocols
Compatibility
✓ Use when
Use when you need Claude to access external data, execute actions, or integrate with tools. Best for extending AI capabilities beyond conversation.
✗ Avoid when
Avoid when native integrations exist (use official APIs directly), for real-time critical systems, or when security/compliance requires zero external dependencies.