home / mcp / ax local operations mcp server
Provides local file operations, line-level editing, search, compare, hash, permissions, archive, watch, execute commands, and task management for MCP-enabled AI apps.
Configuration
View docs{
"mcpServers": {
"andershsueh-ax-localtools-mcp": {
"command": "/Users/abc/.nvm/versions/node/v22.16.0/bin/node",
"args": [
"/Users/abc/research/mcp/index.js"
],
"env": {
"PATH": "/Users/abc/.nvm/versions/node/v22.16.0/bin:/usr/local/bin:/usr/bin:/bin",
"NODE_PATH": "/Users/abc/research/mcp"
}
}
}
}You can turn any MCP-enabled chat application into a capable local assistant by running AX Local Operations MCP Server. It provides secure local file handling, line editing, searching, comparing, hashing, permissions, archiving, monitoring, command execution, and task management, enabling practical, real-world interactions with your computer through AI.
To use AX Local Operations with an MCP client, configure the client to connect to the local MCP server and ensure the server is running in the background. The AI application will first discover available tools, then issue requests to perform tasks such as reading or writing files, editing content line by line, running commands in a safe sandbox, or managing long-running tasks. You can leverage the environment memory to persist context across sessions and keep your working state organized.
Typical workflows involve starting the MCP server, connecting your MCP client, and then issuing instructions that map to the provided tools. For instance, you can read a file, modify specific lines, search code bases with patterns, compare two files to see differences, or create tasks with due dates and subtasks. The system enforces safety checks and path restrictions to minimize risk while enabling productive automation.
Prerequisites: Node.js version 18.0.0 or newer, and npm or yarn. Ensure your environment can run JavaScript tools locally.
Install the MCP server globally so you can access the executable from any client. Run the following command in your terminal:
npm install -g ax-local-operations-mcpOnce installed, you can start the MCP server directly or invoke it via npx in clients that support MCP configurations.
npx -y ax-local-operations-mcpConfiguration and usage details shown here describe how to connect with popular MCP clients such as LM Studio and Qwen, including the exact commands and environment settings used to run the local server.
The server uses a layered safety model to control file access and command execution. Path sandboxing restricts access to the user’s home directory by resolving relative paths to the user’s home. Commands are filtered with a policy that can deny or require confirmation for dangerous operations. Errors are standardized and include clear codes like E_PATH_DENIED and E_DANGEROUS_CMD. Recursive depth limits and safe spawning practices are enforced for security.
If you encounter connection issues, verify Node.js paths and file permissions. Ensure the MCP server is running and the client is configured to connect via the correct stdio interface. Check logs for errors and confirm the configuration blocks are valid JSON within the client’s MCP integration.
Environment memory stores session-scoped data in a dedicated file, enabling consistent context usage across interactions. Security checks apply to all paths and commands, and the server will return structured error responses if you attempt unsafe operations.
Read, write, list, create, and delete files and directories.
Line-level editing including delete_lines, insert_lines, replace_lines, and append_lines.
Search within files with patterns, including regex and file type filters.
Diff two files and show line-level differences.
Compute hashes with MD5, SHA1, SHA256, SHA512.
Modify and display file permissions with recursive options.
Compress and extract archives in multiple formats.
Monitor file changes and events in real time.
Run local system commands with safety protections.
Create, list, update, complete, and organize tasks.
Get current time, timestamps, and locale times with zone support.
Store and retrieve environment-related information across sessions.