Skip to main content
Glama
README.md
# Beep MCP Server

This is a Model Context Protocol (MCP) server that provides tools for interacting with the Beep platform. It allows AI assistants (like Claude) to perform actions such as creating bounties, managing streams, issuing payments, and verifying transactions on the Beep network.

## Features

This server exports the following MCP tools:

- **`checkBeepApi`**: Verify connectivity to the Beep API.
- **`createBounty`**: Create a new bounty.
- **`requestAndPurchaseAsset`**: Request and purchase an asset.
- **`issuePayment`**: Issue a payment.
- **`startStreaming`**: Start a streaming session.
- **`stopStreaming`**: Stop a streaming session.
- **`pauseStreaming`**: Pause a streaming session.
- **`verifyTransaction`**: Verify a transaction.

## Prerequisites

- Node.js (v18 or higher recommended)
- A Beep API Key

## Installation

1.  Clone the repository:
    ```bash
    git clone <repository-url>
    cd beep-mcp-server
    ```

2.  Install dependencies:
    ```bash
    npm install
    ```

## Configuration

1.  Create a `.env` file in the root directory:
    ```bash
    cp .env.example .env
    ```
    *(Note: If `.env.example` doesn't exist, create a `.env` file manually)*

2.  Add your Beep API Key and other configuration to `.env`:
    ```env
    BEEP_API_KEY=your_beep_api_key_here
    # Optional: Override Beep Server URL
    # BEEP_URL=https://api.beep.it
    
    # Communication mode (stdio is default for local MCP)
    COMMUNICATION_MODE=stdio
    ```

## Building

Compile the TypeScript code to JavaScript:

```bash
npm run build
```

The build output will be in the `dist/` directory.

## Usage with Claude Desktop

To use this MCP server with Claude Desktop, add the following configuration to your `claude_desktop_config.json` (usually located at `~/Library/Application Support/Claude/claude_desktop_config.json` on macOS or `%APPDATA%\Claude\claude_desktop_config.json` on Windows):

```json
{
  "mcpServers": {
    "beep-mcp-server": {
      "command": "node",
      "args": [
        "/absolute/path/to/beep-mcp-server/dist/mcp-server.js"
      ],
      "env": {
        "BEEP_API_KEY": "your_beep_api_key_here",
        "COMMUNICATION_MODE": "stdio"
      }
    }
  }
}
```

**Important:** Replace `/absolute/path/to/beep-mcp-server` with the actual full path to this directory on your machine.

## Development

To run the server in `stdio` mode (default):

```bash
npm start
```

For development, you can use `npm run build` to rebuild after changes.