Overview
What is mcp_server_js?
mcp_server_js is an MCP server that exposes a single tool for executing JavaScript code. It is designed for developers who need to run JavaScript snippets within an MCP‑enabled application.
How to use mcp_server_js?
Configure the server in your MCP client using either the stdio transport (pointing to the server binary) or the SSE transport (running the server on a port and connecting via URL). Invoke the exposed tool by passing a source code string.
Key features of mcp_server_js
- Single tool
js(source_code=…)for executing JavaScript - Supports stdio transport for local integration
- Supports SSE transport for remote or network‑based use
Use cases of mcp_server_js
- Evaluate ad‑hoc JavaScript expressions in an MCP workflow
- Run small code snippets without leaving your MCP client
FAQ from mcp_server_js
What tool does mcp_server_js provide?
It provides one tool named js that accepts a source_code parameter containing JavaScript code.
How do I run mcp_server_js over SSE?
Start the server with ./mcp_server_js --port 8080 and configure your MCP client to connect to http://localhost:8080/sse.
Can I use mcp_server_js via stdio?
Yes. Add the server command to the mcpServers configuration with the path to the binary.
Does mcp_server_js require any runtime dependencies?
The README does not specify any runtime dependencies beyond the server binary itself.