Africastalking Airtime MCP Server

This project implements a **Model Context Protocol (MCP) server** that enables seamless interaction with the **Africa's Talking API** for

Local serverstdioPython

What is the Africastalking Airtime MCP MCP server?

If you want an AI assistant working directly with Africastalking Airtime MCP, the africastalking airtime mcp mcp server is the bridge. This project implements a Model Context Protocol (MCP) server that enables seamless interaction with the Africa's Talking API for airtime-related operations. It provides a suite of tools for checking account balances, sending airtime, viewing transaction history, and summarizing top-up.

What Africastalking Airtime MCP does

This project implements a Model Context Protocol (MCP) server that enables seamless interaction with the Africa's Talking API for airtime-related operations. It provides a suite of tools for checking account balances, sending airtime, viewing transaction history, and summarizing top-up data. The server uses an SQLite database for persistent storage and includes logic for formatting phone numbers for various African countries.

Key capabilities

  • Check Balance — Instantly retrieve the current airtime balance of your Africa's Talking account
  • Send Airtime — Load airtime to any phone number in supported countries
  • Transaction Logging — Automatically save every transaction to a local SQLite database
  • Transaction History — View a list of the most recent top-up transactions
  • Summarize Top-ups — Calculate the total amount of the last 'n' top-ups
  • Count Top-ups — Count the number of transactions for a specific phone number
  • Phone Number Formatting — Automatically formats phone numbers to include the correct country code

Tools it exposes

Once connected, the assistant can call these 6 tools directly:

  • Prerequisites — 1. Python 3.10 or higher: Ensure you have a modern version of Python installed. 2. uv Package Manager: This project uses uv for dependency management
  • check_balance — The check_balance tool exposed by this server
  • load_airtime — The load_airtime tool exposed by this server
  • get_last_topups — The get_last_topups tool exposed by this server
  • sum_last_n_topups — The sum_last_n_topups tool exposed by this server
  • count_topups_by_number — The count_topups_by_number tool exposed by this server

Installing the africastalking airtime mcp mcp server

The server is distributed via npm as @smithery/cli, so most clients can run it without a manual build step. Add it to your MCP client's configuration and restart the client to pick it up — the copy-paste configs for Claude Desktop, Claude Code and Cursor are on this page.

Requirements

  1. Python 3.10 or higher: Ensure you have a modern version of Python installed. 2. uv Package Manager: This project uses uv for dependency management. Install it by running:

Where it fits

Database servers turn schema archaeology and ad-hoc reporting into conversation, which is why they tend to be the second or third server people install. Africastalking Airtime MCP sits in that group, and the shape of its toolset — Prerequisites, check_balance, load_airtime among others — tells you what it is really for. Worth comparing against the other databases servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.

Practical notes

  • This server runs locally, so it operates with whatever access your machine and its credentials already have. Scope that deliberately rather than by default.
  • Maintained by nasoma, written in Python.
  • MCP clients ask for confirmation before each tool call by default. Keep that on while you learn what the africastalking airtime mcp mcp server actually does with your data.
  • Every entry in this directory is reviewed by hand before it goes live, and details are checked against the project's own documentation.

Available tools

ToolWhat it does
Prerequisites1. **Python 3.10 or higher**: Ensure you have a modern version of Python installed. 2. **uv Package Manager**: This project uses uv for dependency management. Install it by running: bash curl -LsSf https://astral.sh/uv/i
check_balanceThe check_balance tool exposed by this server.
load_airtimeThe load_airtime tool exposed by this server.
get_last_topupsThe get_last_topups tool exposed by this server.
sum_last_n_topupsThe sum_last_n_topups tool exposed by this server.
count_topups_by_numberThe count_topups_by_number tool exposed by this server.

How to install the Africastalking Airtime MCP MCP server

{
  "mcpServers": {
    "africastalking-airtime": {
      "command": "npx",
      "args": ["-y", "@smithery/cli"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  1. Python 3.10 or higher: Ensure you have a modern version of Python installed. 2. uv Package Manager: This project uses uv for dependency management. Install it by running:

Example prompts to try

  • Use Africastalking Airtime MCP to Prerequisites.
  • Use Africastalking Airtime MCP to check balance.
  • Use Africastalking Airtime MCP to load airtime.

Frequently asked questions

It connects Africastalking Airtime MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 6 tools (Prerequisites, check_balance, load_airtime, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Africastalking Airtime MCP directly.