mcp-kettlelogic
A read-only MCP server that exposes Kettle Logic's published whitepapers, playbooks, and industry pages to AI agents through tools and resources, fetching content live from the public website.
README
mcp-kettlelogic
A Model Context Protocol (MCP) server that exposes a Kettle Logic site's published content — whitepapers/playbooks ("insights") and industry pages — to any MCP-capable agent (Claude Desktop, IDEs, custom orchestrators).
It is a pure, read-only client of the public website: it fetches content live over HTTP and parses it with the Python standard library. No database, no API keys, no dependency on any backend cluster or LLM. The target site is configurable, so you can point it at your own deployment — or any site with the same shape — and see what it discovers.
Built on the official mcp Python SDK (FastMCP),
speaking the standard stdio transport (and an optional streamable-http
transport for container/Kubernetes deployment).
Engineering note: this repository doubles as a reference for how we build — hexagonal layering, fully-typed OO, dependency injection, and a suite of ratchets (see ARCHITECTURE.md) that enforce the rules in CI.
pytestruns unit tests, real-stdio e2e tests, and the ratchets together.
What it exposes
Tools
| Tool | Description |
|---|---|
search_articles(query, limit=5) |
Search insight articles by title / slug / description. |
get_industry_overview(industry) |
Plain-text overview extracted from an industry page. |
list_articles() |
JSON catalog of every insight article (title, slug, description). |
list_industries() |
JSON list of industries with guidance (name + slug). |
get_article(slug) |
A single insight article rendered as readable text. |
Resources
| URI | Description |
|---|---|
kettlelogic://articles/manifest |
JSON catalog of every insight article. |
kettlelogic://industries/list |
JSON list of industry pages discovered on the site. |
kettlelogic://articles/{slug} |
A single article rendered as readable text. |
Discovery is live: articles from the site's /insights/ index, industries from its
/llms.txt (falling back to crawling /industries/).
Install & run
pip install . # Python >= 3.11; pulls in mcp + httpx
mcp-kettlelogic # console script (stdio transport by default)
Normally an MCP client launches it. To explore interactively:
npx @modelcontextprotocol/inspector mcp-kettlelogic
Use it in an MCP client
{
"mcpServers": {
"kettlelogic": {
"command": "mcp-kettlelogic",
"env": { "KETTLELOGIC_BASE_URL": "https://kettlelogic.com" }
}
}
}
Or connect to the hosted server (no install)
A hardened instance runs live over streamable-HTTP — point any MCP client at it:
{
"mcpServers": {
"kettlelogic": { "url": "https://kettlelogic.com/mcp" }
}
}
Publishing to the MCP registry
This server is listed in the public MCP registry
as com.kettlelogic/mcp-kettlelogic (brand: kettlelogic, not a personal GitHub
handle). server.json is the manifest — it advertises the hosted
streamable-HTTP remote and validates against the 2025-12-11 schema.
The listing is claimed by HTTP domain ownership, not a GitHub login: the registry
fetches https://kettlelogic.com/.well-known/mcp-registry-auth (a public-key challenge
served by the marketing site — web/public/.well-known/mcp-registry-auth in the
kettlelogic repo) and verifies a signature made with our Ed25519 private key.
Automated (on a self-hosted runner)
.github/workflows/publish-registry.yml
publishes automatically on every GitHub Release (and via manual Run workflow).
It runs on a self-hosted runner in our cluster (runs-on: [self-hosted, linux, cluster]) — chosen because GitHub-hosted minutes run out fast, and this way the
publish costs zero quota and won't fail when the month is drained. That runner also
mounts the signing key from an in-cluster Secret (/opt/mcp/key-hex), so the key
never lives in GitHub Actions secrets.
So the normal flow is: bump version.py + server.json version → cut a GitHub
Release → the registry updates itself.
Runner setup is one-time and lives in the private home repo:
deployments/github-runner/ (README there). If the runner is down, re-run from
the Actions tab, or use the local fallback below — it always works with no infra.
Manual
If you ever need to publish by hand:
# 1. Get the CLI (prebuilt binary from the registry releases)
curl -L https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_linux_amd64.tar.gz | tar xz mcp-publisher
# 2. From the repo root (where server.json lives):
./mcp-publisher validate
./mcp-publisher login http --domain kettlelogic.com \
--private-key "$(openssl pkey -in .secrets/mcp-registry-key.pem -outform DER | tail -c 32 | xxd -p -c 64)"
./mcp-publisher publish
Keys & recovery & rotation
The Ed25519 key authorizes publishing under the com.kettlelogic namespace. It
exists in three places (the private key is intentionally NOT in git):
- Local —
.secrets/mcp-registry-key.pem(gitignored). Convenience for manual publishes. - Cluster — Secret
mcp-registry-key(keykey-hex) in thegithub-runnernamespace. This is what the auto-publish runner uses, and the canonical backup. - Public half — served at
https://kettlelogic.com/.well-known/mcp-registry-auth(committed in the kettlelogic repo asweb/public/.well-known/mcp-registry-auth).
Lost the local .pem? Recover the signing key (as hex) straight from the cluster —
publishing only needs the hex, not the pem file:
KEY_HEX="$(kubectl -n github-runner get secret mcp-registry-key -o jsonpath='{.data.key-hex}' | base64 -d)"
./mcp-publisher login http --domain kettlelogic.com --private-key "$KEY_HEX"
./mcp-publisher publish
Rotate (if the key is ever exposed):
openssl genpkey -algorithm Ed25519 -out .secrets/mcp-registry-key.pem # new key
PUB="$(openssl pkey -in .secrets/mcp-registry-key.pem -pubout -outform DER | tail -c 32 | base64)"
# 1. update the served challenge (in the kettlelogic repo) + redeploy the site:
echo "v=MCPv1; k=ed25519; p=$PUB" > ../kettlelogic/web/public/.well-known/mcp-registry-auth
# 2. update the cluster Secret the runner uses:
kubectl -n github-runner delete secret mcp-registry-key
kubectl -n github-runner create secret generic mcp-registry-key \
--from-literal=key-hex="$(openssl pkey -in .secrets/mcp-registry-key.pem -outform DER | tail -c 32 | xxd -p -c 64)"
# 3. re-publish (new key must be live at the well-known URL first).
Versions are immutable in the registry — you can't re-publish an existing version;
bump version.py + server.json first.
Configure
| Env var | Default | Purpose |
|---|---|---|
KETTLELOGIC_BASE_URL |
https://kettlelogic.com |
Target site to read. Point it at your own. |
KETTLELOGIC_TRANSPORT |
stdio |
stdio (local clients) or streamable-http (network/k8s). |
KETTLELOGIC_HTTP_HOST / KETTLELOGIC_HTTP_PORT |
0.0.0.0 / 8080 |
Bind for the http transport. |
KETTLELOGIC_METRICS_PORT |
(unset) | If set, serve Prometheus metrics at /metrics. |
KETTLELOGIC_LOG_LEVEL |
INFO |
Log level. Logs go to stderr (stdout is the MCP channel). |
KETTLELOGIC_CACHE_TTL_SECONDS / KETTLELOGIC_MAX_ARTICLES / KETTLELOGIC_FETCH_CONCURRENCY / KETTLELOGIC_OVERVIEW_MAX_CHARS |
see constants.py |
Tuning. |
Containers & Kubernetes
For network deployment the server runs the streamable-http transport.
docker compose -f deploy/docker/docker-compose.yaml up --build
Kubernetes manifests live in deploy/k8s/ (Deployment with 2
replicas, readiness/liveness probes, resource bounds, non-root + read-only root FS,
ClusterIP Service, ConfigMap). Apply with:
kubectl apply -k deploy/k8s
Observability
- Logging — structured logs to stderr: operation start/finish + durations,
fetch results, cache hits/misses, errors. Set
KETTLELOGIC_LOG_LEVEL. - Metrics — Prometheus
/metrics(setKETTLELOGIC_METRICS_PORT):mcp_operations_total,mcp_errors_total,mcp_http_fetches_total,mcp_http_errors_total,mcp_cache_total{result},mcp_op_duration_seconds.
Develop & test
pip install -e ".[dev]"
ruff check src tests # lint + import order
mypy # type check (disallow-untyped-defs)
pytest # unit + e2e + ratchets, coverage gate (fail-under 90%)
Coverage runs ~99%. See ARCHITECTURE.md for layering, the request flow, and the full list of ratchets.
License
MIT — see LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。