local-os-brain
Click on "Install 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., "@local-os-brainwhat's my current CPU and memory usage?"
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.
Local OS Assistant & Second Brain (MCP & OpenAI)
An autonomous, cross-platform local desktop assistant powered by the Model Context Protocol (MCP) and OpenAI (gpt-4o). It executes local system commands safely, reads and writes files, monitors hardware diagnostics, and remembers cross-session project context using a local SQLite database (brain.db).
Features
MCP FastMCP Server (
server.py):read_local_file: Reads text contents of local files safely.write_local_file: Writes content to local files, creating missing directories automatically.list_directory: Formatted directory inspection with size and file type details.execute_terminal_command: Runs shell commands with safety prompt guardrails for destructive keywords (rm,del,rmdir,format,drop).open_application_or_url: Launches desktop applications or opens URLs in default web browser cross-platform (Windows, macOS, Linux).get_system_metrics: Retrieves real-time CPU, RAM, Disk, and Battery diagnostics usingpsutil.save_memory: Persists user notes, project stack context, and preferences into SQLitebrain.db.search_memory: Full-text/pattern searching across stored memories.
Interactive Terminal Assistant (
client.py):Dynamic tool discovery via MCP stdio transport.
Startup memory hydration from
brain.db.Persistent CLI REPL prompt (
You >/Brain >).
Claude Desktop Ready (
claude_desktop_config.json):Ready-to-use configuration file for integration with Claude Desktop.
Related MCP server: notion-local-ops-mcp
Installation & Setup
Prerequisites
Python 3.10 or higher.
An OpenAI API Key (
OPENAI_API_KEY).
1. Set Up Virtual Environment
Navigate to the project root directory and create a virtual environment:
# Windows
python -m venv venv
venv\Scripts\activate
# macOS / Linux
python3 -m venv venv
source venv/bin/activate2. Install Dependencies
Install pinned dependencies from requirements.txt:
pip install -r requirements.txt3. Environment Configuration
Create a .env file in the project root directory or set the environment variable:
OPENAI_API_KEY=your_openai_api_key_hereRunning the Assistant
Option A: Interactive CLI Client
Start the interactive assistant terminal:
python client.pyExample session:
You > Save a memory under key 'favorite_editor' value 'VS Code with Vim binding' tags ['preference', 'tools']
Brain > I've stored your preference for VS Code with Vim binding in the brain database.
You > What are my current system metrics?
Brain > Your system is running at 15.4% CPU usage with 12.2 GB / 32 GB RAM used and 78% battery remaining.Option B: Integrate with Claude Desktop
To use this local MCP server with Claude Desktop, add the configuration from claude_desktop_config.json to your Claude Desktop configuration file:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Add the server definition:
{
"mcpServers": {
"local-os-brain": {
"command": "python",
"args": [
"C:/Users/acer/.gemini/antigravity-ide/scratch/mcp_local_brain/server.py"
]
}
}
}Note: Replace "python" with the absolute path to your virtual environment Python executable if using a venv.
Project Structure
mcp_local_brain/
├── brain.db # SQLite database auto-generated on first run
├── server.py # FastMCP Server with OS & Brain Tools
├── client.py # Interactive Terminal AI Assistant
├── claude_desktop_config.json # Claude Desktop configuration snippet
├── requirements.txt # Pinned python dependencies
└── README.md # Documentation & Setup GuideLicense
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to safely perform actions on your computer including file system management, command execution, clipboard access, application launching, and local search with license-based monetization built in.
- AlicenseNot gradedqualityBmaintenanceEnables Notion AI to interact with local files, execute shell commands, and delegate complex tasks to local AI agents. Provides file operations, command execution, and task delegation capabilities for local workspace management.104MIT
- AlicenseAqualityCmaintenanceProvides filesystem, web search, SQLite, and system tools for AI assistants like Claude, enabling secure access to local resources and the web.6MIT
- AlicenseAqualityCmaintenanceExposes local file I/O, a restricted shell whitelist, and SQLite helpers for safe integration with AI clients like Cursor and Claude Desktop.7MIT
Related MCP Connectors
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Private-by-default, local-first memory/context/task orchestrator for MCP apps and agents.
Let ChatGPT, Claude & Cursor use your Mac: email, calendar, iMessage, Teams, files. Local, free.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/wasimakramsheriff-1274/local-os-assistant'
If you have feedback or need assistance with the MCP directory API, please join our Discord server