Skip to main content
Glama
vjpr0

secure-local-mcp

by vjpr0

Secure Local MCP Agent (Engineering Edition)

CI

Đọc bản tiếng Việt

A Software Engineer AI Agent system that is 100% offline, secure, and directly interacts with your personal computer via the MCP (Model Context Protocol).


🎯 The Problem Solved

Current Cloud AIs pose a risk of source code data leaks and cannot directly interact with your local operating system. This project builds a personal AI running 100% offline (Native) on Windows, capable of reading/analyzing your project's source code, as well as executing real system commands (like ping, ipconfig, dir) without being restricted by virtualization layers (Docker).


Related MCP server: Lexomni MCP

🏗️ System Architecture (Native Mode)

my_notes/ (Notes) & project_context/ (Source Code)
                        │
                        ▼
src/indexer.py ──── SQLite FTS5 ──── Scan & Index Code/Text
                        │
                        ▼
src/server.py ───── FastMCP ──────── 5 Tools (list, read, search, write, execute_command)
                        │
                        ▼ (stdio / JSON-RPC)
src/ui.py ───────── Streamlit ────── Visual Web Interface (Transparent Tool execution flow)
                        │
                        ▼
Ollama (Gemma4/Qwen) / Any Local LLM

✨ Highlight Features

Feature

Details

Codebase Indexing

SQLite FTS5 reads and indexes a variety of programming languages (.py, .js, .json, .cpp, .go...) while skipping binary files. Blazing fast O(log N) speed.

Native OS Commands

Allows the AI to execute Terminal (Powershell/CMD) commands on the actual Windows machine to query the network or system.

Transparent Web UI

Every tool execution (reading files, running network commands) is displayed in detail as an Expander block, hiding nothing.

100% Offline & Un-sandboxed

No Docker is used to avoid network isolation. Data never leaves your machine.

Directory Traversal Protection

Blocks payloads like ../../etc/passwd. The AI is strictly restricted to operations within the my_notes and project_context directories.


🚀 Installation & Usage (1-Click)

The system is designed to run directly on Windows (Native) to fully utilize the operating system's capabilities and permissions.

Requirements:

  • Python 3.10+ installed (with PATH configured).

  • Ollama installed and running on the default port (http://localhost:11434).

How to run: Simply double-click the start.bat file. The script will automatically:

  1. Create a virtual environment (venv).

  2. Install the necessary dependencies (pip install).

  3. Open the Web UI app (Streamlit) in your browser at http://localhost:8501.


🛡️ Security Mechanisms

The system applies a robust protection layer against Directory Traversal Attacks (CWE-22): It utilizes resolve() and is_relative_to() to ensure that the read/write paths absolutely cannot escape the 2 permitted root directories (my_notes and project_context).


📁 Project Structure

secure-local-mcp/
├── my_notes/               # Personal notes repo (.md, .txt)
├── project_context/        # Project source code for AI analysis (.py, .js, .json,...)
├── src/
│   ├── server.py           # FastMCP Server (Tool declarations)
│   ├── indexer.py          # SQLite FTS5 Indexing Engine (Handles Text & Code)
│   └── ui.py               # Streamlit Web Chat Interface
├── start.bat               # Windows (Native) automated startup script
├── requirements.txt
└── README.md
F
license - not found
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    -
    quality
    D
    maintenance
    Local-first MCP server that extracts structured knowledge from markdown notes into SQLite with full-text search, enabling AI coding tools to retrieve relevant context offline at zero cost.
    3
    MIT
  • F
    license
    A
    quality
    A
    maintenance
    A filesystem-based MCP server for Obsidian vaults that enables LLMs to browse, search, read, write, and edit Markdown notes directly on disk without requiring Obsidian to be running.
    6
    1,871
    1
  • A
    license
    A
    quality
    A
    maintenance
    MCP server for managing a local, domain-agnostic knowledge base using Markdown notes with frontmatter. Enables AI agents to capture, read, search, link, and maintain notes with atomic writes and privacy controls.
    13
    MIT

View all related MCP servers

Related MCP Connectors

  • Serve a folder of Markdown notes as an MCP server: hybrid search, reading, and sourced answers.

  • Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.

  • Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only

View all MCP Connectors

Latest Blog Posts

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/vjpr0/secure-local-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server