mcp-tool-server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-tool-serverevaluate 2 + 3 * 4"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
๐ MCP Tool Server
A secure, production-grade Model Context Protocol (MCP) server that empowers LLM agents with filesystem operations, AST mathematical evaluation, and host system diagnostics.
Built using Python FastMCP SDK and containerized with Docker.
๐๏ธ Architecture
The Model Context Protocol (MCP) establishes a secure JSON-RPC interface over standard I/O (stdio) between a host client (like Claude Desktop or Cursor) and our server:
graph LR
subgraph Host_App ["Host Application (Client)"]
A[LLM Agent] <--> B[MCP Client Interface]
end
subgraph Server_App ["MCP Tool Server (Server)"]
B <-->|Stdio / JSON-RPC| C[FastMCP Entrypoint]
C <--> D[File System Tools]
C <--> E[AST Math Tools]
C <--> F[System Diagnostic Tools]
end
D <-->|Access Guards| G[(Workspace Files)]
F <-->|psutil| H[Host OS Metrics]Related MCP server: NATE-MCP-SERVER
โจ Features
๐ Secure Filesystem Access โ Paginated reading, directory listing, and recursive regex search with built-in path-traversal protections.
๐งฎ Safe AST Calculation โ Evaluates mathematical expressions securely using python's
astparser (no raweval()calls) and blocks resource exhaustion attempts.๐ฅ๏ธ Diagnostics Metrics โ Fetches CPU, RAM, and Disk space stats.
๐ณ Containerized โ Docker & Docker Compose setup for fast testing and isolation.
โ CI Validation โ Automated GitHub Actions verifying code linting and unit test coverage.
๐ ๏ธ Exposed Tools
The server registers and exposes the following tools to clients:
Tool Name | Parameters | Description |
|
| Safely evaluates arithmetic and core math functions (sin, cos, pi, e, etc.). |
|
| Lists files and subdirectories. Locked to workspace boundaries. |
|
| Reads a target file securely with line-bound pagination. |
|
| Performs recursive grep-like text search in workspace files. |
| None | Returns instant system metrics (CPU load, RAM usage, storage space). |
๐ Quick Start
Option A: Running with Docker (Recommended)
Run the server instantly in an isolated environment:
# Build and run the stdio server
docker-compose up --build
# Run the test suite inside the container
docker-compose run testsOption B: Running with Local Python
If you prefer to run it locally without Docker:
# Install dependencies
pip install -r requirements.txt
# Run the server on stdio
python mcp_server.py๐ Host Client Integration
1. Claude Desktop
To integrate this server with Claude Desktop, add the configuration below to your claude_desktop_config.json (on Windows, located at %APPDATA%\Claude\claude_desktop_config.json):
{
"mcpServers": {
"mcp-tool-server": {
"command": "python",
"args": ["C:/Github Code/mcp-tool-server/mcp_server.py"],
"env": {
"MCP_WORKSPACE_DIR": "C:/Github Code"
}
}
}
}2. Cursor IDE
Open Cursor Settings โ Features โ MCP.
Click + Add New MCP Server.
Fill details:
Name:
mcp-tool-serverType:
stdioCommand:
python "C:/Github Code/mcp-tool-server/mcp_server.py"
Save and let Cursor auto-detect the registered tools!
๐งช Running Tests Locally
To install testing dependencies and run the pytest suite:
pip install -r requirements-dev.txt
pytest tests/ -v๐ License
MIT License. See LICENSE for details.
This server cannot be deployed
Maintenance
Related MCP Connectors
Nifty's MCP server โ exposes tasks, projects, messages, and files as tools for AI agents.
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA modular MCP server providing file operations, web search, URL scraping, and sandboxed command execution for LLM interactions.1MIT
- AlicenseNot gradedqualityDmaintenanceA powerful MCP server that enables LLMs to safely execute code, control file systems, search the web, and integrate with services like Gmail and TMDB.MIT
- AlicenseNot gradedqualityCmaintenanceA secure MCP server that exposes local filesystem operations to AI clients with sandboxed access and runtime directory changes.1MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server that equips AI agents with real-world tools including file operations, read-only MySQL queries, web summarization, safe calculations, and system info. It uses stdio transport and enforces safety guardrails like SELECT-only database access and AST-based math evaluation.MIT