Basis Theory MCP by usefulapi

v1.41.1
io.usefulapi/basis-theory Checked 3 days ago Published 1 day ago

Read token metadata, applications, audit logs, proxies and usage in the PCI vault.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

basis_theory_list_tokens List tokens

List vault tokens as METADATA — id, type, container, fingerprint, metadata and timestamps. Does not return the underlying card number or PII. Basis Theory: GET /v2/tokens.

ParameterTypeDescription
containerstringOnly tokens in this container path, e.g. /pci/high/.
fingerprintstringOnly tokens sharing this fingerprint — how you find duplicates of the same card.
sizeintegerPage size, 1-100.
startstringCursor from the previous page's pagination.next. Omit for the first page.
typestringOnly tokens of this type, e.g. card, bank, token.

basis_theory_search_tokens Search tokens

Search tokens with Basis Theory's query syntax over metadata, e.g. metadata.customer_id:"cus_1". Returns metadata only. Read-only despite being a POST — the query goes in the body. Basis Theory: POST /v2/tokens/search.

ParameterTypeDescription
query *stringQuery string, e.g. type:card AND metadata.customer_id:"cus_1".
sizeintegerPage size, 1-100.
startstringCursor from the previous page's pagination.next. Omit for the first page.

basis_theory_get_token Get one token

Fetch a single token by id. Returns metadata, container, fingerprint and timestamps. WARNING: if the configured API key carries a reveal permission, the response also contains the token's plaintext data — issue this server a read-only management key instead. Basis Theory: GET /tokens/{id}.

ParameterTypeDescription
token_id *stringThe token's id.

basis_theory_list_applications List applications

List the applications (API-key holders) in the tenant, with their types and permissions. Basis Theory: GET /applications.

ParameterTypeDescription
pageinteger1-based page number (offset pagination).
sizeintegerPage size, 1-100.
typestringOnly applications of this type, e.g. private, public, management, expiring.

basis_theory_get_application Get one application

Fetch a single application with its type and permission list. Basis Theory: GET /applications/{id}.

ParameterTypeDescription
application_id *stringThe application's id.

basis_theory_whoami Identify the configured key

Return the application the configured BT-API-KEY belongs to — the fastest way to check which permissions this server actually has. Basis Theory: GET /applications/key.

basis_theory_list_logs List audit logs

List audit-log entries — who did what to which entity and when. The tool for answering 'who touched this token?'. Basis Theory: GET /logs.

ParameterTypeDescription
end_datestringISO-8601 upper bound.
entity_idstringOnly entries for this entity id.
entity_typestringOnly entries for this entity type, e.g. token, application, proxy.
pageinteger1-based page number (offset pagination).
sizeintegerPage size, 1-100.
start_datestringISO-8601 lower bound.

basis_theory_list_log_entity_types List log entity types

List the entity types the audit log records — the valid values for entity_type. Basis Theory: GET /logs/entity-types.

basis_theory_list_proxies List proxies

List the proxies that forward requests to third parties, detokenizing in flight. Basis Theory: GET /proxies.

ParameterTypeDescription
namestringFilter by proxy name.
pageinteger1-based page number (offset pagination).
sizeintegerPage size, 1-100.

basis_theory_get_proxy Get one proxy

Fetch a single proxy with its destination URL and transform configuration. Basis Theory: GET /proxies/{id}.

ParameterTypeDescription
proxy_id *stringThe proxy's id.

basis_theory_list_reactors List reactors

List reactors — the serverless functions that run against detokenized data inside the vault. Basis Theory: GET /reactors.

ParameterTypeDescription
namestringFilter by reactor name.
pageinteger1-based page number (offset pagination).
sizeintegerPage size, 1-100.

basis_theory_get_reactor Get one reactor

Fetch a single reactor with its configuration. Basis Theory: GET /reactors/{id}.

ParameterTypeDescription
reactor_id *stringThe reactor's id.

basis_theory_list_permissions List permissions

List the permissions that can be granted to an application, optionally for one application type. Basis Theory: GET /permissions.

ParameterTypeDescription
application_typestringOnly permissions valid for this application type.

basis_theory_list_roles List roles

List the roles available for tenant members. Basis Theory: GET /roles.

basis_theory_get_tenant Get the tenant

Fetch the current tenant — name, id and settings. Basis Theory: GET /tenants/self.

basis_theory_get_tenant_usage Get the tenant usage report

Fetch the tenant's usage report — token counts by type and container, and monthly API call volume. Basis Theory: GET /tenants/self/reports/usage.

basis_theory_list_tenant_members List tenant members

List the people with access to the tenant, and their roles. Basis Theory: GET /tenants/self/members.

ParameterTypeDescription
pageinteger1-based page number (offset pagination).
sizeintegerPage size, 1-100.