# Miftah — Multi-Account MCP Profiles

> Use one MCP connector with several accounts — work, personal, client, production — and let your agent switch deliberately, with credentials kept out of client config.

Miftah — Multi-Account MCP Profiles is a free AI agent skill on Agensi by mohammed anji, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [mohammed anji](https://www.agensi.io/creators/mohammed-anji)
- Category: [Security](https://www.agensi.io/skills/security)
- Uses: 3
- Version: 1.0
- Last updated: 2026-10-15
- Security: scan passed (2026-10-15); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/miftah-multi-account-mcp-profiles
- Tags: security, devops, ai-agents, github, multi-account, claude-desktop

## About this skill

### Miftah — the right account, every time

You already trust an MCP server for GitHub, Sentry, or Google Search Console. The trouble starts when the same server needs two accounts: you end up with `github-work` and `github-personal` as near-identical client entries, tokens pasted into JSON, and no clear signal which account the agent is about to use.

Miftah runs locally in front of that upstream server. Your client sees one connector. Behind it sit named profiles, each with its own credential reference, and the agent lists, checks, and switches them on purpose.

### What this skill teaches your agent

- **Pick the right setup path.** Terminal wizard, browser Console, or a scripted preset (GitHub, Sentry, pinned npx, Docker by digest, remote HTTPS, reviewed local executable).
- **Never touch your secrets.** It will not ask you to paste tokens, and it will not read or print secret values. It tells you which references to fill: environment variable, OS keychain, 1Password, or dotenv.
- **Validate before connecting.** Runs `validate`, `doctor`, and `test-profile`, and reports results without overstating them.
- **Connect your client safely.** Shows you the exact snippet and where it goes; Miftah never edits client settings silently.
- **Confirm the account before writes.** Checks the active profile before any change, asks you before switching, and only approves pending actions you approved.

### Local by design

- No cloud service and no telemetry.
- Configs hold secret references only, never values.
- Redacted diagnostics and optional hash-chained local audit metadata.

### Who it's for

Developers, freelancers, and agencies using one MCP service across work, personal, client, or production accounts.

### When it won't help

If you use one account and need none of these controls, keep your direct MCP entry. Miftah wraps an upstream; it does not fix an upstream that doesn't work on its own, and its policy cannot reduce what a provider token is already allowed to do.

Open source (MIT): https://github.com/mohanagy/miftah

## Requires

- Node.js 20+
- Miftah CLI (@lubab/miftah on npm, MIT)
- Docker (GitHub and Docker presets only)
- or

## Known limitations

Requires Node.js 20+. No support for generic/npx presets on Windows. Local policy cannot override upstream token permissions. Secret values must be provided by the user via external providers.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Miftah — Multi-Account MCP Profiles skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What does this skill do?

It teaches your agent to set up and operate Miftah, a local wrapper that puts several accounts (work, personal, client, production) behind one MCP connector. Your agent lists profiles, confirms the active one, and switches only when you ask, instead of you juggling duplicate client entries.

### Which clients and upstream MCP servers does it support?

Miftah generates client snippets for Claude Desktop, Claude Code, Cursor, and VS Code. Upstreams: reviewed presets for GitHub (Docker) and Sentry, any exact-pinned npx package, Docker images by digest, remote HTTPS MCPs, reviewed local executables, and Google Search Console via the setup wizard.

### Will the agent see my tokens?

No. The skill tells your agent never to ask for, read, print, or write secret values. Miftah configs hold references only; you supply the values through an environment variable, the OS keychain, 1Password, or a dotenv file.

### What does setup involve?

Node.js 20+ and the Miftah CLI. If it's missing, your agent shows you the exact pinned install command (npm install -g @lubab/miftah@1.1.6) and runs it only after you say yes. Then you use the terminal wizard, the browser Console, or a scripted preset; the agent validates the config and shows you the client snippet to merge.

### Any OS limits?

On Windows, the generic, sentry, and generic-npx presets are refused because they need a command shell. Use Docker, a direct .exe, or a remote MCP there. The GitHub preset needs Docker on every OS.

### What exactly do I get?

A SKILL.md plus two reference files (CLI reference and troubleshooting) that teach your agent to set up and run Miftah safely. Miftah itself is a separate, free, MIT-licensed npm package (@lubab/miftah) by the same author; the skill does not bundle it.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
