mcp-client-general
Verified Safeby daporun
Overview
A general-purpose Node.js client for the Model Context Protocol (MCP) servers, facilitating robust JSON-RPC 2.0 communication over stdin/stdout and managing child server processes.
Installation
mcp run --profile web-devEnvironment Variables
- MCP_DEBUG
- MCP_PROFILE_SERVER
Security Notes
The provided source code is for 'mcp-client-general', which acts as a client to an MCP-compatible server, not an MCP server itself. Its primary function involves spawning external MCP servers as child processes and communicating with them via stdio. The client code uses a robust, framing-agnostic JSON parser to handle incoming data, which helps mitigate risks associated with malformed input often seen with 'Content-Length' headers. It does not use 'eval' or other inherently dangerous functions. However, as the client executes arbitrary commands to launch the MCP server, the overall security of the system depends on the trustworthiness of the external server command and its arguments. Users must ensure that any command supplied to `mcp run` or programmatically to `MCPProcess` is from a trusted source.
Similar Servers
cli
The Smithery CLI is a developer tool for installing, managing, building, running, and deploying Model Context Protocol (MCP) servers and integrating them with various AI clients.
mcp-server-nodejs-api-docs
Provides up-to-date Node.js API documentation and release schedule information as a service via the Model Context Protocol.
ssh-mcp-server
Provides secure remote server management capabilities, including SSH connection, command execution, and SFTP file transfers, via the MCP protocol for integration with AI agents.
MCP-Test
Tests other Model Context Protocol (MCP) servers for connection, capabilities, and tool functionality.