Ask your agent: OwnWing over MCP
Every OwnWing app has its own MCP server, and they all answer through one door: the gateway at
https://mcp.<domain>/mcp (<domain> is your OWNWING_DOMAIN). A coding agent (Claude Code, Codex,
Cursor…) connects to it once, you approve what it may reach, and then you can ask questions and give
tasks about your own photos, files and apps from the agent. It goes through the same apps, rules and
audit as the web and the phones: the agent never touches the data on disk.
The gateway runs by default (the mcp profile of COMPOSE_PROFILES, ./ownwing status shows its
address).
Connect Claude Code
One line, on the machine you work on:
claude mcp add --transport http ownwing https://mcp.<domain>/mcp
Then start Claude Code and type /mcp: choose ownwing and sign in. Your browser opens OwnWing ID,
asks for your passkey or passcode and shows what the agent wants: for each app you can use,
read or read and write (admins also get an “Administer OwnWing ID” switch, off by default).
Approve, and the agent has OwnWing’s tools, named <app>_<tool> (files_search,
calendar_create_event), plus three that look across every app: ownwing_search, ownwing_today
and ownwing_whoami, and ownwing_validate_screen, which checks a screen document for an extension’s
adaptive UI.
A local certificate
With the default certificates (Caddy’s own CA, OWNWING_ACME_EMAIL empty) Node-based agents don’t
trust the address until they know that CA. Export it once (./ownwing ca says where it is and how to
trust it on this machine) and start the agent with it:
export NODE_EXTRA_CA_CERTS=/path/to/ownwing-root.crt
claude
With a real certificate (OWNWING_ACME_EMAIL) there is nothing to do.
An agent that can’t do remote MCP: the bridge
Clients that only run local (stdio) MCP servers use the bridge, which is part of the ownwing npm
package:
npx ownwing mcp --login # once: opens the browser, signs in, saves the sign-in
and in the client’s MCP settings the command npx with the arguments ownwing mcp. The bridge asks
OwnWing ID the same way Claude Code does (dynamic registration, then authorization code with PKCE on
a loopback address), keeps its tokens in the macOS Keychain or the Linux secret service, or else in a
file only you can read (~/.config/ownwing/), and forwards every message to the gateway. It finds the
gateway from OwnWing’s .env when started in its folder (or ~/ownwing); elsewhere give
--url https://mcp.<domain>/mcp or set OWNWING_MCP_URL. npx ownwing mcp --logout forgets the
sign-in on that machine. The local certificate above applies here too (NODE_EXTRA_CA_CERTS).
What an agent can and can’t reach
Can: everything you granted it, as you, with no extra approval: read and write in the apps you ticked, deletes included (so grant read when you only want answers). It sees your own data and what is shared with you, with the share’s role.
Can’t, whatever the grant:
- the Vault and locked notes (left out of tools, resources and search);
- other people’s data: an agent acts as one person;
- disk paths: files come and go only through Files’ tools, by id;
- administering OwnWing ID (people, roles, invites, app passwords), unless you are an admin and turned the switch on when approving.
Limits (change them in .env, configuration): 256 KB of text per
result (longer things are read in ranges), 25 MB per upload, 120 calls a minute per agent, 60 seconds
per call. If an app is stopped its tools disappear from the list until it is back.
Every call is recorded in OwnWing ID’s audit log (you, the agent, the app, the tool, what it touched, the result), reads included.
Revoking
OwnWing ID › Sign-in & security › Connected agents lists each agent, its apps and scopes and when it last acted. Change its scopes or revoke it in one tap: its tokens stop at once. Removing or pausing a person revokes their agents.
Examples
- “What is on my calendar this week, and which reminders are overdue?” (
ownwing_today) - “Find everything about the rental contract.” (
ownwing_search) - “Tidy my Downloads folder: show me the plan first.”
- “Make an album of last summer’s trip.”
- “Summarize my meeting notes from Monday and turn the action items into reminders.”