Start free trial

Workspace-scoped OAuth access, encryption, instant revocation, and governance controls for IT administrators.

MCP ServerIT Admins

This guide summarizes how Postcapy secures MCP connections, scopes workspace data, and gives workspace owners and IT administrators full control over AI agent access.

Workspace-scoped access#

Every OAuth grant is explicitly bound to one Postcapy workspace selected by the user during authorization:

  • No cross-workspace access: A token issued for Workspace A can never read channels, drafts, media, or analytics from Workspace B — even if the authorizing user is a member of both workspaces.
  • User role enforcement: Tool calls execute with the effective permissions of the authorizing user inside that workspace and are further restricted to the OAuth scopes approved on the consent screen.
  • No account-level takeover: MCP connectors cannot manage billing, invite or remove team members, change passwords, or connect/disconnect social media accounts.

OAuth 2.1 & protocol controls#

Control Implementation
Authorization flow OAuth 2.1 Authorization Code with mandatory PKCE (S256). Passwords are never shared with AI clients.
Resource binding RFC 8707 Resource Indicators bind tokens to the authorized MCP resource (https://postcapy.com/mcp/claude or https://postcapy.com/mcp).
Token transport Bearer token in the Authorization header only. Tokens passed in query parameters are rejected. MCP endpoints never accept session cookies.
Token lifetime Access tokens (pos_...) expire after 30 days; refresh tokens (por_...) expire after 90 days.
Client discovery Standard RFC 9728 Protected Resource Metadata and RFC 8414 Authorization Server Metadata.
Safe remote media import upload_media_from_url enforces HTTPS-only URLs and blocks private/internal network destinations against SSRF.

Human-in-the-loop governance#

Postcapy is designed so AI assistants accelerate drafting without removing human oversight:

  • Draft-first & scheduled workflows: Ask your assistant to create drafts or schedule posts into future calendar slots so teammates can review copy, live previews, and media before anything publishes.
  • Immutable published history: MCP tools cannot edit, reschedule, or delete posts that have already been published.
  • Composer validation: Every post created via MCP is validated against the same character, media, and network rules as the Postcapy web composer.
  • Attribution: Posts created through MCP record who authorized the action so workspace members can see what was drafted or scheduled.

Instant access revocation#

Workspace members can audit and revoke MCP access at any time without contacting support:

  1. Sign in to Postcapy and switch to the workspace you want to review.
  2. Open Settings → Approved apps (under Developers).
  3. Inspect each connected app's granted scopes and last-used timestamp.
  4. Select Revoke access to invalidate all access and refresh tokens for that grant immediately.

Tip

When disconnecting Postcapy inside an AI client (such as Claude or ChatGPT), also click Revoke access in Postcapy so any previously issued tokens are terminated immediately on the server side.

Deleting a Postcapy account or revoking a user's workspace access also stops their API credentials and approved OAuth grants from accessing that workspace.

Encryption & infrastructure#

  • Encryption in transit: All web, API, and MCP traffic is encrypted over HTTPS/TLS via Cloudflare.
  • Encryption at rest: Connected social account access tokens, refresh tokens, and integration secrets are encrypted at rest; user passwords are stored only as one-way hashes.
  • Hosting & storage: Application servers and the primary database are hosted with Hetzner Online GmbH (Germany). Uploaded media assets and channel profile copies are stored on Cloudflare R2.
  • AI training commitment: Postcapy does not sell personal data, use it for advertising, or use data from your connected social media accounts to train AI models.
  • YouTube Limited Use: In compliance with Google API Services User Data Policy (Limited Use), YouTube channels and videos are never accessible via MCP, the REST API, or the CLI.

Policies & security contact#