Skip to main content

plumaden-mcp

MCP server + Python SDK for Plumaden — a content marketplace with Algorand payments. Point an AI agent at it and the agent can search, read, buy, and publish content conversationally.

Plumaden is in a public testnet preview at qa.plumaden.io. Payments there use Algorand testnet funds, which have no value, so the examples below point at it.

Quickstart

You may not need this package. To browse, buy from your own wallet app (QR or pay link) or publish, connect your MCP host to Plumaden's hosted server instead: no install. See Connect Claude to Plumaden. This package adds hands-free auto-pay from a small dedicated wallet, and the Python SDK.

Claude Code / any MCP CLI

claude mcp add plumaden \
  -e PLUMADEN_API_URL=https://qa.plumaden.io/api/v1/ \
  -e PLUMADEN_NETWORK=testnet \
  -e PLUMADEN_API_TOKEN=plm_your_key \
  -- uvx plumaden-mcp

Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "plumaden": {
      "command": "uvx",
      "args": ["plumaden-mcp"],
      "env": {
        "PLUMADEN_API_URL": "https://qa.plumaden.io/api/v1/",
        "PLUMADEN_NETWORK": "testnet",
        "PLUMADEN_API_TOKEN": "plm_your_key"
      }
    }
  }
}

pip

pip install plumaden-mcp
plumaden-mcp          # speaks MCP over stdio

Generate a ready-to-paste config from the Plumaden UI: Settings → API Keys → create a key shows a "Connect Claude" panel with your key filled in. See also Connect Claude to Plumaden.

Configuration

Variable Required Description
PLUMADEN_API_URL No API base URL. Defaults to http://localhost:8000/api/v1/; set https://qa.plumaden.io/api/v1/ for the testnet preview.
PLUMADEN_API_TOKEN For publishing Your API key (plm_...). Create one at Settings → API Keys. Publishing and image upload need the publish scope.
PLUMADEN_WALLET_MNEMONIC For auto-pay 25-word Algorand mnemonic. Read the auto-pay section below before setting this.
PLUMADEN_WALLET_FILE Alternative Path to a file containing the mnemonic, instead of the env var.
PLUMADEN_NETWORK With a wallet testnet (default) or mainnet. Must match the site: testnet for the preview.
PLUMADEN_MAX_AUTO_PAY Strongly recommended with a wallet Per-purchase ceiling, e.g. 2.0 or USDC:2,ALGO:10.
PLUMADEN_MAX_SESSION_SPEND Recommended with a wallet Total spend ceiling for the session.
PLUMADEN_TRUSTED_PAYOUT_ADDRESSES No Comma-separated allowlist; the agent refuses to pay anyone else.
PLUMADEN_ALLOW_UNKNOWN_ASSETS No Off by default. Leave it off.

Capability matrix

What the agent can do depends on what you configure:

Configured Read + search Publish / edit / upload images Buy premium content
Nothing ✅ ❌ QR code — you pay from your own wallet app
PLUMADEN_API_TOKEN ✅ ✅ QR code
Token + wallet mnemonic ✅ ✅ ✅ signed automatically, within your caps

Write tools are hidden from the tool list entirely when no token is set, so an agent without credentials cannot even try.

Auto-pay: use a dedicated agent wallet

A mnemonic in an env var is a key an agent process can read. Treat it that way.

Never point this at your main wallet. The pattern that keeps this safe:

  1. Create a fresh, empty Algorand wallet used only for this agent.
  2. Fund it with a small float — $10–20. Think prepaid card, not bank account.
  3. Set PLUMADEN_MAX_AUTO_PAY so no single purchase can exceed what you'd shrug at, and PLUMADEN_MAX_SESSION_SPEND to bound a runaway loop.
  4. Optionally set PLUMADEN_TRUSTED_PAYOUT_ADDRESSES to an allowlist.
  5. Top it up when it runs dry.

Worst case on a full compromise is the float — bounded per purchase by the cap. That is the whole point of the pattern.

Skip the wallet entirely and purchases fall back to a QR code you approve in Pera or Defly. Slower per purchase, and your keys never leave your phone.

More detail: Set up an agent wallet.

Publishing house style

