Cover image
Try Now
2025-04-10

用于执行Binance Smart Chain的蜂鸣器交易的后端服务

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

ATTENTION: This repo is moved to: https://github.com/intentos-labs/beeper-mcp

beeper-mcp

A backend service for executing beeper transactions on Binance Smart Chain (BSC). This service provides a set of tools for interacting with the BSC blockchain, including balance checking, balance transfers, token transfers, token swaps in Pancakeswap and beeper reward claims.

Features

  • Get BNB and token balances
  • Transfer BNB and tokens
  • Swap tokens in Pancakeswap
  • Get token prices
  • Buy and sell tokens
  • Claim rewards of beeper tokens
  • Manage default wallet and token addresses

Prerequisites

  • Python >=3.10
  • Access to BSC network (mainnet or testnet)
  • Wallet account and private key

Environment Variables

Create a .env file in the project root with the following variables:

MEMBASE_CHAIN=<bsc or bsc-testnet>
MEMBASE_ACCOUNT=<your-wallet-address>
MEMBASE_SECRET_KEY=<your-private-key>
MEMBASE_TARGET_TOKEN=<default-token-address>  # Optional

API Endpoints

The service exposes the following MCP tools:

Wallet and Token Management

  • get_default_wallet_address() -> str: Get the default wallet address
  • get_default_token_address() -> str: Get the default token address
  • switch_default_token_address(new_token_address: str) -> str: Switch to a new default token address

Balance Operations

  • get_balance(address: str) -> str: Get BNB balance of an address
  • get_token_balance(address: str, token_address: str) -> str: Get token balance of an address

Transfer Operations

  • transfer(recipient_address: str, amount: Decimal = 0.01) -> dict: Transfer BNB to an address
  • transfer_token(recipient_address: str, token_address: str, amount: Decimal = 0.01) -> dict: Transfer tokens to an address

Trading Operations

  • swap_token(token_in: str, token_out: str, amount: Decimal = 0.01) -> dict: Swap between tokens
  • get_token_price(token_address: str) -> float: Get token price in BNB
  • buy_token(token_address: str, amount: Decimal = 0.01) -> dict: Buy tokens with BNB
  • sell_token(token_address: str, amount: Decimal = 0.01) -> dict: Sell tokens for BNB

Reward Operations

  • claim_rewards(token_address: str) -> dict: Claim rewards for a token

Running the Service

git clone https://github.com/unibaseio/beeper-mcp.git
cd beeper-mcp
# start server over stdio
uv run src/beeper_mcp/server.py 
  • start using sse

The sse service will start on port 8000 by default. You can specify a different port using the --port argument:

uv run src/beeper_mcp/server.py --port 8008 --transport=sse

Configuration on Claude/Windsurf/Cursor/Cline

{
  "mcpServers": {
    "membase": {
      "command": "uv",
      "args": [
        "--directory",
        "path/to/beeper-mcp",
        "run", 
        "src/beeper_mcp/server.py"
        ],
      "env": {
        "MEMBASE_ACCOUNT": "your account, 0x...",
        "MEMBASE_SECRET_KEY": "your private key or in .env",
        "MEMBASE_TARGET_TOKEN": "default token address",
        "MEMBASE_CHAIN": "chain type <bsc/bsc-testnet>"
      }
    }
  }
}

Notes

  • All amounts are in native units (e.g., BNB, tokens)
  • Token addresses should be provided in the correct format
  • Make sure you have sufficient BNB for gas fees
  • The service supports both BSC mainnet and testnet
  • All operations return detailed response objects with transaction hashes and status information
  • The service includes built-in error handling and status tracking for transactions

Usage

call functions in llm chat

  • show wallet and buy tokens

show wallet and buy tokens

  • sell tokens

sell tokens

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Lists Tailwind CSS classes in monospaced font

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • tomoyoshi hirata
  • Sony α7IIIマニュアルアシスタント

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

  • HiveNexus
  • 一个适用于中小型团队的AI聊天机器人,支持DeepSeek,Open AI,Claude和Gemini等车型。 专为中小团队设计的ai聊天应用,支持deepSeek,打开ai,claude,双子座等模型。

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

  • patruff
  • Ollama和MCP服务器之间的桥梁,使本地LLMS可以使用模型上下文协议工具

  • JackKuo666
  • 🔍使AI助手可以通过简单的MCP接口搜索和访问PYPI软件包信息。

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

    Reviews

    1 (1)
    Avatar
    user_kQqOA5j6
    2025-04-18

    As a dedicated user of the beeper-mcp, I am thoroughly impressed by its functionality and seamless integration. Developed by unibaseio, this tool vastly simplifies complex workflows and offers a user-friendly interface that caters to both beginners and experts. Highly recommend checking it out on GitHub: https://github.com/unibaseio/beeper-mcp!