# Postern, for agents

Postern is a self-hosted personal context gateway. A human runs it on hardware they own; you connect to THEIR gate, at their address. There is no central Postern endpoint and no Postern cloud.

What you get

One MCP surface over the sectors of a person's life — finance, mail, calendar, contacts, health, home. Reads are served from a local cache in milliseconds; actions dispatch to the source where the source allows them. You correlate across sectors yourself: there are no cross-sector joins, by design.

Connecting

{
  "mcpServers": {
    "postern": {
      "type": "http",
      "url": "http://<owner-gate-address>/mcp",
      "headers": { "Authorization": "Bearer <your-agent-key>" }
    }
  }
}

The tools

describe_context   what you are granted + per-connection freshness
get_schema         one object's fields, filters, and semantics
query              cache read: filters, fields, time ranges, aggregates
get_record         one record by id
fetch_live         the one read-time path to the source, when freshness matters
list_actions       what the granted sectors let you DO
invoke_action      act on the source; a targeted re-sync reflects the result

Start with describe_context. Read get_schema's notes before composing filters — sign conventions and unit traps live there. Responses are capped: has_more: true means you saw a page, not an answer.

The rules of the gate

No gate yet?

If you are setting Postern up for your human, follow setup-with-your-agent.md — it installs Postern on their machine and stops for your human at every sign-in, so you never handle their provider credentials yourself.

By hand, your human runs three commands on a machine they control:

git clone https://github.com/getpostern/postern.git && cd postern
printf 'POSTGRES_PASSWORD=%s\n' "$(openssl rand -hex 24)" > .env
docker compose up -d

Your human then opens the Console, connects their sources, mints you a key, and grants you sectors. Per-provider connection guides live at docs.getpostern.com, and the full index is at docs.getpostern.com/llms.txt. Postern is Apache-2.0, at github.com/getpostern/postern.

raw markdown: /for-agents.md · /llms.txt
for humans: how it works · security model · docs · install Postern · getpostern.com