mcp-server
v1.4.0PayVia MCP Server - Enable AI agents to manage PayVia payment infrastructure (PayPal + Tranzila)
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
payvia_auth
Authenticate with PayVia via secure browser-based OAuth. Opens your default browser for login and authorization. Tokens are stored persistently for future sessions. Required before using dashboard operations.
payvia_auth_status
Check if currently authenticated with PayVia and show account info.
payvia_logout
Log out of PayVia by clearing stored authentication tokens.
payvia_register
Open the PayVia registration page in your browser. After registering, use payvia_auth to authenticate.
payvia_get_current_user
Get information about the currently authenticated user. Requires prior authentication via payvia_auth.
payvia_list_projects
List all projects for the authenticated user. Returns project IDs, names, and creation dates.
payvia_create_project
Create a new PayVia project. Returns the project ID and API key. The API key is shown only once - save it securely!
| Parameter | Type | Description |
|---|---|---|
name * | string | Project name (e.g., 'My Chrome Extension') |
description | string | Optional project description |
payvia_get_project
Get detailed information about a specific project including PayPal configuration status.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | The project UUID |
payvia_update_project
Update project name or description.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | The project UUID |
description | string | New project description |
name | string | New project name |
payvia_delete_project
Delete a project and all associated data. This action is irreversible!
| Parameter | Type | Description |
|---|---|---|
projectId * | string | The project UUID to delete |
payvia_get_project_stats
Get statistics for a project including subscriber count, revenue, and recent activity.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | The project UUID |
payvia_get_api_key
Get the API key prefix for a project. Note: Full key is only shown on creation.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | The project UUID |
payvia_regenerate_api_key
Regenerate the API key for a project. The old key will stop working immediately. Returns the new full API key - save it securely!
| Parameter | Type | Description |
|---|---|---|
projectId * | string | The project UUID |
payvia_get_paypal_config
Get PayPal configuration status for a project.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | The project UUID |
payvia_configure_paypal
Configure PayPal credentials for a project. This creates a PayPal webhook automatically. Get credentials from https://developer.paypal.com
| Parameter | Type | Description |
|---|---|---|
clientId * | string | PayPal Client ID from developer dashboard |
clientSecret * | string | PayPal Client Secret from developer dashboard |
projectId * | string | The project UUID |
payvia_configure_tranzila
Configure Tranzila (Israeli payment gateway) credentials for a project. Supports separate test and live terminal names.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | The project UUID |
checkoutMode | string | Checkout UI mode (default: Iframe) |
liveApiKey | string | Tranzila live API v2 key (optional) |
livePassword | string | Tranzila live terminal password |
liveTerminalName | string | Tranzila live terminal name |
testApiKey | string | Tranzila test API v2 key (optional) |
testPassword | string | Tranzila test terminal password |
testTerminalName | string | Tranzila test/sandbox terminal name |
useSandbox | boolean | Whether to use test terminal (default: true) |
payvia_list_plans
List all subscription plans for a project. Returns plan details including prices and billing intervals.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | The project UUID |
payvia_create_plan
Create a new subscription plan. Interval can be 'Once' (one-time), 'Monthly', or 'Yearly'. Optionally assign to a tier. Payment provider is chosen at checkout time, not per plan.
| Parameter | Type | Description |
|---|---|---|
currency * | string | ISO 4217 currency code (e.g., 'USD', 'EUR', 'ILS') |
interval * | string | Billing interval |
name * | string | Plan name (e.g., 'Pro Monthly') |
price * | number | Price amount (e.g., 9.99) |
projectId * | string | The project UUID |
description | string | Plan description shown to customers |
showOnPricingPage | boolean | Whether to show on public pricing page (default: true) |
tierId | string | Optional tier UUID to assign this plan to |
payvia_get_plan
Get detailed information about a specific plan.
| Parameter | Type | Description |
|---|---|---|
planId * | string | The plan UUID |
projectId * | string | The project UUID |
payvia_update_plan
Update an existing plan. Note: Price changes may not affect existing subscriptions.
| Parameter | Type | Description |
|---|---|---|
planId * | string | The plan UUID |
projectId * | string | The project UUID |
description | string | New plan description |
name | string | New plan name |
price | number | New price |
showOnPricingPage | boolean | Whether to show on pricing page |
payvia_delete_plan
Delete a plan. Cannot delete plans with active subscriptions.
| Parameter | Type | Description |
|---|---|---|
planId * | string | The plan UUID |
projectId * | string | The project UUID |
payvia_sync_plan_to_paypal
Sync a plan to PayPal. Creates PayPal Product and Plan. Required before accepting payments for this plan.
| Parameter | Type | Description |
|---|---|---|
planId * | string | The plan UUID |
projectId * | string | The project UUID |
payvia_list_tiers
List all tiers for a project. Tiers are feature-based levels (Free, Pro, Super) that group plans.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | The project UUID |
payvia_create_tier
Create a new tier. Tiers define feature sets. Level determines ordering (0=Free, 1=Pro, 2=Super).
| Parameter | Type | Description |
|---|---|---|
level * | number | Numeric level for ordering (0=Free, 1=Pro, 2=Super) |
name * | string | Tier name (e.g., 'Pro') |
projectId * | string | The project UUID |
description | string | Tier description |
features | array | List of feature identifiers (e.g., ['api_access', 'priority_support']) |
isFree | boolean | Whether this is a free tier (no payment needed) |
payvia_update_tier
Update an existing tier's name, description, features, or level.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | The project UUID |
tierId * | string | The tier UUID |
description | string | New tier description |
features | array | New feature list |
isActive | boolean | Whether the tier is active |
isFree | boolean | Whether this is a free tier |
level | number | New level |
name | string | New tier name |
payvia_delete_tier
Delete a tier. If the tier has plans, it will be deactivated instead of deleted.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | The project UUID |
tierId * | string | The tier UUID |
payvia_assign_plan_to_tier
Assign a plan to a tier. Plans are pricing options within a tier.
| Parameter | Type | Description |
|---|---|---|
planId * | string | The plan UUID to assign |
projectId * | string | The project UUID |
tierId * | string | The tier UUID |
payvia_remove_plan_from_tier
Remove a plan from its tier (makes it a standalone plan).
| Parameter | Type | Description |
|---|---|---|
planId * | string | The plan UUID to remove |
projectId * | string | The project UUID |
tierId * | string | The tier UUID |
payvia_list_subscribers
List a project's subscribers one page at a time, filtered and sorted server-side. Returns customer emails, plan, tier, status, expiry and total paid per subscription, plus totalCount (matching rows) and unfilteredCount (all rows). Use the filters instead of paging through everything.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | The project UUID |
createdFrom | string | Created on or after this date, e.g. '2026-10-01' |
createdTo | string | Created on or before this date (inclusive) |
expiresFrom | string | Expiry (trial end, else paid period end) on or after this date, e.g. '2026-11-01' |
expiresTo | string | Expiry on or before this date (inclusive) |
page | number | Page number (default: 1) |
pageSize | number | Results per page (default: 50, max: 200) |
paidMax | number | Maximum total paid (completed payments) |
paidMin | number | Minimum total paid (completed payments) |
planId | string | Filter by plan UUID |
search | string | Filter by email or customer ID (partial, case-insensitive) |
sortBy | string | Sort field (default: createdAt) |
sortDir | string | Sort direction (default: desc) |
status | string | Filter by subscription status |
tierId | string | Filter by tier UUID (includes subscriptions inheriting the tier from their plan) |
trialDaysMax | number | Only trials with at most this many days remaining (expired trials count as 0) |
payvia_add_subscriber
Manually add a subscriber (e.g., for beta testers or migrations). Creates customer with active subscription.
| Parameter | Type | Description |
|---|---|---|
email * | string | Subscriber email address |
planId * | string | Plan UUID to subscribe to |
projectId * | string | The project UUID |
status | string | Initial subscription status (default: Active) |
payvia_update_subscriber
Update a subscriber's status (e.g., suspend, cancel, reactivate).
| Parameter | Type | Description |
|---|---|---|
projectId * | string | The project UUID |
status * | string | New subscription status |
subscriptionId * | string | The subscription UUID |
payvia_delete_subscriber
Delete a subscriber and their subscription data. This action is irreversible!
| Parameter | Type | Description |
|---|---|---|
projectId * | string | The project UUID |
subscriptionId * | string | The subscription UUID |
payvia_search_subscriber
Search for a specific subscriber by email. Returns all subscriptions, payments, and status details for the matching customer(s). Useful for investigating individual subscriber issues.
| Parameter | Type | Description |
|---|---|---|
email * | string | Email to search for (partial match supported) |
projectId * | string | The project UUID |
payvia_get_audit_logs
Get extension audit logs for a project. Shows license checks, trial starts, feature gates, upgrade clicks, and more. Supports filtering by date range, email, customer ID, action type, and result. Returns paginated logs with statistics.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | The project UUID |
action | string | Filter by action type |
customerId | string | Filter by customer ID (partial match) |
email | string | Filter by customer email (partial match) |
from | string | Start date filter (inclusive), ISO format e.g. '2026-03-01' |
page | number | Page number (default: 1) |
pageSize | number | Results per page (default: 50, max recommended: 100) |
result | string | Filter by result |
to | string | End date filter (inclusive), ISO format e.g. '2026-03-21' |
payvia_admin_query
Execute a read-only SQL query against the PayVia database. Admin access required. Only SELECT queries allowed. Returns up to 1000 rows. Useful for investigating data issues.
| Parameter | Type | Description |
|---|---|---|
sql * | string | SQL SELECT query to execute (e.g., "SELECT * FROM subscriptions WHERE status = 'Canceled' LIMIT 10") |
payvia_validate_license
Check if a user has an active subscription. Use this to verify premium access. Requires API key.
| Parameter | Type | Description |
|---|---|---|
apiKey * | string | Project API key (X-API-Key header) |
customerId | string | Or customer ID (external identifier) |
email | string | Customer email to validate |
payvia_get_subscription_status
Get detailed subscription status for a customer. Returns plan, status, and billing period.
| Parameter | Type | Description |
|---|---|---|
apiKey * | string | Project API key |
customerId * | string | Customer ID to check |
payvia_set_api_url
Set the PayVia API URL. Use for local development or self-hosted instances.
| Parameter | Type | Description |
|---|---|---|
url * | string | API URL (e.g., 'http://localhost:5000' or 'https://api.payvia.site') |