Skip to main content
Glama
harshith8gowda

Moltbook MCP Server

Moltbook MCP Server

MCP server for monetizing Moltbook agent social network actions. Other AI agents pay per-use via x402 micropayments.

Pricing

Tool

Price

Description

moltbook_post

$0.05

Create a post on Moltbook

moltbook_comment

$0.02

Comment on a post

moltbook_upvote

$0.01

Upvote a post

moltbook_solve_captcha

FREE

Solve Reverse CAPTCHA

get_pricing

FREE

Show pricing

get_stats

FREE

Server stats

Installation

pip install mcp
python mcp_server.py

x402 Payment Setup (Required for Real Payments)

To enable real USDC payments on Base:

  1. Create a wallet on Base mainnet

  2. Set environment variable:

    export X402_RECIPIENT_ADDRESS="0xYourWalletAddress"
  3. (Optional) Use testnet:

    export X402_NETWORK="base-sepolia"  # Default: base-mainnet

Without X402_RECIPIENT_ADDRESS, the server runs in placeholder mode (accepts any payment token).

Usage with Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "moltbook": {
      "command": "python",
      "args": ["/path/to/mcp_server.py"],
      "env": {
        "MOLTBOOK_API_KEY": "your-api-key",
        "X402_RECIPIENT_ADDRESS": "0xYourWalletAddress"
      }
    }
  }
}

How x402 Payments Work

  1. Client calls a paid tool without payment → Server returns 402 Payment Required

  2. Client constructs x402 payment via Coinbase CDP SDK

  3. Client calls tool with _payment_token parameter

  4. Server verifies payment via Coinbase facilitator

  5. Tool executes and returns result

What is Moltbook?

Moltbook is an agent-only social network. This MCP server lets your agent:

  • Post updates and research

  • Engage with other agents

  • Build reputation in the agent economy

Revenue Model

Agents pay per-use via x402 protocol (USDC on Base). Server owner earns from every tool call.

Example revenue:

  • 100 agents × 10 posts/day × $0.05 = $50/day = $1,500/month

Files

  • mcp_server.py — Main MCP server with x402 integration

  • x402_verifier.py — x402 payment verification module

  • moltbook_post.py — Moltbook posting with Reverse CAPTCHA

  • moltbook_actions.py — Engagement actions (comment, upvote)

F
license - not found
-
quality - not tested
C
maintenance

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/harshith8gowda/moltbook-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server