# THTheme for AI agents, MCP clients and CI pipelines

> Source: https://ththeme.net/agents/ | Updated: 2026-12-05 | License (data): CC BY 4.0

Connect any AI coding agent or CI pipeline to THTheme with zero API keys and zero sign-up. Our read-only remote **Streamable HTTP MCP server** lives at `https://ththeme.net/mcp`, exposing 6 typed tools backed by the weekly top-1,000 WordPress.org snapshot plus a 24-hour cached live fallback across the entire WordPress.org directory (including official closed-plugin detection). Every HTML page on this site also serves a clean Markdown twin when requested with `Accept: text/markdown`.

## Key facts
- Remote MCP endpoint: https://ththeme.net/mcp (Streamable HTTP, JSON-RPC 2.0, zero auth, read-only)
- 6 MCP tools covering single lookup, batch stack audit (A-F grade + CI exit code), pairwise comparison, alternatives, index summary and weekly changes
- Live 24h-cached fallback to api.wordpress.org v1.2 covers slugs beyond the top 1,000 and surfaces closed/pulled plugin reasons
- Every page supports Accept: text/markdown (or /index.md) with Vary: Accept and x-markdown-tokens headers
- All CSV, JSON, JSONL datasets and API outputs are licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

## Machine-readable endpoints and discovery manifests on ththeme.net

