Every AI app I use starts from zero.

Claude Code on the laptop, claude.ai on my phone and Codex each keep their own MCP servers, their own API keys and their own memory. A new laptop or a new AI meant an evening of setting everything up again, and my notes, passwords and Telegram were not reachable from any of them.

So I built SelfMCP: one MCP server, on a server I own, that every AI connects to. I think of it as an exosuit. The AI is swappable, the suit stays.

SelfMCP: one link, every AI app gets your memory, skills, MCPs, vault and messengers

What you get

You connect each client once, with one URL and a browser sign-in (OAuth 2.1). After that every AI you use sees:

  • one memory: notes as Markdown, with a git commit for every AI write, so any bad edit is one click to undo;
  • your skills and profile, served as MCP prompts and instructions;
  • all your other MCP servers: remote ones by URL, npm / PyPI / Docker packages each in its own container with its own network policy. You paste the same claude mcp add ... line you would put in a local config;
  • a vault: the AI passes a reference, the server injects the secret into the call, the model never sees the value;
  • your Telegram account and IMAP/SMTP mail as tools;
  • per-device rules, enforced on the server: "the phone may read mail, not send it".
Without SelfMCP With SelfMCP
Memory each AI forgets the others one memory, every AI reads and writes it
MCP servers set up again in every app add once, every AI has it, no reconnect
API keys pasted into config files in a vault: the AI uses them, never sees them
New laptop or new AI an evening of setup paste one link

The 300 tools problem

If you put 300 tools in front of a model, it gets worse at picking the right one, and your context fills up before you say anything. SelfMCP exposes tools in three tiers:

  1. Pinned: about 20 tools with full schemas, picked automatically from your call statistics, plus the ones you pin yourself.
  2. Catalog: every other tool as one line in the server instructions; the model fetches the schema with get_tool and calls it through call_tool.
  3. Service tools: search_tools, connect, status.

The exposed tool list never changes when you add an upstream MCP, so no client has to reconnect.

Install

Paste this into Claude Code or Codex:

Install SelfMCP for me: https://github.com/AlexZai007/selfmcp 

or run it in a terminal:

curl -LsSf https://raw.githubusercontent.com/AlexZai007/selfmcp/main/install.sh | sh 

It asks where to install (a VPS over SSH, this server, or only this computer), sets up HTTPS, a firewall and nightly backups, moves your notes, Claude skills and MCP configs over (passwords and keys go to the vault, not into notes), and connects Claude Code and Codex on your machine. Any $5 VPS with 2 GB RAM works.

Stack and status

Python 3.12, the official MCP SDK, Postgres, Caddy, Docker. AGPL-3.0. About 100 decision records in docs/decisions if you like reading why things are the way they are.

It is a beta (v0.1.0-beta.2), so expect rough edges. I would love feedback on two things: the security model (docs/ARCHITECTURE.md, SECURITY.md), and whether "one MCP for every client" matches how you use AI.

Repo: https://github.com/AlexZai007/selfmcp