High-performance, modular MCP server with safe-by-default profiles and read-only workspace tools.
- ✓Open-source license (MIT)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Documented (README)
claude mcp add high-performance -- npx -y high-performance-mcp-server{
"mcpServers": {
"high-performance": {
"command": "npx",
"args": ["-y", "high-performance-mcp-server"]
}
}
}MCP Servers overview
# High-Performance MCP Server
A high-performance, modular Model Context Protocol (MCP) server built with TypeScript and the modern MCP v2 SDK (`@modelcontextprotocol/server`). Features safe-by-default security profiles, profile-aware server instructions, modular MCP prompts, read-only workspace access with search and host path privacy, Streamable HTTP, Stdio transport, reusable worker thread pooling, production LRU caching with single-flight stampede protection, and structured telemetry.
---
## Project Status: Public Preview (v0.1.0)
> [!NOTE]
> **Status**: `0.1.0` Public Preview.
> This package provides safe-by-default MCP tools, read-only workspace inspection, and high-performance worker execution. Requires **Node.js >= 22.0.0**.
---
## Features
- **Modern MCP v2 Architecture**: Built natively on `@modelcontextprotocol/server` with standard JSON Schema draft 2020-12 validation and full 2026-07-28 protocol support.
- **Dual Transport Support**: Run seamlessly over standard input/output (`stdio`) or modern Streamable HTTP (`node:http` + `/mcp`).
- **Profile-Aware Server Instructions**: Dynamic server instructions that guide connected LLMs on recommended workflows, tool sequencing, and safety boundaries based on the active profile.
- **Modular MCP Prompts**: Reusable task prompts (`explore_workspace`, `find_and_explain`, `review_file`, `trace_symbol`) exposed exclusively in `workspace` and `all` profiles.
- **Safe-by-Default Tool Profiles**: Default `safe` profile exposes zero filesystem or hardware inspection. Explicit opt-in for `workspace`, `diagnostics`, `benchmark`, `admin`, or `all`.
- **Read-Only Workspace & Host Path Privacy**: Secure allowlisted directory access with path traversal and symlink escape prevention, logical root mapping (`root-1`, `root-2`), 1 MiB hard limits, and binary file protection without exposing host absolute paths to clients or models.
- **Workspace Search v1**: Fast, bounded literal file and text search (`search_files`, `search_text`) with ignored directory defaults, bounded concurrency, coordinate mapping, and client cancellation.
- **Worker Thread Pool**: Offload CPU-heavy tasks from the Node.js event loop with automatic lifecycle recovery and zero-drift invariants.
- **Production LRU Cache**: Memory-bounded cache with TTL support and single-flight request coalescing to eliminate cache stampedes.
- **Internal Structured Logging**: Stdio-safe JSON logging exclusively on `stderr`.
---
## Quick Start
### MCP Client Configuration (Claude Desktop, Cursor, etc.)
Add to your MCP configuration (e.g. `claude_desktop_config.json`):
#### Default Safe Profile (Stdio)
```json
{
"mcpServers": {
"high-performance-mcp": {
"command": "npx",
"args": [
"-y",
"high-performance-mcp-server"
]
}
}
}
```
#### Read-Only Workspace Profile
```json
{
"mcpServers": {
"workspace-mcp": {
"command": "npx",
"args": [
"-y",
"high-performance-mcp-server",
"--profile=workspace",
"--root=/path/to/project"
]
}
}
}
```
### Local Development / Source Execution
```bash
# Clone and build
git clone https://github.com/eminyilmz/high-performance-mcp-server.git
cd high-performance-mcp-server
npm install
npm run build
# Run default safe profile
node dist/index.js
# Run workspace profile with allowlisted root
node dist/index.js --profile=workspace --root=.
```
---
## Safe-by-Default Profiles
To protect host machines and prevent unintended resource consumption or metadata leakage, tools, resources, instructions, and prompts are categorized into security profiles:
| Profile | Included Categories | Exposed Tools | Prompts | Use Case |
| :--- | :--- | :--- | :--- | :--- |
| **`safe`** *(Default)* | `safe` | `echo`, `ping` | *(none)* | Zero host inspection, zero filesystem access, zero mutation. Safe for public exposure. |
| **`workspace`** | `safe`, `workspace` | `echo`, `ping`, `workspace_roots`, `list_directory`, `file_info`, `read_text_file`, `search_files`, `search_text` | `explore_workspace`, `find_and_explain`, `review_file`, `trace_symbol` | Read-only file and directory inspection strictly limited to allowlisted `--root` directories. |
| **`diagnostics`** | `safe`, `diagnostics` | `echo`, `ping`, `cache_stats`, `server_metrics`, `system_stats`, `worker_pool_stats` | *(none)* | Process and system observability for monitoring health and event-loop lag. |
| **`benchmark`** | `safe`, `benchmark` | `echo`, `ping`, `cached_prime_count`, `heavy_compute_main`, `heavy_compute_worker` | *(none)* | CPU-intensive prime calculation benchmarks and worker pool tests. |
| **`admin`** | `safe`, `diagnostics`, `admin` | `echo`, `ping`, `cache_stats`, `server_metrics`, `system_stats`, `worker_pool_stats`, `reset_cache`, `reset_metrics` | *(none)* | Observability with administrative runtime state mutation (purging cache, resetting metrics). |
| **`all`** | `safe`, `workspace`, `diagnostics`, `benchmark`, `admin` | All 17 registered tools | All 4 workspace prompts | Complete tool and prompt catalog. |
---
## Server Instructions & Prompts
### Profile-Aware Server Instructions
When an MCP client connects, the server delivers concise, profile-tailored instructions via the MCP protocol:
- **`safe`**: Instructs the model that filesystem and hardware inspection are not available.
- **`workspace`**: Outlines the recommended investigation sequence (`workspace_roots` -> `search_files` / `search_text` -> `file_info` -> `read_text_file`), reinforces read-only constraints, and emphasizes root-relative path usage.
- **`diagnostics` & `benchmark`**: Guides observational metrics interpretation and warns against unnecessary CPU-intensive compute invocations.
- **`admin`**: Notes that mutation operations affect only process-local caches and telemetry state.
### Modular MCP Prompts
When running in `workspace` or `all` profile, the server exposes modular prompts that provide structured workflows for common engineering tasks:
| Prompt | Arguments | Purpose |
| :--- | :--- | :--- |
| **`explore_workspace`** | `rootId` *(required)*, `goal` *(optional)* | Guides the model through structured exploration of an allowlisted workspace root using search and file inspection. |
| **`find_and_explain`** | `rootId` *(required)*, `query` *(required)* | Locates relevant code or configuration using literal text search and reads defining files to produce an explanation. |
| **`review_file`** | `rootId` *(required)*, `path` *(required)*, `focus` *(optional)* | Formulates a structured, read-only review of a specified text file within the workspace. |
| **`trace_symbol`** | `rootId` *(required)*, `symbol` *(required)* | Traces declarations, references, and usage sites of a symbol across the workspace. |
> [!NOTE]
> Prompt arguments are treated as bounded task data and escaped before being inserted into reusable MCP prompt templates. Prompts do **not** execute direct filesystem I/O themselves; actual file reading and searching is performed by the model using standard MCP tools and resources under strict root allowlist controls.
---
## Read-Only Workspace Access
Filesystem access is **disabled by default**. To enable read-only workspace access, explicitly specify `--profile=workspace` (or `--profile=all`) and at least one allowlisted `--root` directory:
```bash
# POSIX / macOS / Linux
npx high-performance-mcp-server --profile=workspace --root=/home/user/my-project
# Windows
npx high-performance-mcp-server --profile=workspace --root="C:\Projects\app"
# Multiple roots
npx high-performance-mcp-server --profile=workspace --root=./packages/core --root=./packages/cli
```
### Security Guarantees & Constraints
- **Host Path Privacy**: Configured absolute filesystem paths remain internal to the server. The `workspace_roots` tool and `workspace://roots` resource return logical root identifiers (`id: "root-1"`, `name: "my-project"`) rather than absolute host paths:
```json
{
"roots": [
{
"id": "root-1",
"name": "my-project"
}
]
}
```
- **Strict Allowlist**: Only explicitly passed `--root` directories can be accessed. Maximum 16 unique roots allowed (and max 64 raw paths before deduplication).
- **Read-Only**: No filesystem mutation functions (`writeFile`, `unlink`, `rm`, `mkdir`, `rename`, etc.) exist in the server codebase.
- **Traversal & Symlink Protection**: Target paths are canonicalized using `fs.realpath` and strictly verified to never escape root boundaries.
- **Sanitized Errors**: Error responses reference only logical root IDs, root names, and requested relative paths, ensuring internal directory structures are never leaked.
- **File Read Limits**: Default text read limit is 256 KiB; hard upper limit is 1 MiB (`MAX_TEXT_READ_BYTES`).
- **Binary File Detection**: Files containing NUL bytes (`\0`) are rejected by `read_text_file` to prevent context pollution.
- **MCP Resources**: Exposes `workspace://roots` (static list of roots) and `workspace://file/{rootId}{?path}` (dynamic text reader).
### Searching the Workspace
The `workspace` profile provides bounded, read-only search tools:
1. **`search_files`**:
- Searches file and directory names using literal substring matching.
- Filters by kind (`file`, `directory`, `all`), case sensitivity, and start path.
- Skips common build/vendor directories (`.git`, `node_modules`, `.next`, `dist`, `build`, `target`, etc.) by default. Pass `includeIgnored: true` to search them.
- Never traverses into symlink/junction directories to prevent recursion cycles and escapes.
2. **`search_text`**:
- Searches UTF-8 text files using bounded literal matching with fixed concurrency (8 workers).
- Returns 1-based line, column, and trimmed preview snippets (up to 300 characters).
- Supports file extension filters (e.g. `extensions: [".ts", ".md"]` or `extensions: ["ts", "md"]`).
- Automatically skips binary files (NUL bytes) and files larger than 1 What people ask about high-performance-mcp-server
What is eminyilmz/high-performance-mcp-server?
+
eminyilmz/high-performance-mcp-server is mcp servers for the Claude AI ecosystem. High-performance, modular MCP server with safe-by-default profiles and read-only workspace tools. It has 0 GitHub stars and its last recorded update is dated 2026-08-20.
How do I install high-performance-mcp-server?
+
You can install high-performance-mcp-server by cloning the repository (https://github.com/eminyilmz/high-performance-mcp-server) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is eminyilmz/high-performance-mcp-server safe to use?
+
Our security agent has analyzed eminyilmz/high-performance-mcp-server and assigned a Trust Score of 87/100 (tier: Trusted). See the full breakdown of passed checks and flags on this page.
Who maintains eminyilmz/high-performance-mcp-server?
+
eminyilmz/high-performance-mcp-server is maintained by eminyilmz. The last recorded GitHub activity is dated 2026-08-20, with 0 open issues.
Are there alternatives to high-performance-mcp-server?
+
Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.
Deploy high-performance-mcp-server to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/eminyilmz-high-performance-mcp-server)<a href="https://claudewave.com/repo/eminyilmz-high-performance-mcp-server"><img src="https://claudewave.com/api/badge/eminyilmz-high-performance-mcp-server" alt="Featured on ClaudeWave: eminyilmz/high-performance-mcp-server" width="320" height="64" /></a>More MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
The fastest path to AI-powered full stack observability, even for lean teams.
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!