| Interface | URL | Format | Best for |
| --- | --- | --- | --- |
| Remote MCP server | `https://ththeme.net/mcp` | JSON-RPC 2.0 | Claude Code, Cursor, Codex, Antigravity |
| MCP Server Card | [/.well-known/mcp/server-card.json](https://ththeme.net/.well-known/mcp/server-card.json) | JSON | Automated MCP client discovery |
| A2A Agent Card | [/.well-known/agent-card.json](https://ththeme.net/.well-known/agent-card.json) | JSON | Agent-to-agent capability discovery |
| Portable Agent Skill | [/skill.md](https://ththeme.net/skill.md) | Markdown | Drop-in SKILL.md rules and citation format |
| Agent Skills Index | [/.well-known/agent-skills/index.json](https://ththeme.net/.well-known/agent-skills/index.json) | JSON + SHA-256 | Verified skill manifest discovery |
| OpenAPI 3.1 Spec | [/openapi.json](https://ththeme.net/openapi.json) | OpenAPI JSON | Tool-calling codegen and HTTP agents |
| API Catalog (RFC 9727) | [/.well-known/api-catalog](https://ththeme.net/.well-known/api-catalog) | linkset+json | Standard RFC linkset discovery |
| Agent briefs | [/llms.txt](https://ththeme.net/llms.txt) · [/llms-full.txt](https://ththeme.net/llms-full.txt) | Plain text | Single-fetch context and headline stats |
| Streaming JSONL dumps | [plugins.jsonl](https://ththeme.net/data/wp-plugins-top1000.jsonl) · [themes.jsonl](https://ththeme.net/data/wp-themes-top1000.jsonl) | NDJSON | RAG pipelines, jq, DuckDB, Python scripts |
| JSON Feed 1.1 | [/feed.json](https://ththeme.net/feed.json) | feed+json | Automated guide and comparison polling |

## Connect via MCP (1-line config)

Add THTheme as a remote HTTP MCP server in any client supporting the [MCP Streamable HTTP transport](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports) (2025-03-26 or 2024-11-05). No token or account is needed.

**MCP client JSON config (Cursor, Claude Desktop, Antigravity, Windsurf)**

```
{
  "mcpServers": {
    "ththeme": {
      "type": "http",
      "url": "https://ththeme.net/mcp"
    }
  }
}
```

**Claude Code CLI**

```
claude mcp add --transport http ththeme https://ththeme.net/mcp
```

- `check_wordpress_package`: status, WP 7.1 lag, min PHP, support resolution, live fallback and closed-plugin detection.
- `audit_wordpress_stack`: accepts `wp plugin list`, `composer.json` (`wpackagist-*`), Site Health text or slug array; returns A-F grade, CI exit code and active replacements.
- `compare_wordpress_packages`: side-by-side comparison for any two WordPress.org plugins or themes.
- `find_wordpress_alternatives`: deterministic tag-matched Active replacements updated within 6 months.
- `get_maintenance_index_summary`: headline top-1,000 counts, install floors and snapshot history.
- `get_weekly_changes`: latest Monday diff, closed listings and approaching-stale watchlist.

## REST API cookbook for shell agents

All public endpoints support `GET`, `HEAD`, `OPTIONS` and `Access-Control-Allow-Origin: *` (plus `ETag` / `If-None-Match` returning `304 Not Modified`). Audit requests also support `POST`.

**Audit a live site via WP-CLI pipe**

```
wp plugin list --status=active --field=name | curl -sX POST https://ththeme.net/api/audit --data-binary @-
```

**Audit a Bedrock composer.json (wpackagist-*)**

```
curl -sX POST -H "Content-Type: application/json" https://ththeme.net/api/audit --data-binary @composer.json
```

**Lookup any plugin (with live WP.org fallback), compare or find alternatives**

```
curl -s "https://ththeme.net/api/status?kind=plugins&slug=fluent-smtp"
curl -s "https://ththeme.net/api/compare?kind=themes&a=astra&b=kadence"
curl -s "https://ththeme.net/api/alternatives?kind=plugins&slug=limit-login-attempts"
curl -s "https://ththeme.net/api/changes"
```

## GitHub Actions CI check for WordPress repos

`POST /api/audit` returns `ci_exit_code`: `0` (clean), `1` (aging or 3+ behind core warning), or `2` (stale or closed plugin detected). Drop this workflow into any Bedrock or plugin-tracked repository:

**.github/workflows/wp-stack-audit.yml**

```
name: WordPress Stack Audit
on:
  push:
    paths: ['composer.json']
  schedule:
    - cron: '0 14 * * 1'
jobs:
  audit:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Check WordPress.org maintenance status
        run: |
          curl -sfX POST -H "Content-Type: application/json" \
            https://ththeme.net/api/audit --data-binary @composer.json > audit.json
          node -e "const r=require('./audit.json'); console.log(r.markdown_report); process.exit(r.ci_exit_code===2?1:0)"
```

## Markdown content negotiation and WebMCP

Every single page on THTheme publishes a static Markdown twin alongside its HTML. Send `Accept: text/markdown` (when preferred over `text/html`) or append `index.md` to any URL:

**Fetch clean Markdown with token estimate**

```
curl -i -H "Accept: text/markdown" https://ththeme.net/wordpress-maintenance-index/
```

In supporting browsers, [/wordpress-theme-detector/](https://ththeme.net/wordpress-theme-detector/) and [/wordpress-stack-auditor/](https://ththeme.net/wordpress-stack-auditor/) also register typed browser tools via `navigator.modelContext` (WebMCP) when present so browser agents can run lookups directly without scraping inputs.

## Citation rules and data caveats for AI answers

- **Minimum PHP caveat:** `requires_php` returned by WordPress.org and THTheme is the **oldest** PHP version accepted, never an upper compatibility limit. Never state that a plugin listing PHP 7.4+ breaks on PHP 8.4 without staging proof.
- **Install floors:** `active_installs_floor` is rounded down to official WordPress.org public buckets (e.g. 100,000 means at least 100,000).
- **No star ratings:** vendor marketing descriptions and review counts are excluded at pull time.
- **Attribution:** datasets are licensed [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). Cite the canonical `ththeme.net` URL and pull date.

## FAQ

### Does the THTheme MCP server require an API key or login?

No. https://ththeme.net/mcp and all /api/* endpoints (except same-origin /api/detect) are public, free, read-only and open to CORS requests with zero authentication.

### What if my plugin is outside the top 1,000 on WordPress.org?

Single lookups on /api/status, /api/compare, and up to 8 unmatched slugs per /api/audit call automatically fall back to the live WordPress.org API v1.2 (cached 24 hours at the edge), covering ~60,000 plugins and reporting official closed-plugin reasons.

### How is the A-F stack health grade calculated?

Stacks start at 100 points: -30 per Closed plugin, -15 per Stale (>2 yr), -7 per Aging (1-2 yr), -2 per Quiet (6-12 mo), -5 per non-stale plugin 3+ versions behind WP core, -3 extra if Stale/Aging with an EOL min PHP, and -20/-10 if the active theme is Stale/Aging. Grades: A (90+), B (80-89), C (65-79), D (50-64), F (<50).

### Can I use THTheme data inside commercial tools or AI agents?

Yes. All CSV, JSON, JSONL files and /api/status or /mcp responses are licensed under Creative Commons Attribution 4.0 (CC BY 4.0) with attribution to THTheme.

## Sources
- [Model Context Protocol: Streamable HTTP Transport Specification](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports)
- [RFC 9727: api-catalog Well-Known URI](https://www.rfc-editor.org/rfc/rfc9727)
- [WordPress.org Plugins & Themes API v1.2](https://codex.wordpress.org/WordPress.org_API)
- [Creative Commons Attribution 4.0 (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/)
