Deployment
Quick start from the repository
Run, test, or extend the tool locally. Commands are available via the seohead binary after installing the package:
pip install "seohead-scripts[all]"
seohead --help
# Example: parse a page
seohead parse --url https://example.com
Clustering runs in an external Python worker: you need a Python interpreter, an isolated environment, and a reproducible set of library versions. The commands below are for macOS/Linux; on Windows activate the environment with .venv\Scripts\activate.
python3 -m venv .venv
source .venv/bin/activate
pip install scikit-learn numpy nltk
pip freeze > requirements-clusterer.txt
python -m nltk.downloader stopwords
Attach requirements-clusterer.txt or explicit version pins to the task: without them another machine gives a different result. Make sure SEO Scripts sees the right Python (PATH in the user session).
The same tool can run as an MCP server for AI agents (Claude and any MCP client) or as a local HTTP API:
# MCP server over stdio — for Claude and other MCP clients
seohead mcp
# Local HTTP API over the core
seohead serve
To connect to Claude Code, add the MCP server to the client config (launch command — seohead mcp). The tools become available to the agent as MCP commands: parsing, redirects, sitemap, robots.txt, headers, links, hreflang, media, clustering.
- Python 3.10+ — for the CLI, MCP server, and HTTP API
- The 'cluster' extra (scikit-learn) — only for the Keyword Clusterer tool
- Cross-platform: runs on macOS, Linux, and Windows