Back to Home
dmmulroy icon

opensrc-mcp

Verified Safe

by dmmulroy

Overview

A codemode MCP server for fetching and querying dependency source code, optimized for AI agents.

Installation

Run Command
npx opensrc-mcp

Security Notes

The server employs robust sandboxing using Node.js's `vm.createContext` to execute agent-provided JavaScript. Key security measures include: `deepFreeze` of injected API objects to prevent modification, explicit disabling/undefined of dangerous global functions (`setTimeout`, `require`, `process`, `fetch`, etc.) to prevent arbitrary system access or network calls, a 30-second execution timeout to prevent infinite loops, and explicit path traversal prevention in file reading functions. External network operations (fetching packages/repos) are handled by the server's controlled `opensrc` dependency. While `vm` sandboxes are not entirely infallible against sophisticated attacks, this implementation is highly secure for its intended purpose of executing untrusted JavaScript code.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassLow
Avg Tokens1500
Stars0
Forks0
Last Update2026-01-19

Tags

MCPSource CodeDependency ManagementAI AgentCodemode