Your mail, chats and documents indexed into a local SQLite corpus, served to AI clients over MCP.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Your personal AI brain β local, open source, speaks MCP.
Website Β· Download Β· Architecture docs
Everyone is building the company a brain β a knowledge layer that ingests everything an organization knows, so AI can answer and act with real context. KIAgent is that layer for you personally. A company brain lives in someone else's cloud and belongs to your employer; your personal AI brain runs on your own machine, works with whatever AI you choose, and is yours forever.
Concretely, KIAgent is a desktop app that ingests your personal data β mail, documents, chats, notes β on your own machine, stores it in a local database, and serves it to AI assistants over MCP. Everything stays on your computer: ingestion, parsing, OCR and vision all run locally β with on-device inference powered by llama.cpp β so your AI assistant can know your world without your data ever leaving your machine.
At its core, KIAgent is a platform: a small set of host capabilities (MCP, database, local LLM, filesystem, web access) wired together by an ingestion engine, plus a plugin/extension system that lets sandboxed connectors use those capabilities to bring in new data sources.
Plugins sit at the center: each one connects to a third-party service (Gmail, Drive, Slack, Notion, ...) or the local filesystem, pulls your data in, uses the local LLM to process it, and lands it in the database β which MCP then serves to AI assistants. Access is mediated and permission-gated; plugins never touch these capabilities directly.
This repository is the MIT-licensed core that KIAgent is built from, in the same spirit as VS Code and Code-OSS:
npm run package:oss produces an unbranded kiagent-core build you can run and redistribute under the MIT license.OAuth-backed sources (Gmail, Microsoft) read client credentials from the environment at build time β see .env.example / CI secrets. Forks and OSS builds supply their own OAuth client IDs.
src/main/core/engine) β pulls batches from sources on a cadence, converts raw items (mail, PDFs, images) into indexed documents, and commits them to the store. Built-in sources live in src/main/sources (Gmail, IMAP, Microsoft 365, local folders).src/main/core/store, src/main/db) β a SQLite corpus (better-sqlite3) holding documents, metadata and search indexes, written by the app and read by the MCP processes.src/main/core/mcp, src/main/mcp) β exposes the corpus to AI assistants over two transports sharing one tool registry: an HTTP server inside the app, and a standalone stdio entry point that clients like Claude Desktop spawn directly.src/main/providers/local-llm, src/main/providers/apple-vision) β on-device inference via a bundled llama.cpp server (backend auto-detection, curated model tiers) plus native OCR/vision helpers for scanned documents and images.src/main/workers, src/main/converter).src/main/auth, src/main/platform/oauth-providers.ts), and marketplace downloads.src/main/platform, src/main/marketplace) β connectors run in isolated host processes with a manifest-declared, permission-gated view of the platform (sources, auth, storage, network). A GitHub-backed marketplace handles discovery, install and updates. A second, privileged tier lets a product build ship first-party extensions inside the app package itself β see docs/architecture/extension-platform.md for the full model, including the bundled/unsafe.mainProcess tier and product.json.src/renderer) β the React UI: source setup, marketplace, MCP connection status, settings and logs.Other useful scripts:
KIAgent is published on the official MCP registry as com.localkiagent/kiagent (see server.json) and listed on Glama:
KIAgent's on-device inference is powered by llama.cpp, created by Georgi Gerganov and maintained by the ggml-org community (MIT license). The app bundles prebuilt llama-server binaries from the official llama.cpp releases (npm run vendor:inference fetches them at build time). Running capable models privately on consumer hardware is only practical because of their work β thank you.
MIT β see LICENSE.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/kiagent)<a href="https://allmcps.com/mcp/kiagent"><img src="https://allmcps.com/api/badge/kiagent?style=directory" alt="KIAgent on AllMCPs" /></a>