The server exposes this as an MCP resource (plumaden://publishing-guide) so agents read it automatically. It is duplicated here for clients that ignore resources.

Format. content_markdown is the input. Headings, bold/italic, links, lists, blockquotes, fenced code blocks, tables, and images are supported. Raw HTML and scripts are stripped by the sanitizer.

Teasers. Premium previews are generated automatically. Do not hand-write a "here's what you'll learn" summary at the top of the body — it will be duplicated.

Tags. Lowercase, at most 5, and reuse existing tags rather than minting near-duplicates. Tag the subject, not the format.

Pricing. USDC is recommended (stable, and the displayed USD-equivalent matches what the buyer expects). Typical single-article pricing is $0.25–$5.00. A premium post needs a payout address configured on the account. Notes cannot be premium.

Post types. article (default, needs a title) or note (no title, max 500 characters, never premium, cannot be scheduled). status defaults to "draft" (since 2026-11); pass status="published" to post immediately. An import that sends published_at must also send status="published", or it is refused.

Images. Upload local or private images with plumaden_upload_image first, substitute the returned URL into the markdown, then post. Google Docs, Notion, and private Drive image URLs are session-authenticated — they render for the author and break for everyone else. JPEG/PNG/GIF/WebP, 5 MB each.

Importing an archive. Set published_at to the original date (ISO 8601, create-only, requires status="published") and canonical_url to the original URL. Pass suppress_notifications: true when publishing directly so ten imported articles don't send ten emails — it defaults to true whenever published_at is set. Webhooks, moderation, embeddings, and teaser generation always run regardless; slop scoring runs on sites that enable it.

Batch publishing. For new writing, either create everything as drafts, confirm with the user, then publish — or publish directly with suppress_notifications: true. An archive import is created published in one call per post (with published_at), never through drafts: a draft published later loses its original date. Never publish a batch with notifications on.

Tools

Read tools (no token needed): plumaden_list, plumaden_read, plumaden_search, plumaden_catalog, plumaden_authors, plumaden_check_price, plumaden_check_payment, plumaden_wallet_info, plumaden_status, plumaden_tribes, plumaden_tribe, plumaden_comments, plumaden_rate (rating works without a token — it uses the per-install agent identity).

Purchase tools: plumaden_purchase (works without a token as an anonymous x402 purchase; a token, if set, needs the purchase scope) and plumaden_subscribe_tribe (listed only with a token, which needs purchase). Both auto-pay from the configured wallet within its caps or return a QR/manual payment intent.

Write tools (need PLUMADEN_API_TOKEN; hidden without it): plumaden_post, plumaden_upload_image, plumaden_edit_post, plumaden_delete_post, plumaden_my_posts, plumaden_comment, plumaden_follow, plumaden_unfollow, plumaden_join_tribe.

SDK

The same client is importable directly, with no MCP involved:

from plumaden_mcp.sdk import PlumadenClient

client = PlumadenClient(
    base_url="https://qa.plumaden.io/api/v1/",
    api_token="plm_your_key",
)
posts = client.search_posts("algorand smart contracts")
client.create_post(title="Hello", content_markdown="# Hi\n\nBody.")

The import package is plumaden_mcp; the SDK is plumaden_mcp.sdk, and python -m plumaden_mcp runs the server.

Versioning

This package versions independently of the Plumaden service, and releases are listed in CHANGELOG.md. Plumaden keeps its API backward compatible with the latest release.

Development

uv sync
uv run pytest                 # offline unit tests
uv run pytest -m packaging    # builds the wheel and tests it in a clean venv (slow)
uv run mypy
uv run ruff check . && uv run ruff format --check .

Issues and security

Bug reports and questions are welcome in issues. Pull requests are not accepted yet.

This package can hold a wallet key, so please report vulnerabilities privately, never in a public issue: see SECURITY.md.

License

MIT

Metadata

Release files for plumaden-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for plumaden-mcp 0.1.0
File Size Uploaded Provenance Actions
plumaden_mcp-0.1.0.tar.gz 107.3 kB With provenance Details for plumaden_mcp-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for plumaden-mcp 0.1.0
File Interpreter ABI Platform Actions
plumaden_mcp-0.1.0-py3-none-any.whl Python 3 none any Details for plumaden_mcp-0.1.0-py3-none-any.whl

Total release size: 174.6 kB

Release files / plumaden_mcp-0.1.0.tar.gz

Download URL plumaden_mcp-0.1.0.tar.gz
Size 107.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f1188bef120edd7ed47e60cc602af0abeaeda15b48c81f2b13531396064bf7c5
BLAKE2b-256 checksum
How to use checksums
675447932932a0184e0e36b9fb0c2cd27cd9da8d8901d4568fdd07f5bf60bf17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / plumaden_mcp-0.1.0-py3-none-any.whl

Download URL plumaden_mcp-0.1.0-py3-none-any.whl
Size 67.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef3b0a134a5a443f22c22285d37f5536e18f2ee9f030554bc62479e73691e685
BLAKE2b-256 checksum
How to use checksums
702e6da946b18eda972f1594c77012d91217a37d7abe83c0005d4db5d9814b00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Security for plumaden-mcp 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for plumaden_mcp-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page