openlol
v1.1.2
Published
Local MCP server that exposes your machine to AI agents via terminal tools
Maintainers
Readme
OpenLoL 😆
Open Local Operations Layer — Give any AI agent direct safe access to your machine terminal.
🔄 Status: Under active development
What it does
OpenLoL starts a local Model Context Protocol server scoped to a folder on your machine. Point any MCP-compatible AI client at the generated URL and it can read files, write files, run terminal commands, and inspect system info — all within the boundary you define.
No cloud. No relay. Your machine, your folder, your token.
Quick start
# Recommended: install globally
npm i -g openlol
# Or install locally
npm i openlol
# Expose the current folder
openlol .CLI options
| Flag | Description | Default |
| --------------------- | ------------------------------- | ----------- |
| [path] | Folder to expose (positional) | . |
| -f, --folder <path> | Folder to expose (alternative to [path]) | — |
| -p, --port <number> | Port to listen on | 3333 |
| --host <host> | Host to bind to | localhost |
Connecting to Cursor
Add to .cursor/mcp.json in your project root (or ~/.cursor/mcp.json for global):
{
"mcpServers": {
"openlol": {
"url": "http://localhost:3333/mcp?token=<your-token>",
"transport": "http"
}
}
}The token is printed on every server start. A fresh token is generated each time.
Available tools
| Tool | Description |
| --------------------------- | ---------------------------------------------- |
| execute_command | Run any shell command inside the scoped folder |
| read_file | Read a file's contents |
| write_file | Create or overwrite a file |
| append_file | Append content to a file |
| delete_file | Delete a file or directory |
| list_directory | List files and folders |
| create_directory | Create a directory (recursive) |
| move_file | Move or rename a file |
| file_exists | Check if a path exists |
| get_system_info | OS, memory, uptime |
| get_disk_usage | Storage usage across all drives |
| get_environment_variables | Inspect env vars (with optional filter) |
All file and command operations are sandboxed to the folder you specify. Directory traversal is blocked.
Use cases
File and project management
"Create a
ideas.mdfile and add 10 SaaS startup ideas to it." "Rename all.txtfiles in this folder to.md." "Show me the folder structure of this project."
System inspection
"How much storage is remaining on my laptop?" "What's my current memory usage?" "List all environment variables that contain the word PATH."
Development workflows
"Run
npm installand thennpm run buildand show me the output." "Check ifpackage.jsonexists, then read it and summarize the dependencies." "Create a newsrc/utilsfolder and scaffold ahelpers.tsfile."
Scripting and automation
"Write a shell script that backs up all
.jsonfiles to abackup/subfolder and run it." "Rungit statusand tell me what files have changed."
Security model
- Every request to
/mcpand/sserequires the session token (Bearer header or?token=query param). - All file and command operations are restricted to the folder passed via
-f. Paths that escape the root are rejected. - The token is a UUIDv4 generated fresh on each start — no token is ever reused across sessions.
/healthis the only public endpoint.
Bind to
localhostonly (the default). Do not expose this server to the public internet without additional hardening.
Transport support
| Transport | Endpoint | Client support |
| --------------- | ----------- | ------------------------------------------ |
| Streamable HTTP | POST /mcp | Claude Desktop, Cursor, modern MCP clients |
| SSE (legacy) | GET /sse | Older MCP clients |
Tech stack
- TypeScript — strict mode, NodeNext modules
**@modelcontextprotocol/sdk** — MCP server + transports- Express — HTTP layer
- Commander — CLI
- Zod — runtime input validation
- UUID — session token generation
Roadmap
- Publish to npm as
openlol - Config file support (
.openlolrc) - Multiple folder scopes per session
- Https Tunnel integration for remote access
- Tool allow/deny list configuration
- Web UI for session monitoring
License
MIT
