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
访问服务器

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.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选