Skip to main content
Glama

Munim

PyPI Python Tests Licence Glama

One MCP server holding a live session with every client's account at once.

A coding agent can be logged in to one Cloudflare account. One Vercel. One Resend. Connect a second client and the first goes away. So the person looking after a dozen small businesses runs a dozen agent sessions, and none of them can answer a question about more than one client.

Munim holds them all. Each client gets its own registration with the provider, its own token and its own namespace in the tool list, so one agent can read across every client and write inside the one you named.

Kloudfirst       -> Kloudfirst@gmail.com's Account   (3 tools)
Ivy & Fern       -> ivy@example.com's Account        (3 tools)

both sessions opened concurrently, one process, no logout

That is a real run against two real Cloudflare accounts, not a diagram. The second account is a client's and their address is replaced here: they did not consent to a public repository, and this file is also the PyPI page. Reproduce it with your own two: scripts/cross_account_probe.py.

Install

Requires Python 3.10+. Nothing else: no Node, no build step, no account to create first.

uv tool install munim          # or: pipx install munim, or: pip install munim
claude mcp add munim -- munim-mcp

If a coding agent is doing the install for you, point it at llms-install.md, which says the parts that are easy to get wrong when nobody is watching the terminal, and where it has to stop and hand back.

Related MCP server: Daemoon

Start

munim clients                          # who you look after, and what is connected
munim clients add "Ivy & Fern"         # write one down, connect nothing yet
munim connect "Ivy & Fern" cloudflare  # a browser opens; that is the whole setup

There is no wrong order. Connect first and the account you sign in to names the client, or write the client down first and connect whenever. Both arrive in the same place.

Then ask your coding agent something a single logged-in session cannot answer:

which of my clients has a domain expiring this quarter?
check ivyandfern.co.uk for Ivy & Fern Studio

Doing the work, not just the diagnosis

Munim does not wrap each provider in verbs of its own. Every provider here runs its own MCP server with its own tools, so Munim forwards them and supplies the credential:

munim tools "Ivy & Fern" cloudflare          # what that account can be asked to do
munim call  "Ivy & Fern" cloudflare execute --args '{"code": "..."}'

Your coding agent gets the same two as list_provider_tools and call_provider_tool. There is no model in this path, so it works with agents off, and every call is written to the run log with the tool and its arguments. A call names one client and resolves that client's credentials alone.

When a provider's own MCP server does not publish what you need, call_provider_api goes a layer down and makes one HTTP call to that provider's API with the same client's credential. Vercel publishes no environment-variable write and no way to attach a domain to a project, which is what this is for. It takes a path and never a URL, and refuses anything that would send the credential to another host.

Munim is local by default. The checks, the audit and the mail plan are deterministic: they never needed a model and never call one, and neither does the passthrough above. Three tools can also reason about what they find (check, work_on_client, ask_across_clients), and that is switched off until you ask for it, so having a key lying around is not the same as consenting to use it.

munim config ai key gemini   # prompts, stored in ~/.munim/credentials.json
munim config ai on           # takes effect on the next call, no reconnect
munim config ai              # what is on, on what, and where each came from

Hosts are Amazon Bedrock, which works out of the box, plus Google Gemini and Anthropic, which Strands ships as extras: pip install 'munim[gemini]'.

One thing this does not change: Munim runs as an MCP server, so whatever its tools return goes into your coding agent's context and therefore to whichever model that agent runs on. Turning agents off stops Munim calling a model of its own; it cannot change how MCP works. The privacy policy says so plainly.

munim doctor says what is set up, what is not, and the exact command to fix each gap. Start there whenever something is unclear.

Where to find it

The video is a real run against a real client's domain: fifteen deterministic checks find two faults, a Strands agent explains them in the owner's language, and the repair stops at an edge condition because that client is not connected to the provider a repair would need. Nothing in it is staged, which is also why there is no repair on camera.

To run it yourself without installing anything: scripts/check_client.py runs the check catalogue against one client and writes the report, and scripts/fix_client.py runs the repair graph. Both use the same code paths as the check and fix MCP tools, with no agent in front of them.

Documentation

Commands

the whole CLI

Tools

what your coding agent gets, and what it deliberately cannot do

Providers

a page each: setup, what connecting grants, what is verified

Architecture

how it is built, and the four decisions that shape it

Decisions

every design decision and its reasoning, including the wrong ones

Roadmap

what is not done, and why

Development

running the tests, and reproducing the claim above

Why this exists

One person maintains the web and email setup of a dozen small businesses. The clients own the accounts; the operator holds delegated access and does the work. Every provider allows one login at a time, so the workaround is a separate agent session per client.

The costly part is not the switching. It is that a mistake in mail setup breaks nothing visible. Get an A record wrong and the site is down in minutes. Get the SPF record wrong and the client's invoices quietly stop arriving, and nobody notices for weeks.

A munim is the steward a business owner trusts to keep their books and handle their affairs without being asked each time.

Disclosure

Built with AI assistance. No pre-existing code was incorporated; the repository was created during the submission period.

Licence

MIT. See LICENSE.

Contributing

CONTRIBUTING.md says how to run the two suites and what a good change looks like here, which is mostly about writing down why. docs/DECISIONS.md is the numbered log those reasons live in, and several of its entries reverse an earlier one.

Adding a provider needs no Python. Eleven ship and only the first needed any: a provider here is a row in a table, and munim servers add <name> <url> works out how that server authenticates by asking it. munim servers export <name> then prints the row for a pull request. That lane asks for the row, a page copied from docs/providers/TEMPLATE.md, and the measurement you took. It does not ask for a failing test, because tests/test_provider_docs.py already fails when a row arrives without a page.

Security issues go in a private advisory rather than an issue. SECURITY.md says what is in scope, and lists what is already known and deliberate so a report can skip it.

Available Tools

16 tools
add_clientA

Register a client by name. Holds no credential, only a name and a domain.

Returns the client's id, name and domain.

Use this to write a client down before connecting anything. You do not need it first: naming a domain in check or fix registers it on the spot. Connecting a provider is a separate step, connect_provider.

Inputs: name (required), domain.

apply_mail_setupA

Carry out a plan from plan_mail_setup.

Returns what was published and what was left unchanged, plus a run_id. When approval is needed and not given it returns needs_approval and changes nothing, so calling it again with approved=true is safe.

approved is required only for records that already exist. Creating one that is absent is not a judgement call; replacing one somebody published is theirs to make, so show them the plan first.

Inputs: client (required), plan_id (required), approved.

ask_across_clientsA

Ask one question about every client at once, using their own accounts.

Where find_across_clients answers the questions the check catalogue already asks, this reaches each client's provider account through that provider's own MCP server, so it can answer ones nobody wrote a check for. Only clients with a session are included.

Read-only by construction: every tool it holds is filtered to those the provider marks read-only, so a tool that changes anything is not present to be called. Naming one client is what unlocks writes (D5).

Inputs: question (required).

audit_all_clientsA

Run the whole check catalogue against every client, reporting only what needs attention.

Returns one entry per client that has something wrong, naming the client beside each failing check, plus a run_id. Clients that pass are omitted entirely, so an empty result means every client is healthy.

Read-only across every client, and it never writes. Use check for one client with a report, and find_across_clients when you want one specific check across everybody rather than the whole catalogue.

Inputs: dkim_selector.

call_provider_apiA

Make one HTTP call to a provider's own REST API with one client's credential.

Returns the status and the parsed body, plus a run_id. Every call is recorded as a mutation whatever the method, because an HTTP verb is a convention rather than a guarantee, and the response body is never written to the log.

Use this only when the provider's MCP server publishes no tool for the job: list_provider_tools first, call_provider_tool if it names one. Vercel publishes no environment-variable write and no project-domain attach, which is what this exists for. Works for cloudflare, vercel and resend, the three whose REST shape Munim knows.

Inputs: path (required), client (required), provider (required), body, +2 more.

call_provider_toolA

Call one of a provider's own tools with one client's credentials.

Returns the provider's own result, plus a run_id. Arguments are forwarded untouched, so anything that server accepts is reachable. Take tool and arguments from list_provider_tools rather than guessing.

One call resolves one named client's session and touches no other account, and the tool and its arguments go to the run log; read it back with launch_status. No model is involved, so this works with agents off.

Inputs: tool (required), client (required), provider (required), arguments.

checkA

Run the deterministic check catalogue against one client or one domain.

Returns the failing checks with an owner-facing sentence for each, counts of what was checked and skipped, a run_id, and report_file, where the report was written. watch and report are control room URLs and appear only while it is running. DNS decides pass or fail, never a model; with agents on, a model adds the explanation and nothing else.

target may be a client name, a domain belonging to one, or a domain nobody has mentioned before, which registers it: there is no setup step. Use audit_all_clients to run the same catalogue across every client at once, and fix to repair what it finds rather than only reporting it.

Inputs: target (required), dkim_selector.

client_statusA

What is known about one client: their domain, what is stored, and what actually opens right now.

Returns the client's name and domain; stored, every provider with a credential filed; api_key and mcp_session, saying which of the two stores each one came from; and connected, needs_login and unreachable, from asking each provider live. Never includes a credential value.

Use this for one client and list_clients for all of them. The two stores are not interchangeable: api_key is what the mail tools call REST APIs with, mcp_session is what a provider's own tools run on, and a client can have one without the other.

Inputs: client (required), check.

connect_providerA

Store a pasted API key for one client and one provider.

Returns which provider was connected, never the credential itself.

Use this only for providers with no browser login, or when a REST API key is needed alongside a session: the mail tools call REST APIs and a browser session is a different credential. munim connect at the terminal does the browser login.

Inputs: client (required), provider (required), credential (required).

find_across_clientsA

Run one named check across every client at once.

Returns one row per client with that check's result and the evidence behind it. Read-only, and it never writes.

