AIcortex
Give any LLM a private, self-hosted brain on your NAS: categorized memory & skills, your tools, devices, email, calendar & webhooks, an encrypted vault, roles & per-user areas — single-user or multi-user, all through one MCP connector.
Install / Use
claude mcp add IkarusMK -- npx -y github:IkarusMK/AIcortexIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
CommunicationSupported Platforms
Tags
Our assessment of AIcortex
AIcortex scores 84/100 on our quality scale, 328th of 414 Communication skills we index.
Its MCP Server is 38 KB long, well organised into 33 sections with 9 code examples: a thorough specification that gives an agent plenty to work with.
It has 10 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated 14 days ago, so AIcortex is actively maintained.
- It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 97/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
AIcortex compared with similar skills
All 4 of these similar skills score higher than AIcortex; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| AIcortex (this skill)by IkarusMK | 84 | 10 | 14d ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 97.6k | today | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 75.4k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.4k | today | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 87.8k | today | MCP Server |
Frequently asked questions
- How do I install AIcortex?
- Run
claude mcp add IkarusMK -- npx -y github:IkarusMK/AIcortex. The install tabs above show the steps for each supported agent. - Which AI agents does AIcortex work with?
- It is written for Claude Code, Claude Desktop and Zed, as a MCP Server file. Other agents that read the same format can often use it too.
- Is AIcortex safe to use?
- It is Apache-2.0-licensed and scores 97/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is AIcortex still maintained?
- The repository was last updated 14 days ago, so AIcortex is actively maintained.
Skill content
View source on GitHubAICortex is a self-hosted MCP server that turns your NAS into a personal LLM connector: a persistent "brain" your assistant loads at the start of every session. Any MCP-capable LLM — Claude, ChatGPT, or a fully local model — gains a durable identity and real reach into your own services and devices, while running inside your network. Non-MCP tools (n8n, LangChain, your own scripts) reach the same brain through a native REST API with scoped per-user keys — and humans get a built-in admin WebUI at /ui for the vault, skills, users and audit log.
The model stays in its provider's cloud (or runs locally). Your memory, skills and secrets stay on your NAS. The assistant talks to AICortex over an HTTPS connector; the server uses your local credentials internally and never hands them to the model. New capabilities are added as data — a skill, a service config, a secret — with no redeploy.
Highlights
🧠 A brain that travels with you
- One-call
bootstrap— loads the guide and a live catalog of the whole brain in a single round-trip - Self-learning, typed memory with a review queue, so it grows without polluting itself
- A skill router — search your skills, load only what's needed, author new ones at runtime
- The same brain across models, desktop and mobile — one account, one state
🔌 Real reach — every integration is just data
- Email (SMTP send + IMAP read), calendars (CalDAV), HTTP services, MQTT & FTP/FTPS devices, WebDAV cloud, SSH/SFTP
- IPP printing & eSCL scanning (straight into Paperless-ngx) on LAN multifunction devices
- Event-driven: inbound webhooks (
POST /hooks/<name>, secret/HMAC-verified) turn external events into inbox items; outbound webhooks notify - An MCP gateway to use other MCP servers' tools — register any integration with one call, no code, no redeploy
🌐 Beyond MCP — drive it over plain HTTP
- A native REST API: every tool as
POST /api/v1/tools/<name>with an auto-generated OpenAPI 3.1 spec — plug AICortex into n8n, LangChain, an OpenAI-compatible client or a shell script, no MCP client required - Per-user API keys: scoped (default-deny), hashed at rest, rate-limited, optional expiry — and a key runs the same per-user areas as an OIDC session, never admin by default
🖥 Built-in admin WebUI — no terminal needed
- Manage the brain from any browser at
/ui: vault (secret names only — values are write-only), skills, users & roles, a read-only services & devices inventory and the audit log — language-switchable DE/EN - Same SSO as the connector (OIDC + PKCE against your IdP, e.g. Pocket ID), admin-only, CSRF-guarded, fully self-contained (strict CSP, no CDNs, no build step) — served by the same container, no extra service
- The UI calls the same functions as the MCP tools, so browser and assistant can never drift
👥 Team, autonomy & continuity
- A presence-aware multi-agent board: live presence, capability-routed task pull, context-preserving handoff
- Cross-LLM session handoff — resume exactly where another model or device left off
- Cron-as-data scheduling with per-user act-as: a scheduled job runs confined to its owner's area, via a short-lived per-job token — never a standing god-token
🔒 Secure & multi-tenant
- Your own OIDC login and roles (admin / user / viewer) — one switch,
AUTH_ENFORCE - Per-user isolation and capability areas: private memory + vault per person, plus default-deny service/skill allow-lists an admin assigns — so not everyone may use every tool
- An encrypted secret vault, an SSRF egress guard, and capability checks that fail closed — end-to-end on your hardware, including a local model (Ollama)
How it works
LLM app — any MCP client (desktop / mobile) · one or many agents
│ custom connector / MCP server (HTTPS, from the model's cloud)
▼
Reverse proxy (Zoraxy / Caddy / nginx / Traefik …)
│
▼
AICortex (this container, on your NAS)
│ uses local files & secrets
▼
Memory · Skills · HTTP services · MQTT & FTP devices · WebDAV cloud · Workspace files
· SSH/SFTP · SMTP + IMAP email · IPP printing · eSCL scanning · MCP gateway · Inbox/Tasks
· Sessions · Cron · Secret vault (every outbound call passes the SSRF egress guard)
How AICortex differs
The "LLM brain" space has some great projects — AICortex deliberately sits in a different spot:
- GBrain is a memory engine — markdown-first, Postgres/PGLite-backed, with a self-wiring knowledge graph and hybrid/vector search. Deep retrieval, one concern.
- CortexPrism is a full agent operating system — its own runtime, ~30 LLM providers, a plugin marketplace, sandboxed code execution and multi-user teams. Batteries included, heavyweight.
- AICortex is a single, lightweight MCP connector: one container that gives any client a persistent brain — memory and skills, devices, sessions, secrets and scheduling — where new integrations are added as data, no redeploy. And unlike most brain projects it isn't MCP-only: the same tools are exposed over a native REST API with an auto-generated OpenAPI spec, so non-MCP clients (n8n, LangChain, a script) plug in too. No database, no graph, no marketplace; you bring your own client.
Rule of thumb: want a dedicated memory/graph engine → GBrain; want a batteries-included agent OS → CortexPrism; want a minimal self-hosted connector that plugs your existing LLM app into your own stuff → AICortex.
Requirements
- A NAS or server running Docker (Compose v2).
- A reverse proxy serving the container over public HTTPS (cloud-hosted LLM clients connect from their provider's cloud, so the endpoint must be reachable from the internet; a purely local client can reach it on the LAN).
- A domain/subdomain pointing at your proxy.
- An MCP-capable client that supports custom connectors / MCP servers (Claude, ChatGPT, or any MCP client).
Quick start
🤖 Installing with an AI coding agent? Point it at INSTALL_FOR_AGENTS.md — it walks the agent through the whole install and verification, handing the human-only steps (DNS, proxy, OIDC) back to you.
git clone git@github.com:IkarusMK/AICortex.git
cd AICortex
cp .env.example .env # adjust PUID / PGID / HOST_PORT / TZ
docker compose up -d --build
The MCP endpoint is served at http://<host>:8787/mcp.
Prebuilt image (no local build): a multi-arch image is published to GHCR by CI. In
docker-compose.yml, comment outbuild: ., uncommentimage: ghcr.io/ikarusmk/aicortex:latest, thendocker compose pull && docker compose up -d.
Expose it & add the connector:
- Point a subdomain (e.g.
agent.example.com) at your reverse proxy. - Proxy that host to
http://<nas-ip>:8787over HTTPS — the upstream is plain HTTP, so do not enable "TLS to upstream". If your proxy geo-blocks, allow your LLM provider's egress region. The published port binds to127.0.0.1by default (only this host's proxy reaches it, not the LAN); a host-network proxy useshttp://127.0.0.1:8787, a bridge-network proxy needsBIND_ADDR=0.0.0.0(or a shared Docker network). - In your MCP client: add a custom connector / MCP server → URL
https://agent.example.com/mcp. - Test: ask the assistant to call the
pingtool.
Authentication & authorization
AICortex separates authentication (who may connect) from authorization (what they may do). Set up the login once, then pick your mode with a single line in .env.
1. Authenticate with your own OIDC provider
Exposing the connector publicly requires OAuth. AICortex uses your own identity provider as the login backend — Pocket ID, Authentik, Keycloak, Auth0, anything with standard OIDC discovery. FastMCP's OIDC proxy handles the MCP-side OAuth 2.1 flow (Dynamic Client Registration + PKCE); your provider does the actual login.
| Variable | Example |
|----------|---------|
| OIDC_CONFIG_URL | https://id.example.com/.well-known/openid-configuration |
| OIDC_CLIENT_ID / OIDC_CLIENT_SECRET | from a client you register in your provider |
| BASE_URL | https://agent.example.com (this server's public URL) |
| JWT_SIGNING_KEY | openssl rand -hex 32 |
Register the OAuth client in your provider with redirect URI <BASE_URL>/auth/callback, then (re-)add the connector in your client to be sent through the login.
🟣 Using Pocket ID? Follow the click-by-click Pocket ID setup guide — creating the OIDC client, the exact
.env, and optional groups → roles.
ℹ️ Don't put reverse-proxy SSO / forward-auth in front of
/mcp— an MCP connector is a machine client and can't follow an interactive login redirect. Authentication belongs at the MCP layer, which is exactly what this does. When the OIDC variables are unset, the server binds to127.0.0.1only (local testing).
2. Pick your mode — one line in .env
| | 🏠 Homelab | 🏢 Enterprise |
|---|---|---|
| For | one trusted person (you) | several people on one brain |
| Tool access | everyone gets every tool | roles: admin / user / viewer |
| Data | one shared brain | per-user memory + private vault |
| The line | AUTH_ENFORCE=0 | AUTH_ENFORCE=1 (default) |
🏠 Homelab — keep it simple
AUTH_ENFORCE=0
Every authenticated caller gets every tool — one shared brain, zero friction. Authentication (OIDC) still guards the front door; you've just turned off the internal role gate.
🏢 Enterprise — several people, one brain
AUTH_ENFORCE=1 # default — the single switch (see below)
OIDC_SCOPE=openid profile email groups # request the groups claim
AUTH_ROLE_CLAIM=groups # map Pocket ID groups → roles
AUTH_ENFORCE=1 is the one switch — "enforce means enforce". It turns on roles (admin / user / viewer), per-user isolation, and per-user capability areas together. Roles are driven by your IdP groups (mapped in data/auth/policy.json, or managed live with the tenancy_* admin tools). Each non-admin is confined to their own memory scope and private vault namespace — two people never read or overwrite each other's data — and reaches only the services & skills an admin assigns (default-deny); an admin provisions per-user secrets (secret_set owner=…) and areas (tenancy_set services=… skills=…). Admins keep full access.
Both modes run the same image. Private data (memory, vault) fails open so a glitch never strands the operator; shared capabilities (services, skills) fail closed under enforce. Full guides: docs/authorization.md · docs/per-user-areas.md.
Capabilities
| Group | Tools |
Truncated for display — read the full file on GitHub.
Related Skills
Agent-Reach
97.6kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
75.4kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
CowAgent
47.4kOpen-source personal AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Scrapling
87.8k🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
