Skip to main content
Glama
OpenLoL
by altamsh04

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.


Related MCP server: mcp-project-helper

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.md file and add 10 SaaS startup ideas to it." "Rename all .txt files 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 install and then npm run build and show me the output." "Check if package.json exists, then read it and summarize the dependencies." "Create a new src/utils folder and scaffold a helpers.ts file."

Scripting and automation

"Write a shell script that backs up all .json files to a backup/ subfolder and run it." "Run git status and tell me what files have changed."


Security model

  • Every request to /mcp and /sse requires 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.

  • /health is the only public endpoint.

Bind to localhost only (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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Serves a folder as an MCP knowledge server: it indexes text, code, PDFs, office documents and audio or video, then answers search and ask calls with citations that name the file, the line range, the page or the time range. Runs fully local with Ollama by default; Mistral, OpenAI, Gemini and Anthropic are optional providers.
      4
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Gives any MCP-capable AI client remote access to a machine's files and terminal, allowing it to read, write, edit, search, copy, move and delete files and to run commands or manage long-running processes. Supports token authentication, a root-folder sandbox, read-only and no-command modes, and deployment on a PC, VPS, tunnel, or Docker.
      19
      MIT