A backend service for executing beeper transactions on Binance Smart Chain
ATTENTION: This repo is moved to: https://github.com/intentos-labs/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.
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
The service exposes the following MCP tools:
get_default_wallet_address() -> str
: Get the default wallet addressget_default_token_address() -> str
: Get the default token addressswitch_default_token_address(new_token_address: str) -> str
: Switch to a new default token addressget_balance(address: str) -> str
: Get BNB balance of an addressget_token_balance(address: str, token_address: str) -> str
: Get token balance of an addresstransfer(recipient_address: str, amount: Decimal = 0.01) -> dict
: Transfer BNB to an addresstransfer_token(recipient_address: str, token_address: str, amount: Decimal = 0.01) -> dict
: Transfer tokens to an addressswap_token(token_in: str, token_out: str, amount: Decimal = 0.01) -> dict
: Swap between tokensget_token_price(token_address: str) -> float
: Get token price in BNBbuy_token(token_address: str, amount: Decimal = 0.01) -> dict
: Buy tokens with BNBsell_token(token_address: str, amount: Decimal = 0.01) -> dict
: Sell tokens for BNBclaim_rewards(token_address: str) -> dict
: Claim rewards for a tokengit clone https://github.com/unibaseio/beeper-mcp.git
cd beeper-mcp
# start server over stdio
uv run src/beeper_mcp/server.py
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
{
"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>"
}
}
}
}
call functions in llm chat