Almega MCP

Almega MCP

A wallet and guardrail for AI agents, enabling spending limits, payment approvals, and real-time ledger tracking via memory or Stripe backends.

Category
Visit Server

README

๐Ÿงช Almega MCP โ€” the demonstrator

A wallet & guardrail for AI agents, exposed as a Model Context Protocol

(MCP) server. Drop it into Claude Desktop, the Claude Agent SDK, or any

MCP-compatible client, and your agent has a wallet with hard limits, a

human approval step, and a full ledger โ€” instantly.

Ships with two backends out of the box:

  • memory (default): everything in-process. Zero setup.
    • stripe: real Stripe Issuing test-mode Cardholders + virtual Cards.
    • No real money. You watch the dashboard light up live.


      Tools the server exposes

      Tool What it does
      open_wallet(agent_id, monthly_limit, allow, approve_above) Give an agent a wallet (and a real Stripe card if backend=stripe)
      pay(agent_id, merchant, amount, category) Agent tries to spend โ€” gets APPROVED, BLOCKED, or AWAITING_YOU
      approve_pending(transaction_id) Human says yes to a held transaction
      reject_pending(transaction_id, reason) Human says no
      get_wallet(agent_id) Current balance & rules
      list_transactions(agent_id?, status?, limit) View the ledger
      reset() Wipe the local index (Stripe entities are kept)

      Plus two resources: almega://wallets and almega://ledger.


      Install

      pip install -r requirements.txt
      

      Python 3.10+ recommended.


      Option A โ€” Memory backend (30-second demo)

      No accounts, no env vars. Just run:

      mcp dev almega_mcp.py     # opens the MCP Inspector
      # or
      python demo.py            # runs the Exhibit A scenario
      

      Option B โ€” Stripe Issuing test mode (5 minutes, still $0)

      The wallet maps to a real Stripe Cardholder + virtual Card and every approved pay() creates a real test-mode authorization. You can open the Stripe dashboard and see Almega's decisions reflected on Stripe live.

      Setup

      1. Free Stripe account: https://dashboard.stripe.com/register
        1. Activate Issuing in test mode: https://dashboard.stripe.com/test/issuing/overview
          1. Grab your TEST secret key: https://dashboard.stripe.com/test/apikeys

          2. Run

          3. export STRIPE_SECRET_KEY=sk_test_...
            export ALMEGA_BACKEND=stripe
            python stripe_demo.py
            

      Almega refuses to start if your key isn't sk_test_... โ€” there's no path to accidentally hit live cards from this code.

      What you'll see in your Stripe dashboard

      • one virtual card per agent
        • every approved pay() as a real Stripe authorization on the card

          • BLOCKED and AWAITING_YOU transactions stay at Almega's gate and never
          • touch Stripe โ€” exactly how it would behave in production

      Wire it into Claude Desktop

      {
        "mcpServers": {
          "almega": {
            "command": "python",
            "args": ["/absolute/path/to/almega_mcp.py"],
            "env": {
              "ALMEGA_BACKEND": "stripe",
              "STRIPE_SECRET_KEY": "sk_test_..."
            }
          }
        }
      }
      

      Restart Claude Desktop. Claude can now open wallets, attempt payments, and ask you to approve sensitive ones.


      Demo prompt for Claude

      Open a wallet for research-bot with a $50 monthly limit, allowing

      api and saas categories, and requiring approval above $25. Then try:

      1. $12 to openai.com (api)
        1. $30 to vercel.com (saas)
          1. $800 to luxury-store.io (retail)
          2. Show me the ledger.

            First approves, second held for sign-off, third blocked โ€” exactly like the landing's "Exhibit A". On the Stripe backend, refresh https://dashboard.stripe.com/test/issuing/authorizations while it runs.


            Landing

            https://alemgaai.netlify.app


            License

            MIT.

            Almega MCP โ€” wallet & guardrail for AI agents

            The MCP server behind https://alemgaai.netlify.app

            Two backends ship in one file:

            • python demo.py โ€” in-memory mode, 30 seconds, zero setup
              • python stripe_demo.py โ€” real Stripe Issuing test mode (free, $0)

              • Install: pip install -r requirements.txt

              • License: MIT.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured