plumaden-mcp
# plumaden-mcp
MCP server + Python SDK for [Plumaden](https://qa.plumaden.io) — 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](https://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](https://qa.plumaden.io/help/connect-claude/). This
> package adds hands-free auto-pay from a small dedicated wallet, and the Python SDK.
### Claude Code / any MCP CLI
```bash
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):
```json
{
"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
```bash
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](https://qa.plumaden.io/help/connect-claude/).
## 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](https://qa.plumaden.io/help/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:
```python
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](CHANGELOG.md). Plumaden keeps its API backward
compatible with the latest release.
## Development
```bash
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](https://github.com/plumaden/plumaden-mcp/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](SECURITY.md).
## License
[MIT](LICENSE)
TDQS
Scored across 15 tools
Most tools have clear boundaries and descriptions explicitly cross-reference each other (search vs catalog vs list, check_price vs purchase vs check_payment). The main overlaps are plumaden_tribe vs plumaden_tribes (detail vs list, clarified in text) and plumaden_status vs plumaden_wallet_info (both surface wallet state), plus the deprecated plumaden_x402 lingering as a confusing duplicate.
All tools share the plumaden_ prefix and snake_case, which is highly predictable. The only deviation is mixing verbs (search, read, list, check_price, purchase, rate) with bare nouns (status, comments, authors, tribes, tribe, catalog, wallet_info), though each remains readable.
15 tools is within a reasonable range for a content marketplace with search, browse, read, comments, authors, tribes, and a payment flow. The count is slightly inflated by the deprecated plumaden_x402 and the redundant tribe/tribes pair, but each remaining tool earns its place.
The read/browse/search/comment/rate and purchase/payment lifecycle is well covered. However, descriptions reference tools that do not exist (plumaden_follow, plumaden_join_tribe), and there is no create/update/delete for posts, leaving notable dead ends in the stated workflow.