Africa's Talking Airtime MCP Server

Africa's Talking Airtime MCP Server

africastalking-airtime-mcp•bynasoma

An MCP server that connects to the Africa's Talking API for airtime operations, with SQLite transaction logging and phone number formatting.

License: Not specified•Runtime: Awaiting documentation review•Category: finance crypto

WHAT IT DOES

  • •Checks the current airtime balance of the Africa's Talking account.
  • •Sends airtime to a phone number and records the transaction.
  • •Retrieves recent top-up transactions and can sum the last N top-ups or count top-ups for a specific number.
  • •Automatically formats phone numbers to include the correct country code based on the country setting.

BEST FOR

  • •Checking and topping up airtime balances through natural language prompts.
  • •Reviewing recent airtime top-up history and totals.
  • •Counting how many times a specific phone number has been topped up.

ABOUT AFRICASTALKING-AIRTIME-MCP

Africa's Talking Airtime MCP Server is cataloged as an MCP server attributed to nasoma. An MCP server that connects to the Africa's Talking API for airtime operations, with SQLite transaction logging and phone number formatting. It is categorized under finance crypto. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Africa's Talking Airtime MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Where are airtime transactions stored?

Every transaction is saved to a local SQLite database file created in the project directory.

上游原版 README

在 GitHub 查看同一版本原文

README.md · d50e1995a0b1 · 采集于 2026-11-13 13:22:06 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Africa's Talking Airtime MCP

MseeP.ai Security Assessment Badge smithery badge Verified on MseeP

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 Features

  • 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.

Installation Guide

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. Install it by running:
    curl -LsSf https://astral.sh/uv/install.sh | sh
    

Installing from Smithery

To install Africa's Talking Airtime Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @nasoma/africastalking-airtime-mcp --client claude

Local Setup

  1. Clone the Repository:

    git clone https://github.com/nasoma/africastalking-airtime-mcp.git
    cd africastalking-airtime-mcp
    
  2. Install Dependencies: Set up the virtual environment and install the required packages using uv:

    uv sync
    

Using with AI Tools

With Claude Desktop

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "Airtime Server": {
      "command": "{{PATH_TO_UV}}", // Run `which uv` and place the output here
      "args": [
        "--directory",
        "{{PATH_TO_PROJECT}}", // cd into the repo, run `pwd` and enter the output here
        "run",
        "main.py"
      ],
      "env": {
        "username": "your_africastalking_username",
        "api_key": "your_africastalking_api_key",
        "country":"your_country", # e.g kenya, uganda, dr congo, rwanda, south africa
        "currency_code":"currency-code"  # e.g. KES, UGX, NGN
      }
    }
  }
}

With Goose

Goose is a good option if you want to use your preferred LLM and supply an API key.

  • Install Goose.
  • Open the settings panel and add a custom extension (MCP Server).
  • Give your extension a name. Type is STDIO.
  • Add the command. Save changes. Goose Demo
  • Add your environment variables: username, api_key, currency_code and country.
  • Save changes.

Goose Demo2

Tool Reference

The MCP server exposes the following tools for managing airtime:

check_balance

  • Description: Retrieves the current airtime balance from your Africa's Talking account.
  • Usage: check_balance()
  • Returns: A string displaying the account balance (e.g., "Account Balance: KES 1234.00") or an error message.

load_airtime

  • Description: Sends a specified amount of airtime to a phone number and records the transaction.
  • Arguments:
    • phone_number (str): The recipient's phone number.
    • amount (float): The amount of airtime to send.
    • currency_code (str): The currency code (e.g., "KES", "UGX").
  • Usage: load_airtime(phone_number="0712345678", amount=100.0, currency_code="KES")
  • Returns: A confirmation message upon success or an error message.

get_last_topups

  • Description: Fetches the last N airtime top-up transactions from the database.
  • Arguments:
    • limit (int, optional): The number of transactions to retrieve. Defaults to 3.
  • Usage: get_last_topups(limit=5)
  • Returns: A formatted string listing the recent transactions.

sum_last_n_topups

  • Description: Calculates the sum of the last N top-ups.
  • Arguments:
    • n (int, optional): The number of transactions to sum. Defaults to 3.
  • Usage: sum_last_n_topups(n=5)
  • Returns: A string with the total sum, or an error if transactions have different currencies.

count_topups_by_number

  • Description: Counts the number of successful top-ups to a specific phone number.
  • Arguments:
    • phone_number (str): The phone number to query.
  • Usage: count_topups_by_number(phone_number="0712345678")
  • Returns: The total count of top-ups for the given number.

Example Prompts

Here are some example prompts you can use to interact with the MCP server:

  • Check Balance:

    • "What is my Africa's Talking account balance?"
    • "Check my airtime balance."
  • Send Airtime:

    • "Send 100 KES airtime to 0712345678."
    • "Top up my phone +254712345678 with 50 bob."
    • "Load 200 UGX to 0755123456."
  • View Recent Top-ups:

    • "Show me the last 3 airtime transactions."
    • "List my 5 most recent top-ups."
  • Sum Recent Top-ups:

    • "What is the total of my last 3 top-ups?"
    • "How much have I spent in my last 5 transactions?"
  • Count Top-ups:

    • "How many times have I topped up 0712345678?"
    • "Count the top-ups to +254712345678."

Important Notes

  • Funding: Ensure your Africa's Talking account has sufficient funds to send airtime.
  • Phone Number Formatting: Phone numbers are automatically formatted based on the country environment variable.
  • Database: The SQLite database (airtime_transactions.db) is automatically created in the project directory.
  • Supported Models: This MCP server works best with models that support tool calling, such as Claude 3.7 Sonnet or GPT-4.1 Nano.

Credits

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Africa's Talking Airtime MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/africastalking-airtime-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related finance crypto MCP Servers

Alternative and complementary servers in the same category

View all in finance crypto →
USA Spending MCP Server
usaspending-mcp-server•thsmale

A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

Repository stats unavailable
Finance & Analytics
Fortnox MCP server — More AI
more-ai-chatgpt-claude-mcp-fortnox•amor3

A hosted, remote MCP server for Fortnox that lets AI assistants answer questions from a company's bookkeeping and propose changes for approval before writing them.

0
Finance & Analytics

OptimistFi is a read-only remote MCP server that provides perpetual futures market data, perps prop firm rules and pricing, and US equity investment research.

Repository stats unavailable
Finance & Analytics