Patricia MCP Servers API
The mcp-servers API from Patricia — 8 operation(s) for mcp-servers.
The mcp-servers API from Patricia — 8 operation(s) for mcp-servers.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/patricia-app:patricia-app-mcp-servers-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Patricia MCP Servers API
version: 0.1.0
tags:
- name: mcp-servers
paths:
/v1/mcp-servers:
post:
tags:
- mcp-servers
summary: Connect an MCP server
description: Validates and probes the server, then registers it. The connection is shared with the whole workspace unless the caller asks for a personal one, which only its owner can use.
operationId: register_mcp_server_v1_mcp_servers_post
security:
- HTTPBearer: []
parameters:
- name: X-Tenant-Id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Tenant-Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/RegisterBody'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/McpServerResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/mcp-servers/auth-discovery:
post:
tags:
- mcp-servers
summary: Check how an MCP server signs in
description: Detects how the server at an address signs in, before the caller chooses how to connect. Records nothing and returns only the mode. A check the workspace's allowance refuses, or one that does not finish in time, answers unknown. An address that answers as no tool at all is refused with a sentence instead.
operationId: discover_mcp_auth_mode_v1_mcp_servers_auth_discovery_post
security:
- HTTPBearer: []
parameters:
- name: X-Tenant-Id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Tenant-Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/McpAuthDiscoveryBody'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/McpAuthDiscoveryResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/mcp-servers/oauth/client-metadata:
get:
tags:
- mcp-servers
summary: Patricia's OAuth client-id metadata document
description: The public client-id metadata document authorization servers fetch to learn who Patricia is. Its `client_id` is this URL, which is what makes the identifier verifiable.
operationId: read_cimd_document_v1_mcp_servers_oauth_client_metadata_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response Read Cimd Document V1 Mcp Servers Oauth Client Metadata Get
/v1/mcp-servers/oauth/client-metadata/jwks.json:
get:
tags:
- mcp-servers
summary: Patricia's OAuth client-assertion public keys
description: The JWKS the client-metadata document points at. Publishes the public half of every signing key still in rotation, so a server holding either cached copy can verify.
operationId: read_signing_jwks_v1_mcp_servers_oauth_client_metadata_jwks_json_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response Read Signing Jwks V1 Mcp Servers Oauth Client Metadata Jwks Json Get
/v1/mcp-servers/oauth/finalize:
post:
tags:
- mcp-servers
summary: Finish an OAuth connect (hop 2)
description: Redeems the one-time capability from the callback, exchanges the authorization code, and installs the server. Requires the same person who started the ceremony.
operationId: finalize_mcp_oauth_v1_mcp_servers_oauth_finalize_post
security:
- HTTPBearer: []
parameters:
- name: X-Tenant-Id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Tenant-Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/OAuthFinalizeBody'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/McpServerResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/mcp-servers/oauth/start:
post:
tags:
- mcp-servers
summary: Begin an OAuth connect for an MCP server
description: Discovers the server's authorization service, registers a client if one is needed, and returns the URL to send the connecting person to. Nothing is connected until the ceremony completes.
operationId: start_mcp_oauth_v1_mcp_servers_oauth_start_post
security:
- HTTPBearer: []
parameters:
- name: X-Tenant-Id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Tenant-Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/OAuthStartBody'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/OAuthStartResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/mcp-servers/{account_id}:
get:
tags:
- mcp-servers
summary: Read one connected MCP server's dial state
description: The auth mode, refresh state and last catalog reading. Management readers receive the endpoint and header name; SPACE Use readers receive the endpoint origin without its path or query. The response omits the stored token.
operationId: read_mcp_server_v1_mcp_servers__account_id__get
security:
- HTTPBearer: []
parameters:
- name: account_id
in: path
required: true
schema:
type: string
format: uuid
title: Account Id
- name: X-Tenant-Id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Tenant-Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/McpServerResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
patch:
tags:
- mcp-servers
summary: Change an MCP server's address, token or header
description: Applies the change in place, bumps the connection generation and disables the server's tools until a same-generation sync succeeds.
operationId: update_mcp_server_v1_mcp_servers__account_id__patch
security:
- HTTPBearer: []
parameters:
- name: account_id
in: path
required: true
schema:
type: string
format: uuid
title: Account Id
- name: X-Tenant-Id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Tenant-Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateBody'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/McpServerResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/mcp-servers/{account_id}/syncs:
post:
tags:
- mcp-servers
summary: Refresh an MCP server's tool catalog
description: Re-fetches the server's tools. Also the manual retry after a refused reconcile.
operationId: refresh_mcp_server_v1_mcp_servers__account_id__syncs_post
security:
- HTTPBearer: []
parameters:
- name: account_id
in: path
required: true
schema:
type: string
format: uuid
title: Account Id
- name: X-Tenant-Id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Tenant-Id
responses:
'202':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/SyncQueuedResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
OAuthStartBody:
properties:
client_id:
anyOf:
- type: string
maxLength: 1024
- type: 'null'
title: Client Id
client_secret:
anyOf:
- type: string
maxLength: 8192
- type: 'null'
title: Client Secret
base_url:
type: string
maxLength: 2048
minLength: 1
title: Base Url
account_id:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Account Id
visibility:
anyOf:
- type: string
enum:
- team
- personal
- type: 'null'
title: Visibility
additionalProperties: false
type: object
required:
- base_url
title: OAuthStartBody
description: 'The address, and — only on a second attempt — the client credential the server needs.
No auth-mode chips. The client credential is a LATER step by design, offered only after every
automatic path has been tried and refused: asking for it up front would make the common case
(96.2% of hosts register automatically) look like the hard case. The dashboard does not show the
fields until a start has come back with ``MCP_CLIENT_CREDENTIALS_REQUIRED`` or
``MCP_PUBLIC_CLIENT_ID_REQUIRED``, and then it resubmits this same body with them filled in. The
second code is what makes the secret optional on that form, for a service that issues none.
**A secret never arrives without an id.** A lone secret is a 422, not a partial credential; a
lone id is a public client, and only the discovered server can say whether that is one this
service issues.
**An empty secret is read as none supplied; a whitespace-only one is refused.** Those are
different answers on purpose: an empty field is somebody who has no secret, and spaces are a
mistyped one. An empty client id is refused either way. The generated types cannot express any of
this on their own — they describe two independent optional strings, which is what a second
consumer would build against.
The pair, its bounds and both of those rules are INHERITED from
:class:`services.mcp_oauth.PastedClientCredentialFields`, which is the only implementation. This
body adds the three fields the console has and the chat setup lane must not: the address, the
account to re-consent, and the audience.'
McpAuthDiscoveryBody:
properties:
base_url:
type: string
maxLength: 2048
title: Base Url
additionalProperties: false
type: object
required:
- base_url
title: McpAuthDiscoveryBody
description: 'The address a member typed on the connect form, checked before they choose how to sign in.
No ``min_length``: ``validate_connect_url`` refuses a blank address with its own input sentence.'
McpAuthDiscoveryResponse:
properties:
mode:
$ref: '#/components/schemas/McpDiscoveredAuthMode'
type: object
required:
- mode
title: McpAuthDiscoveryResponse
description: How the server at that address signs in. The address is not echoed back.
OAuthStartResponse:
properties:
authorize_url:
type: string
title: Authorize Url
attempt_id:
type: string
format: uuid
title: Attempt Id
expires_at:
type: string
format: date-time
title: Expires At
additionalProperties: false
type: object
required:
- authorize_url
- attempt_id
- expires_at
title: OAuthStartResponse
description: Where to send the browser, and what it will come back as.
MakePrivateUnavailableReason:
type: string
enum:
- space_reassignment_required
- already_private
- managed_account
- scope_sealed_at_connect
- missing_edit_permission
- owner_unknown
- oauth_owner_mismatch
title: MakePrivateUnavailableReason
description: "Why ``can_make_private`` is False for this caller. Null when it is True.\n\nThe value names the first term of that answer that fails, in the order ``account_capabilities``\nstates:\n\n- ``space_reassignment_required``: use the dedicated SPACE scope reassignment ceremony.\n- ``already_private``: the connection is private already.\n- ``managed_account``: Patricia manages the connection. The visibility write refuses a managed\n connection for every caller.\n- ``scope_sealed_at_connect``: the connection's credential is sealed to the sharing it was\n connected with (``core.scope_sealed_credentials``), and both visibility writes refuse to move\n it in either direction. Its refusal message carries the remedy,\n ``core.scope_sealed_credentials.SCOPE_SEALED_REMEDY``.\n- ``missing_edit_permission``: the caller does not hold ``integrations:edit``.\n- ``owner_unknown``: the connection records nobody it could become private to. An MCP server\n needs a ``connected_by_user_id``; another connection needs an email or actor.\n- ``oauth_owner_mismatch``: the MCP server signs in with OAuth, and its saved sign-in is not the\n recorded connector's: there is none, it names another user or no membership, or its membership\n is not the one the connector's owner contract resolves. The narrowing's grant check refuses it\n with the ``MCP_OAUTH_OWNER_MISMATCH`` error code. Disconnecting the server and having that\n person connect it again as private is the remedy."
McpServerResponse:
properties:
integration_account_id:
type: string
title: Integration Account Id
external_account_id:
type: string
title: External Account Id
base_url:
type: string
title: Base Url
auth_mode:
type: string
title: Auth Mode
header_name:
anyOf:
- type: string
- type: 'null'
title: Header Name
negotiated_protocol_version:
anyOf:
- type: string
- type: 'null'
title: Negotiated Protocol Version
connection_generation:
type: integer
title: Connection Generation
refreshing:
type: boolean
title: Refreshing
last_error_class:
anyOf:
- type: string
- type: 'null'
title: Last Error Class
needs_reauth:
type: boolean
title: Needs Reauth
default: false
connected_by:
anyOf:
- type: string
- type: 'null'
title: Connected By
catalog:
anyOf:
- $ref: '#/components/schemas/McpCatalogOutcomeResponse'
- type: 'null'
visibility:
type: string
title: Visibility
is_mine:
type: boolean
title: Is Mine
default: false
can_manage:
type: boolean
title: Can Manage
default: false
can_disconnect:
type: boolean
title: Can Disconnect
default: false
can_reconsent:
type: boolean
title: Can Reconsent
default: false
can_share_to_team:
type: boolean
title: Can Share To Team
default: false
can_make_private:
type: boolean
title: Can Make Private
default: false
share_to_team_unavailable_reason:
anyOf:
- $ref: '#/components/schemas/ShareToTeamUnavailableReason'
- type: 'null'
make_private_unavailable_reason:
anyOf:
- $ref: '#/components/schemas/MakePrivateUnavailableReason'
- type: 'null'
type: object
required:
- integration_account_id
- external_account_id
- base_url
- auth_mode
- connection_generation
- refreshing
- visibility
title: McpServerResponse
description: What the dashboard renders on the card.
OAuthFinalizeBody:
properties:
capability:
type: string
maxLength: 512
minLength: 1
title: Capability
protocol_version:
anyOf:
- type: integer
const: 2
- type: 'null'
title: Protocol Version
additionalProperties: false
type: object
required:
- capability
title: OAuthFinalizeBody
description: 'The capability the dashboard came back with, plus a compatibility marker.
``extra="forbid"`` is what makes the marker work at all: a replica that predates this field
rejects a request carrying it with a 422 during BODY VALIDATION — before the claim runs, so
nothing is claimed and no capability is consumed. That is the whole mechanism, and it is why the
console sends the field only when the capability announces a personal ceremony. Sent
unconditionally it would 422 every TEAM finalize against an old replica, breaking the property
the namespace was designed to preserve.
It is compatibility metadata and NOTHING else. It must never select visibility: the attempt row
is the only thing that says what scope the human consented to, and a marker in a request body
could be changed by whoever sends it.'
ShareToTeamUnavailableReason:
type: string
enum:
- space_reassignment_required
- already_shared
- managed_account
- scope_sealed_at_connect
- missing_edit_permission
- not_your_account
- mcp_share_needs_reconnect
title: ShareToTeamUnavailableReason
description: "Why ``can_share_to_team`` is False for this caller. Null when it is True.\n\nThe value names the first term of that answer that fails, in the order ``account_capabilities``\nstates:\n\n- ``space_reassignment_required``: use the dedicated SPACE scope reassignment ceremony.\n- ``already_shared``: the connection is shared with the whole workspace already.\n- ``managed_account``: Patricia manages the connection. The visibility write refuses a managed\n connection for every caller.\n- ``scope_sealed_at_connect``: the connection's credential is sealed to the sharing it was\n connected with (``core.scope_sealed_credentials``), and both visibility writes refuse to move\n it in either direction. Its refusal message carries the remedy,\n ``core.scope_sealed_credentials.SCOPE_SEALED_REMEDY``.\n- ``missing_edit_permission``: the caller does not hold ``integrations:edit``.\n- ``not_your_account``: the caller is not the person who connected this private connection.\n- ``mcp_share_needs_reconnect``: the MCP server's saved sign-in would stop its tools working once\n the server is shared, so the write refuses with the ``MCP_SHARE_NEEDS_RECONNECT`` error code.\n Reconnecting the server is the remedy."
McpCatalogOutcomeResponse:
properties:
complete:
type: boolean
title: Complete
accepted_unique:
type: integer
title: Accepted Unique
offered_unique:
type: integer
title: Offered Unique
rejected:
type: integer
title: Rejected
dropped_pre_schema:
type: integer
title: Dropped Pre Schema
reasons:
items:
additionalProperties:
type: string
type: object
type: array
title: Reasons
observed_at:
type: string
format: date-time
title: Observed At
type: object
required:
- complete
- accepted_unique
- offered_unique
- rejected
- dropped_pre_schema
- reasons
- observed_at
title: McpCatalogOutcomeResponse
description: 'The last catalog reading recorded for a server — what it offered and how much Patricia took.
This exists because a refusal was previously invisible: a tool whose schema Patricia declines
yields no spec, so it is simply ABSENT from the listing, indistinguishable from one the server
withdrew. The card could show a server as connected and healthy while half its catalog had been
refused, and no surface said so.
Every field describes THE READING, never the account''s current rows. On a refused reduction the
enabled rows are the PREVIOUS catalog, so the two answer different questions and must not be
mixed in one sentence.'
McpDiscoveredAuthMode:
type: string
enum:
- oauth
- open
- token_required
- unknown
title: McpDiscoveredAuthMode
description: The authentication mode found before an MCP setup intent advances.
SyncQueuedResponse:
properties:
status:
type: string
title: Status
account:
type: string
format: uuid
title: Account
type: object
required:
- status
- account
title: SyncQueuedResponse
RegisterBody:
properties:
base_url:
type: string
maxLength: 2048
minLength: 1
title: Base Url
token:
anyOf:
- type: string
maxLength: 8192
- type: 'null'
title: Token
header_name:
anyOf:
- type: string
maxLength: 64
- type: 'null'
title: Header Name
label:
anyOf:
- type: string
maxLength: 120
- type: 'null'
title: Label
visibility:
type: string
enum:
- team
- personal
title: Visibility
default: team
additionalProperties: false
type: object
required:
- base_url
title: RegisterBody
description: 'The connect form: an address, an optional credential, an optional nickname, and who it is for.
``visibility`` defaults to TEAM, which is what makes the field safe to add mid-roll: the console
omits it unless the member deliberately picked a personal connection, and ``extra="forbid"`` means
an explicit ``"team"`` sent to a replica that predates this field would 422 an ordinary connect.'
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
UpdateBody:
properties:
base_url:
anyOf:
- type: string
maxLength: 2048
- type: 'null'
title: Base Url
token:
anyOf:
- type: string
maxLength: 8192
- type: 'null'
title: Token
header_name:
anyOf:
- type: string
maxLength: 64
- type: 'null'
title: Header Name
clear_secret:
type: boolean
title: Clear Secret
default: false
additionalProperties: false
type: object
title: UpdateBody
description: A dial-input change. Every field optional, and **omission is meaningful** — see ``token``.
securitySchemes:
HTTPBearer:
type: http
scheme: bearer