Paystack MCP server for AI agents

Live

BEARER TOKEN

PAYMENTS

Accounting & Finance

Paystack gives your agent payments in your Paystack integration: read transactions, balances, settlements, and disputes, then start payments, send transfers, issue refunds, and manage customers, plans, and subscriptions.

  • Per-user credentials: each call uses the actual user's access token, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Paystack
agent · Acme Q3
Run
Verify the transaction with reference ord_48213 and tell me if it was paid.
S
paystack_transaction_verify
164ms
Payments agent
Transaction ord_48213 succeeded. The customer paid 15,000 NGN by card and the fees were deducted.
Sources: Paystack transaction ord_48213
paystack
1 transaction
18:29
Message Claude...

Tools your payments agent reaches for on Paystack, scoped per user.

CALL ANY TOOL
60 tools for payments in Paystack: list and verify transactions, check balances and settlements, start payments, send transfers, issue refunds, resolve disputes, and manage customers, plans, subscriptions, and payment requests.
paystack_authorization_deactivate
Deactivate authorization
Deactivate a saved authorization so it can no longer be charged. Returns status and message. Use paystack_authorization_deactivate when a customer removes a saved card.
Parameters
Name
Type
Required
Description
authorization_code
string
Required
Authorization code to be deactivated. Example: AUTH_72btv547.
paystack_balance_get
Get balance
paystack_balance_ledger_list
List balance ledger
paystack_bank_account_resolve
Resolve bank account
paystack_countries_list
List countries
paystack_customer_create
Create customer
paystack_customer_risk_action_set
Set customer risk action
paystack_customer_update
Update customer
paystack_dispute_get
Get dispute
paystack_disputes_list
List disputes
paystack_payment_request_finalize
Payment request finalize
paystack_payment_request_verify
Verify payment request
paystack_plan_create
Create plan
paystack_plan_get
Get plan
paystack_plan_update
Update plan
paystack_plans_list
List plans
paystack_refund_create
Create refund
paystack_refund_get
Get refund
paystack_settlement_transactions_list
List settlement transactions
paystack_subaccounts_list
List subaccounts
paystack_subscription_create
Create subscription
paystack_subscription_enable
Enable subscription
paystack_subscription_manage_link_get
Get subscription manage link
paystack_transaction_initialize
Transaction initialize
paystack_transaction_timeline_get
Get transaction timeline
paystack_transaction_verify
Verify transaction
paystack_transactions_list
List transactions
paystack_transfer_get
Get transfer
paystack_transfer_initiate
Transfer initiate
paystack_transfer_recipient_delete
Delete transfer recipient

For more tools, view docs.

Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Paystack tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["paystack"], toolNames: [
    "paystack_transactions_list",
    "paystack_transaction_verify",
    "paystack_refund_create"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "List last week's failed transactions, verify the latest one, and refund it if it was charged twice" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["paystack"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "List last week's failed transactions, verify the latest one, and refund it if it was charged twice" }],
  tools,
});

// Execute the tool call with the user's vaulted Paystack access token
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["paystack"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "List last week's failed transactions, verify the latest one, and refund it if it was charged twice" }],
  tools,
});

// Tool call runs with the user's vaulted Paystack access token
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["paystack"] }, pageSize: 100,
});

const agent = new Agent({
  name: "payments_agent",
  model: "gemini-2.5-pro",
  instruction: "Paystack tools scoped to this user",
  tools,
});

await agent.run("List last week's failed transactions, verify the latest one, and refund it if it was charged twice");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Paystack tool. Click to copy, paste into your agent, done.
Transactions and balance
Copy the prompt
Copied
Verify the transaction with this reference.
Copy the prompt
Copied
Show my available balance in each currency.
Copy the prompt
Copied
List last week's failed transactions.
Customers and billing
Copy the prompt
Copied
Create a customer for this email address.
Copy the prompt
Copied
List the active subscriptions on my monthly plan.
Copy the prompt
Copied
Email a reminder for this unpaid payment request.
Payouts and disputes
Copy the prompt
Copied
List the disputes still waiting for evidence.
Copy the prompt
Copied
Refund this transaction in full.
Copy the prompt
Copied
Show the settlements paid to my bank this month.
SEE HOW AUTH WORKS
Each user connects their own Paystack access token once, and Scalekit sends it with every call. Tokens stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Paystack
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Paystack
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Paystack
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Paystack
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other accounting and finance connectors.
GTM and RevOps Teams
Revenue forecast commentary
Pulls open pipeline from Salesforce and HubSpot, calculates coverage against quota, flags at-risk stages, posts commentary to Slack, and logs every snapshot to Google Sheets.
GTM and RevOps Teams
CRM AI agent
Reads the Granola transcript after every call, extracts next steps and updates the HubSpot record, drafts the follow-up in Gmail, and confirms in Slack, all on the rep's own delegated OAuth.
Test other agents
See the same per-user auth pattern across other accounting and finance connectors.
GTM
Revenue forecast agent
Score pipeline coverage against quota across Salesforce and HubSpot, post forecast commentary to Slack, log snapshots to Sheets.
GTM
CRM AI agent
Turn each Granola call transcript into a HubSpot record update, a drafted Gmail follow-up, and a Slack recap.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Paystack access token looks fine in a demo. In production every refund and transfer looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared token
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Paystack today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Paystack as the user or through a shared token?
As the user. Each user connects their own Paystack access token once, and Scalekit sends it with every call. Refunds, transfers, and customer changes the agent makes are attributed to that user in your audit trail, not a shared service account.
Where is the Paystack access token stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new access token. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Paystack?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the transaction, balance, and settlement read tools without paystack_transfer_initiate or paystack_refund_create, which move money. 3 of the 60 tools are destructive: paystack_authorization_deactivate, paystack_subscription_disable, and paystack_transfer_recipient_delete. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Paystack access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
How does the agent charge a customer?
paystack_transaction_initialize starts a payment and returns a checkout URL for the customer. For a customer with a saved authorization, paystack_transaction_charge_authorization charges it without a new checkout, and paystack_transaction_partial_debit debits as much as possible down to a minimum.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""paystack"": {
""url"": ""https://mcp.scalekit.com/paystack"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.paystack]
url = ""https://mcp.scalekit.com/paystack""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""paystack"": {
""url"": ""https://mcp.scalekit.com/paystack"",
""type"": ""http""
}
}
}