A simple MCP server using stdio transport
Hjmcpstdio becomes available to MCP clients through the hjmcpstdio mcp server. A simple MCP server using stdio transport.
A complete Model Context Protocol (MCP) server implementation using stdio transport that showcases: - Resources: File system access to read project files (README.md, package.json, src/server.ts) - Tools: Calculator for mathematical operations and file listing - Prompts: Code review and code explanation assistants
Once connected, the assistant can call these 7 tools directly:
calculate — Perform mathematical calculationsInput — {"expression": "mathematical expression"}Example — {"expression": "2 + 3 * 4"}list_files — List files in a directoryResources — The Resources tool exposed by this serverTools — The Tools tool exposed by this serverPrompts — The Prompts tool exposed by this serverThe server is distributed via npm as @modelcontextprotocol/cli, so most clients can run it without a manual build step. Add it to your MCP client's configuration and restart the client to pick it up — the copy-paste configs for Claude Desktop, Claude Code and Cursor are on this page.
The server reads one environment variable: MCP_CLI_CONFIG_PATH. Keep credentials in your client's env block or a secrets manager rather than committing them.
File and storage servers are what separate an assistant that talks about your documents from one that actually works with them. Hjmcpstdio sits in that group, and the shape of its toolset — calculate, Input, Example among others — tells you what it is really for. Worth comparing against the other file systems servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.
| Tool | What it does |
|---|---|
| calculate | Perform mathematical calculations |
| Input | {"expression": "mathematical expression"} |
| Example | {"expression": "2 + 3 * 4"} |
| list_files | List files in a directory |
| Resources | The Resources tool exposed by this server. |
| Tools | The Tools tool exposed by this server. |
| Prompts | The Prompts tool exposed by this server. |
{
"mcpServers": {
"hjmcp-stdio": {
"command": "node",
"args": ["dist/server.js"],
"cwd": "/absolute/path/to/your/hjmcpstdio/directory",
"transport": "stdio"
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| MCP_CLI_CONFIG_PATH | Filesystem location the server is allowed to use. | Optional |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.