A powerful Model Control Protocol (MCP) server that provides terminal command execution and file system management capabilities for AI assistants through a RESTful API interface.
git clone https://github.com/neoforge-dev/neoforge-mcp-server.git
cd python-server-mcp
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
uv pip install -e .
python server.py
The server will start on http://0.0.0.0:8000.
The project includes a comprehensive test suite to verify functionality:
# Install test dependencies
uv pip install -r requirements.txt
# Run all tests
./run_tests.py
# Run tests with coverage report
./run_tests.py --coverage
# Run tests with verbose output
./run_tests.py --verbose
# Run specific test file
./run_tests.py --test tests/test_command_execution.py
The test suite covers:
Configure Cursor to use this MCP service by adding it to your ~/.cursor/mcp.json
file:
{
"mcpServers": {
"NeoMCP": {
"command": "/path/to/uv",
"args": [
"run",
"--with",
"mcp[cli]",
"mcp",
"run",
"/path/to/python-server-mcp/server.py"
]
}
}
}
execute_command
: Run commands with configurable timeoutsread_output
: Get output from running processesforce_terminate
: Stop a running commandlist_sessions
: Show all active command sessionslist_processes
: View all system processeskill_process
: Kill processes by PIDblock_command
: Add commands to the blacklistunblock_command
: Remove commands from the blacklistread_file
: Read file contentswrite_file
: Write data to a filecreate_directory
: Create new directorieslist_directory
: List contents of a directorymove_file
: Move or rename files and directoriessearch_files
: Find files matching patternsget_file_info
: Get detailed file informationedit_block
: Apply precise text replacements using diff-like syntaxsystem_info
(resource): Get detailed system informationcalculate
: Evaluate mathematical expressionsContributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
{
"mcpServers": {
"NeoMCP": {
"env": {},
"args": [
"run",
"--with",
"mcp[cli]",
"mcp",
"run",
"/path/to/python-server-mcp/server.py"
],
"command": "uv"
}
}
}
Seamless access to top MCP servers powering the future of AI integration.