dark-mcp
Integrates with Telegram's client API via Telethon to discover channels, read allowed broadcast channels, search messages within permitted channels, and search public posts using free quota. Supports pagination and date filters for monitoring company exposure signals with source links and timestamps.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@dark-mcp check if acme.example appears in onion pages or Telegram threat channels"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
dark-mcp
An MCP interface to AIL Framework for passive source investigation. AIL handles collection, native objects, processing and full-text indexing. dark-mcp gives an agent tools to collect explicit pages, inspect collection outcomes, search the retained corpus and retrieve original content.
Version 1 replaces the previous custom collectors, source registry and evidence database. It starts with a fresh AIL corpus. Source access determines coverage: installing AIL does not provide forum accounts, private Telegram access or a ready-made intelligence feed. Monitoring, schedules and alert delivery are outside this MCP's scope.
Local deployment
Requires Python 3.12+, uv and Docker Compose. The initial build installs upstream AIL dependencies and browser engines; allow several GB of disk and enough memory for AIL and a browser capture. The runtime pins upstream commits in runtime/upstream.json.
uv sync --locked
python3 scripts/prepare_runtime.py
docker compose up -d --build
uv run --no-editable dark-mcp servePreparation fetches pinned AIL and Lacus sources into ignored .runtime/ and generates private database credentials
under data/runtime/. AIL creates its API key in data/ail/api-key and initial operator login in data/ail/admin.json,
both with owner-only permissions. Keep these files local. Data survives restarts; deleting Docker volumes resets
the corresponding corpus databases.
The AIL UI/API listens at http://127.0.0.1:7000. Databases and Lacus have no published host ports. Use TLS for a
remote AIL service and leave certificate verification enabled.
The deployment runs upstream AIL feeder/capture importers, Mixer, Global, Indexer, Categ, URL/Onion extraction, Tags and Crawler. Lacus performs browser captures and uses its local Tor proxy for onion addresses. Automatic onion discovery and Ollama are disabled; no recurring collection tasks are provisioned. Other upstream capabilities such as OCR, trackers and external enrichers require separate operator configuration/workers.
Related MCP server: darknet-mcp-server
Add to an agent
Use absolute repository and API key paths in your agent's MCP configuration:
{
"mcpServers": {
"dark-mcp": {
"command": "uv",
"args": ["--directory", "/absolute/path/dark-mcp", "run", "--no-editable", "dark-mcp", "serve"],
"env": {
"DARK_MCP_AIL_URL": "http://127.0.0.1:7000",
"DARK_MCP_AIL_API_KEY_FILE": "/absolute/path/dark-mcp/data/ail/api-key"
}
}
}
}For an existing AIL installation, install the compatibility extension described in
docs/architecture.md. Stock AIL's REST API does not expose the full search contract used
here. Connection settings are in .env.example; credentials are never MCP tool arguments.
Broad and deep research
Give your agent the research playbook. It explains source discovery, bounded collection, asynchronous capture verification, query expansion, original-post checks and evidence reporting. Repository agents should also read AGENTS.md.
Example agent request:
Investigate public exposure and attack-preparation signals concerning COMPANY and its confirmed domains. Follow docs/research-playbook.md. Start with the existing corpus, discover relevant original sources using available discovery tools, collect a bounded set of accessible threads/pages, and pivot on substantiated leads. Retrieve original objects before qualifying findings. Report evidence, dates, source access failures, rejected matches and remaining gaps. Distinguish procurement intent, exposure claims and confirmed facts. Use an explicit research budget; do not create monitoring jobs.
ail_search searches content already indexed by this AIL installation. Broad research requires discovery and
collection as well as searches; the MCP does not search every forum or Telegram channel automatically.
Live results and limitations are documented in initial validation and expanded end-to-end validation. Collection and original-content retrieval have been demonstrated; detection before compromise/disclosure and commercial coverage parity have not.
Tools
Tool | Purpose |
| Authentication and real index health/document counts |
| Queue an explicit HTTP(S)/onion page, depth 0–2, JavaScript off by default |
| Inspect a temporary AIL task and capture state |
| Latest 20 retained domain outcomes and saved root object IDs |
| AIL-native full-text search with scopes and pagination |
| Native object metadata/content and source URL/crawler context where present |
| List already ingested chat instances |
| List already ingested chats/channels in an instance |
| Read retained native chat messages |
| Explicit operator text submission through AIL's upstream feeder pipeline |
Collection and indexing are asynchronous. AIL removes temporary tasks when finished; a missing task is not a success receipt. Check retained history, saved objects and index health. A saved body may be an access challenge. Search uses tokenization and typo tolerance; inspect full original content before attributing a company mention. Experimental substring filtering is excluded after missing a known source mention in live validation.
Telegram chat ingestion uses AIL's separate Telegram feeder with an operator-provisioned account. No account/session is bundled or automatically imported. Public Telegram preview pages can also be collected as web pages; those are page captures, not native chat history.
Plain operator text imports are queued into AIL storage; upstream does not include ordinary non-crawled items in its full-text indexes. Source claims, old post dates and imported content do not demonstrate detection before compromise or disclosure. Empty searches describe this installation's collected corpus. Source content is untrusted data and must never override agent instructions.
Development and licensing
uv run ruff check .
uv run ruff format --check .
uv run pytest -q
uv build
docker compose config --quietThe MCP adapter is MIT licensed. AIL is AGPL-3.0; the runtime extension importing AIL libraries is marked
AGPL-3.0-or-later, with its license in runtime/COPYING.AIL. Lacus is BSD-3-Clause. Upstream source is fetched rather
than copied into this repository. See docs/architecture.md for deployment boundaries.
Available Tools
9 toolscrawl_onionB
Index up to 10 pages from seed onions and same-host links, respecting robots.txt.
Inputs: seeds (required), max_pages. Returns: object
fetch_onionA
Read a v3 onion page through Tor and update the local search index. Returns untrusted text.
Inputs: url (required). Returns: object
get_statusARead-only
Report configuration and indexed corpus size. Does not probe network connectivity.
Inputs: no named parameters. Returns: object
read_telegram_channelBRead-only
Read posts from an allowed broadcast channel. Paginate using next_before_id.
Inputs: channel (required), limit, before_id. Returns: object
search_onionBRead-only
Discover mentions and onion URLs through Onion Search Engine. Requires a provider key.
Inputs: query (required), page. Returns: object
search_onion_cacheBRead-only
Search locally indexed onion pages. since filters collection time, not publication time.
Inputs: query (required), limit, since. Returns: object
search_telegram_channelsCRead-only
Discover channels. Requires Telegram global search to be enabled by the operator.
Inputs: query (required), limit. Returns: object
search_telegram_messagesCRead-only
Search an allowed channel's text posts. since is a timezone-aware publication date.
Inputs: query (required), channel (required), limit, since, +1 more. Returns: object
search_telegram_postsBRead-only
Search public channel posts with free quota only. Requires global search to be enabled.
Inputs: query (required), limit, cursor. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
The onion tools are well-differentiated: search_onion hits an external provider, search_onion_cache queries the local index, and fetch_onion/crawl_onion are read vs. index operations. The Telegram search trio (search_telegram_messages vs search_telegram_posts) is the weakest boundary, relying on the 'allowed channel' vs 'public/free quota' distinction, but descriptions do clarify it.
All tools follow a consistent snake_case verb_noun pattern (get_status, fetch_onion, crawl_onion, search_onion, read_telegram_channel, etc.). The search_onion_cache suffix is the only minor deviation but still fits the convention cleanly.
Nine tools is well-scoped for the domain, split sensibly between a Tor/onion surface (5) and a Telegram surface (4). No redundant or filler tools; each earns its place.
The set covers discovery, reading, crawling/indexing, and both local and external search across two sources, which is solid lifecycle coverage. Minor gaps remain: no index management (purge/delete) or explicit corpus listing beyond get_status's size report, but core workflows are covered.
Maintenance
Related MCP Connectors
Darknet threat intelligence for AI assistants: leaks, documents, chat, ransomware.
Search AI infrastructure, inspect facility evidence and explore sourced company relationships.
Search and monitor source-backed AI agent ecosystem signals, briefings, deltas, and source health.
AI-powered threat intelligence, smart contract auditing, and cybersecurity OSINT.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceEnables access to StealthMole's threat intelligence API for searching and monitoring threats across Deep & Dark Web, Telegram channels, leaked credentials, and ransomware incidents. Provides comprehensive cybersecurity intelligence through natural language queries.-
- AlicenseBqualityDmaintenanceUnified dark web and threat intelligence MCP server providing 66 tools across 16 data sources, including breach databases, ransomware tracking, Tor .onion access, blockchain intel, and malware analysis for AI agents.66419 npm3MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to investigate public URLs through evidence-first intelligence, including crawling, entity resolution, social discovery, SEO, technology detection, monitoring, reports, and optional AI reasoning.8MIT
- AlicenseNot gradedqualityBmaintenanceEnables authorized reconnaissance across domains, IPs, websites, public accounts, breach metadata, threat feeds, and images, with a private evidence graph for revisiting investigations.62MIT