skywatch-mcp
Provides tools for investigating activity on the AT Protocol / Bluesky network: ClickHouse-backed content similarity, URL and quote-post co-sharing clustering, overdispersion anomaly results and account entropy signals, plus Ozone moderation tools that query and change moderation state (labels, actions on accounts and records) through a labeler's PDS xrpc endpoints.
Provides read-only SQL access to a ClickHouse skywatch analytics dataset: clickhouse_query executes validated SELECT/WITH queries with a numeric LIMIT, and clickhouse_schema returns column names and types for known tables; this database backs the similarity, co-sharing, overdispersion and entropy analytics tools.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
skywatch-mcp
skywatch-mcp is an MCP server built on the official Model Context Protocol Python SDK for investigators and moderators who examine activity on the AT Protocol / Bluesky network. Its 33 tools cover ClickHouse analytics, network lookups, content similarity, co-sharing analysis, anomaly results, and Ozone moderation.
The server speaks the MCP 2026-07-28 protocol. Modern clients discover it without an initialize handshake; older clients that initialize with one of the SDK's handshake versions (2024-11-05 through 2025-11-25) still work unchanged. The same launch command serves both.
Draws heavily on Phoebe by haileyok.
Install and run
You need:
Python 3.12 or later.
uv, which installs Python dependencies and runs the server.
An MCP client, such as Claude Desktop or Claude Code. MCP lets the client call the server's tools.
A reachable ClickHouse server with the skywatch dataset for analytics tools.
Ozone credentials only if you use Ozone moderation tools, including moderation queries.
Network lookup tools need internet access, but do not need ClickHouse or Ozone credentials.
Install from source
Download or clone this repository.
Open a terminal in the repository folder, which contains
pyproject.toml.Install the dependencies:
uv syncCreate a
.envfile in that folder with the settings for your services. See Environment variables.Restrict access to
.envto your user account because it can contain passwords.
Connect an MCP client
The client starts the server with this command:
uv run skywatch-mcpThe server uses standard input and output (stdio) to exchange MCP messages. It is not a standalone interactive application or a web server.
For Claude Desktop or Claude Code:
Add this entry to the client's MCP server configuration:
{ "mcpServers": { "skywatch-mcp": { "command": "uv", "args": ["run", "--directory", "/path/to/skywatch-mcp", "skywatch-mcp"] } } }Replace
/path/to/skywatch-mcpwith the full path to your repository folder.Restart the client or reload its MCP configuration.
Open the client's tool list.
A successful connection lists 33 skywatch-mcp tools. Tool discovery confirms the connection, not access to ClickHouse or Ozone.
With ClickHouse configured, ask the client to call clickhouse_schema. A successful result contains column names and types from the dataset. You can also use MCP Inspector (mcp-inspector) to inspect the tool list.
To stop the server, disconnect it through the client's MCP controls. If you started the command in a terminal, press Ctrl+C.
Related MCP server: Kaidn-mcp
Serve over HTTP
The same entry point serves MCP over streamable HTTP when you set SKYWATCH_TRANSPORT=http:
SKYWATCH_TRANSPORT=http uv run skywatch-mcpHTTP mode runs one long-lived server process that many clients attach to and detach from without killing it, instead of the one-process-per-client stdio mode. Set SKYWATCH_HOST and SKYWATCH_PORT to change the bind address; the defaults are 127.0.0.1:8000, and clients connect to http://<host>:<port>/mcp.
The server does not implement authentication. HTTP mode exposes tools that run read-only SQL against ClickHouse and perform real Ozone moderation actions, so keep the listener on a trusted network and put authentication in front of it before exposing it more widely.
Developer setup
Use Python 3.12+ and uv. Ruff targets py312. Mypy uses python_version = "3.12" and strict mode, equivalent to --strict.
The package uses Hatchling as its build backend. The dev dependency group contains pytest, pytest-asyncio, pytest-mock, mypy, and Ruff.
Download or clone this repository if you do not already have it.
Open a terminal in the repository folder.
Install the runtime and development dependencies:
uv syncCreate
.envin the repository folder for local service settings.Restrict the file permissions to your user account.
Both settings classes read .env. The repository's .gitignore excludes this file, but ignore rules do not restrict local access. Do not commit passwords or copy them into client configuration examples.
Analytics calls require an existing skywatch dataset in ClickHouse. Dependency installation does not create or populate that dataset.
Run these commands from the repository folder:
Task | Command |
Run tests |
|
Check lint rules |
|
Check types in strict mode |
|
Format source and tests |
|
Start the stdio server |
|
The run command waits for MCP messages. Use an MCP client to confirm that the server lists its tools.
tests/test_protocol.py starts the real console entry point as a subprocess and speaks raw JSON-RPC to it, so the suite exercises the public stdio transport, not only in-process calls. These tests are self-contained: they run in a temporary directory without your .env or credentials and never call ClickHouse, Ozone, or other network services.
Environment variables
Set these values in .env in the repository folder, or supply them as environment variables to the server process.
ClickHouse
Variable | Default | Purpose |
|
| ClickHouse server host. |
|
| ClickHouse HTTP port. |
|
| ClickHouse username. |
| Empty | ClickHouse password. |
|
| ClickHouse database. |
| Unset | Overrides the host with |
ClickHouse access is read-only. User-supplied SQL must start with SELECT or WITH and include a numeric LIMIT. The SQL validator rejects semicolons and INTO.
Ozone
Variable | Default | Purpose |
| Unset | Accepted by settings, but unused by the current Ozone request code. |
| Unset | Account handle for authentication. |
| Unset | Password for authentication. |
| Unset | Ozone labeler service DID, the AT Protocol decentralized identifier. |
| Unset | Personal Data Server (PDS) hostname, without |
Ozone tools require OZONE_HANDLE, OZONE_ADMIN_PASSWORD, OZONE_DID, and OZONE_PDS. OZONE_SERVICE_URL is not required and does not override the destination.
Authentication and moderation requests use https://<OZONE_PDS>/xrpc/.... The requests identify the labeler through the atproto-proxy header.
Ozone write tools change moderation state. Review the subject and action before you approve a call.
Tool inventory
The server registers 33 tools from 12 modules in src/skywatch_mcp/tools/. The descriptions below summarize the opening descriptions in their docstrings.
ClickHouse (2)
Tool | Description |
| Execute a read-only SQL query against the ClickHouse database. |
| Get column definitions, including names and types, for the known analytics tables. |
Network lookups (4)
Tool | Description |
| Check DNS records and HTTP status for a domain. |
| Get geographic location and network information for an IP address from ip-api.com. |
| Follow a URL's redirect chain and report each hop with its status code. |
| Get WHOIS registration data for a domain. |
Content similarity (1)
Tool | Description |
| Find posts with similar text content using ClickHouse |
Co-sharing analysis (7)
Co-sharing means that multiple accounts share the same URLs or quote the same posts.
Tool | Description |
| Find URL co-sharing clusters through TF-IDF cosine similarity and density-based dismantling. |
| Get account pairs that share the same URLs on the same day. |
| Trace the evolution history of a URL co-sharing cluster over time. |
| Get daily URL co-sharing pipeline metadata, including filter counts, thresholds, and guardrail outcomes. |
| Find quote-post co-sharing clusters through a Newman-weighted graph and Leiden community detection. |
| Get account pairs that quote the same post URIs on the same day. |
| Trace the evolution history of a quote-post co-sharing cluster over time. |
URL and quote-post overdispersion (4)
These tools return anomaly results and history for sharing volume and density.
Tool | Description |
| Get anomalous URL/domain-sharing volume or density spikes from negative-binomial and beta-binomial tests with false-discovery-rate correction. |
| Get a single domain's URL overdispersion history across volume and density signals. |
| Get anomalous quote-post concentration on a single quoted URI from negative-binomial and beta-binomial tests with false-discovery-rate correction. |
| Get quote-post overdispersion history for a single quoted URI. |
Account entropy (2)
These tools return statistical signals of regular, bot-like posting patterns. The signals do not establish whether an account is automated.
Tool | Description |
| Get bot-like posting results based on corrected normalized entropy and the coefficient of variation between posts. |
| Get account entropy and coefficient-of-variation signals over time for a single account. |
Signup anomalies (2)
Tool | Description |
| Get anomalous PDS signup spikes from negative-binomial/Poisson tests with Benjamini–Hochberg false-discovery-rate correction. |
| Get signup anomaly history for one PDS host at daily and hourly intervals. |
Ozone moderation (11)
Tool | Description |
| Apply or remove a moderation label on a subject through Ozone. |
| Add a comment to a subject's moderation record. |
| Move a subject from open to reviewed status. |
| Escalate a subject for higher-level review by the moderation team. |
| Add or remove tags from a subject for categorization and filtering. |
| Temporarily suppress notifications and queue visibility for a subject. |
| Unmute a previously muted subject. |
| Resolve an appeal on a subject with a required explanation. |
| File a moderation report on a subject through Ozone. |
| Query subject statuses from the Ozone moderation queue with optional filters and pagination. |
| Query moderation events from Ozone with optional filters and pagination. |
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Search ATProto writing, annotations, identity, agents, and forum posts. 12 read-only tools.
Search Bluesky posts and feeds; read profiles, threads, and trends. STDIO or Streamable HTTP.
Bluesky post search, author feeds, profiles & threads
Bluesky posts, profiles, feeds, threads & Substack newsletter search and publication feed MCP API.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables blockchain forensics across multiple chains (Base, Ethereum, Arbitrum, Optimism, Polygon) with tools to trace transactions, cluster addresses, detect anomalies, and identify mixer usage.MIT
- AlicenseAqualityDmaintenanceInvestigate fraud directly from Claude, Cursor, or any MCP-compatible client. Analyze suspicious activity with clear, evidence-backed verdicts. Pivot from a single signup to every account sharing the same device, IP address, or email inbox. Check entities against a cross-operator abuse network, review linked accounts, and efficiently process your fraud review queue. Read-only by default, with no r1048 npmMIT
- FlicenseNot gradedqualityAmaintenanceEnables AI agents and MCP clients to query and debug trace data, sessions, exceptions, route decisions, metrics, prompts, datasets, and annotation queues. Supports configurable tool groups and read-only safety modes.-
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to look up domains, URLs, IPs/ASNs, email addresses, phone numbers, crypto wallets, and business records; run autonomous investigations; collect crawl artifacts; and perform evidence-backed scam checks with traceable provenance.MIT