Skip to main content
Glama

Hypertxt Python

The official Python client, command-line interface, and MCP server for Hypertxt.

Use it to:

  • inspect account credits, projects, article templates, and articles;

  • retrieve, generate, export, review, archive, or publish articles;

  • query synchronized or live Google Search Console performance;

  • give MCP-compatible agents a deliberately scoped content-operations toolset.

Install

Install the CLI and MCP server into an isolated environment:

pipx install hypertxt

Or run the MCP server without a permanent install:

uvx --from hypertxt hypertxt-mcp

Python applications can install it with:

python -m pip install hypertxt

Related MCP server: io.github.psyb0t/rankrat

Authenticate

Create a named, revocable key in Hypertxt → Account → Automation. Keep it out of source control and chat transcripts:

export HYPERTXT_API_KEY="htx_replace_with_your_key"
hypertxt status
hypertxt projects

The client uses https://app.hypertxt.ai by default. Set HYPERTXT_API_URL only when testing against another Hypertxt deployment.

CLI examples

# Inspect
hypertxt status
hypertxt articles list --project-id 12 --status awaiting_review
hypertxt articles get 451

# Query GSC
hypertxt gsc query \
  --project-id 12 \
  --group-by query \
  --query-contains "mcp" \
  --start-date 2026-07-01 \
  --end-date 2026-07-25

# Generate after checking credits
hypertxt articles generate \
  --project-id 12 \
  --workflow-id 8 \
  --title "How editorial teams use MCP" \
  --keyword "MCP content workflow"

# Record editorial approval, then create a destination draft
hypertxt articles state 451 reviewed
hypertxt articles publish 451 --integration-id 9 --publish-status draft

Pass --json before the command for machine-readable output.

MCP

Start the stdio server:

hypertxt-mcp

Minimal MCP configuration:

{
  "mcpServers": {
    "hypertxt": {
      "command": "uvx",
      "args": ["--from", "hypertxt", "hypertxt-mcp"],
      "env": {
        "HYPERTXT_API_KEY": "${HYPERTXT_API_KEY}"
      }
    }
  }
}

The server exposes read tools separately from actions that spend credits, change editorial state, refresh GSC, or publish. Agents should inspect first and obtain approval before calling mutating tools.

Client-specific setup and downloadable prompts:

OpenClaw skill

Install the companion portable Hypertxt skill from its public repository:

openclaw skills install \
  git:simplebytes-com/hypertxt-openclaw@main \
  --as hypertxt

Configure the MCP server separately so the skill has tools to call. Start with the read-only tool filter in the OpenClaw guide, then enable generation, state changes, GSC refreshes, and publishing when you want the agent to perform those actions.

Python

from hypertxt import HypertxtClient

with HypertxtClient() as client:
    status = client.account_status()
    articles = client.list_articles(project_id=12, status="awaiting_review")

Development

python -m venv .venv
source .venv/bin/activate
python -m pip install -e ".[dev]"
ruff check src tests
mypy src
pytest -q
python -m build

Security

  • Use a different named key for every client or machine.

  • Never paste an htx_… key into an LLM conversation.

  • Prefer environment or secret configuration over command arguments.

  • Inspect the full article before changing state or publishing.

  • Make generation and live publishing explicit.

Available Tools

13 tools
account_statusA

Show the account plan, subscription status, and remaining generation credits.

Inputs: no named parameters. Returns: object

change_article_stateC

Record an approved editorial state change after inspecting the article.

Inputs: state (required), article_id (required). Returns: object

export_articleA

Export an article as Markdown, HTML, or plain text.

Inputs: article_id (required), format. Returns: object

generate_articleC

Spend one available credit and queue an article after user approval.

Inputs: title (required), project_id (required), workflow_id (required), brief, +1 more. Returns: object

get_articleB

Get an article's metadata, state, outline, and full content.

Inputs: article_id (required). Returns: object

list_articlesA

List generated articles, optionally filtered by project and lifecycle status.

Inputs: limit, status, project_id. Returns: result

list_gsc_connectionsB

List Google Search Console properties connected to a project.

Inputs: project_id (required). Returns: result

list_integrationsC

List connected WordPress, Ghost, or webhook publishing destinations.

Inputs: project_id. Returns: result

list_projectsB

List the Hypertxt projects available to this API key.

Inputs: no named parameters. Returns: result

list_workflowsC

List article templates, optionally restricted to one project.

Inputs: limit, project_id. Returns: result

publish_articleC

Create a destination draft or publish live after explicit user approval.

Inputs: article_id (required), integration_id (required), publish_status. Returns: object

query_gscC

Query synchronized or exact-window live GSC performance.

Inputs: project_id (required), limit, end_date, group_by, +4 more. Returns: object

sync_gscC

Queue a durable refresh of one GSC property after user approval.

Inputs: connection_id (required). Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 13 tools

    Disambiguation5/5

    Every tool addresses a unique function: account info, GSC operations, project listing, workflow templates, article CRUD (except delete), export, integration listing, and publishing. No two tools have overlapping purposes.

    Naming Consistency4/5

    Most tools follow a clean verb_noun pattern (list_*, get_*, generate_*, etc.). The only exception is 'account_status', which is noun_noun. This minor inconsistency breaks the pattern slightly but does not cause confusion.

    Tool Count5/5

    13 tools is well-scoped for a content generation and SEO platform. Each tool earns its place, covering account management, project navigation, GSC integration, article lifecycle, and publishing without unnecessary bloat.

    Completeness3/5

    Core operations are present: generate, read, change state, export, and publish articles. However, there is no tool to delete articles or update their content after generation, and integration management is limited to listing only. These gaps may require workarounds.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      Model Context Protocol (MCP) server that provides AI agents with access to Google Search Console data.
      25
      1,169 npm
      330
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Unifies Google Search Console, Bing Webmaster Tools, GA4, and PageSpeed APIs behind one MCP server, letting an agent join search, indexing, and analytics data across providers while staying read-only and boundary-limited by default.
      Do What The F*ck You Want To Public
    • A
      license
      B
      quality
      C
      maintenance
      A production-oriented, read-only Google Search Console MCP server and TypeScript SDK for Claude, Cursor, VS Code, and other MCP clients. Query real Search Console data, inspect indexed URLs, review sitemaps, compare periods, and surface transparent SEO opportunities without handing private data to a third-party SaaS.
      20
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI clients to manage GEO/SEO content pipelines for multiple sites, including content ingestion, quality checks, WordPress publishing, image handling, monitoring, and search submission via 22 MCP tools over stdio or authenticated HTTP.
      76 npm
      MIT