need is a check name from the catalogue, such as spf_single, dmarc_policy or dkim_present. Use audit_all_clients to run the whole catalogue instead of one check, and ask_across_clients when the question is open-ended rather than one of these.

Inputs: need (required). Returns: result

fixA

Check a client's domain, then repair what can be repaired safely.

check explains what is wrong. This acts on it. The same thirteen deterministic checks run first and are still never decided by a model; what a model decides is which repair to reach for, out of a set of tools that cannot do anything else.

Anything that would replace a record somebody already published stops and waits for a person. Approve it in the control room, or call apply_mail_setup with approved=true. Creating a record that is absent is not a judgement call and does not stop.

report_file is always written. watch and report are control room URLs and appear only while it is running; munim approve answers without it.

With agents off the checks still run and their findings still stand, exactly as check degrades: only the repair needs a model.

Inputs: target (required), dkim_selector.

launch_statusA

Read a run back without waiting on it.

Returns that run's events in order: what was checked, what changed, what is waiting on a person. Defaults to the newest run.

A check or a repair can outlast a single tool call, so progress is read from the run log rather than held open.

Inputs: run_id.

list_clientsA

List every client and what each one can actually reach.

Returns one row per client with their domain, stored (every provider with a credential filed), api_key and mcp_session saying which store each came from, and connected, needs_login and unreachable from asking each provider live. Pass check=false to skip the live probes and report only what is stored, which is instant.

Use client_status for one client in the same shape.

Inputs: check. Returns: result

list_provider_toolsA

List the tools this client's account with this provider actually publishes.

Returns each tool's name, description, argument schema, and whether the provider marks it read-only. read_only is what the provider says about its own tool; null means it said nothing, and it is reported rather than enforced.

Read this before call_provider_tool, which invokes one of them. Start with names_only, which returns names and read-only flags alone: for Resend that is 2KB against 122KB, and the full listing has exceeded a caller's response limit outright. matching filters on the name, the description and the argument schema, so "which tools take a teamId" is answerable.

Inputs: client (required), provider (required), matching, names_only.

plan_mail_setupA

Work out what setting up email for this client's domain would change.

Returns a plan_id and every record that would be created or replaced, each with its current published value beside the proposed one, and a count of how many need a person to approve them. Touches no client DNS.

One honest note: planning creates the sending domain in your own Resend account, because Resend publishes no DKIM values until the domain exists. Pass the plan_id to apply_mail_setup to carry it out, or use fix, which plans and applies in one call and stops for approval in between.

Inputs: client (required), domain (required).

work_on_clientA

Carry out a request inside one named client's provider accounts.

Returns what was done in the agent's own words, and which providers it had available. Every change is written to the run log as it happens, so launch_status reads it back.

The agent is built with only this client's sessions, so a request needing a second account has nothing to reach with. Use ask_across_clients to read across every client instead, and fix when the job is repairing DNS or mail, which is deterministic and stops for a person before replacing a record somebody published.

Inputs: client (required), request (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 16 tools

    Disambiguation5/5

    Each tool targets a distinct operation: cross-client queries (ask_across_clients, find_across_clients, audit_all_clients), single-client actions (check, fix, client_status, work_on_client), provider interactions (list_provider_tools, call_provider_tool, call_provider_api), setup workflows (plan_mail_setup, apply_mail_setup), and client management (add_client, connect_provider). Overlapping tools are clearly differentiated by scope (all vs one client, specific check vs full catalogue, open-ended vs predefined).

    Naming Consistency4/5

    The vast majority of tools follow the verb_noun snake_case pattern (list_clients, find_across_clients, call_provider_tool, apply_mail_setup, etc.). The single exception is 'client_status', which uses a noun phrase instead of a verb-first format, but it is still unambiguous and consistent in style.

    Tool Count5/5

    16 tools is well-scoped for a client management and email/DNS configuration server. Each tool serves a distinct purpose without redundancy, covering discovery, diagnostics, remediation, provider integration, and workflow orchestration. The count is within the ideal 3-15 range (slightly above but justified by the breadth of functionality).

    Completeness4/5

    The tool surface covers the full lifecycle: client creation, provider connection, status checks, health audits, targeted fixes, mail setup planning and application, and run monitoring. Minor gaps exist (e.g., no explicit tool to delete a client or disconnect a provider, and no tool to list the check catalogue directly), but these are likely handled through other means and do not cause agent failures in core workflows.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Gives AI coding agents (Claude Code, Cursor, etc.) unified, secure access to dev infrastructure (Vercel, GitHub, Supabase, Cloudflare, GCP) via a single MCP token.
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      One MCP that turns Claude Code into your whole dev stack by swallowing other MCP servers, delegating to Codex & Gemini on your CLI subscriptions, remembering projects in a searchable knowledge graph, and carrying setup across sessions — secret-free by design.
      23
      4
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Unified MCP server for DevOps engineers that provides real-time read and write access to Kubernetes, ArgoCD, Prometheus, and PagerDuty from any MCP-compatible AI agent.
      21
      86 npm
      5
      MIT