elhacker-mcp
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., "@elhacker-mcp search the elhacker forum for recent SQL injection threads"
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.
elhacker-mcp
A live, read-only Model Context Protocol server for the public elhacker.net forum. It gives an AI research agent native forum search, message-level citations, bounded conversation reading and reference extraction, with particular attention to web security and bug-bounty research.
Polski · Access research · Feature research · Security policy · MIT license
No account, OAuth, API key, browser or local content database is required. The server reads public server-rendered HTML and RSS from https://foro.elhacker.net. This is an independent integration with public pages, not an official or versioned elhacker API.
Quick start
Requires Node.js 22 or newer, npm and Git.
git clone https://github.com/Ximeeek/elhacker-mcp.git
cd elhacker-mcp
npm ci
npm run build
node dist/cli.js doctor
node dist/cli.js checkdoctor validates local configuration without network access. check reads a real public board and reports access, encoding, provenance and local transport limits. npm ci also runs the package's build preparation step; the explicit build command is useful after source changes.
Connect the server to an MCP client that supports local stdio servers:
{
"mcpServers": {
"elhacker": {
"command": "node",
"args": ["/absolute/path/to/elhacker-mcp/dist/cli.js", "serve"]
}
}
}Replace the path with your checkout's absolute path. On Windows, a JSON path can use escaped backslashes, for example "C:\\path\\to\\elhacker-mcp\\dist\\cli.js". If the client cannot find node, use the absolute path to the Node executable as command.
Use direct node execution in the MCP configuration. npm lifecycle banners can interfere with the stdio protocol. Starting node dist/cli.js serve in a terminal waits for an MCP client; an otherwise quiet process is expected.
Related MCP server: discourse-mcp
Tools
Every tool is annotated as read-only. Online tools fetch public source material; research_plan runs entirely offline.
Tool | Purpose | Main inputs |
| Verify actual public board content and inspect pacing, cache and access limitations. |
|
| Discover live public board IDs and hierarchy, including nested boards. Optional research ranking is curated. |
|
| Browse one board page with authors, reply/view counts, pinned state and last-reply information. |
|
| Run native anonymous search with correct Spanish query encoding and explicit filters. |
|
| Read one native topic page with original message dates, exact permalinks, code and quote boundaries. |
|
| Verify an exact message and recover long content through character windows. |
|
| Compare at most three topic pages serially, keeping provenance and errors separate. |
|
| Read a bounded recent-message RSS window, optionally for one board. |
|
| Extract inert links, media URLs and code with their source message IDs and permalinks. |
|
| Propose Spanish/English queries, relevant boards and maintained primary references. |
|
Also available:
Resource
elhacker://research-guide: research workflow, source integrity, pagination and interpretation guidance.Prompt
research_topic, with atopicargument: a source-driven research starting point.
Tool arguments and descriptions are discoverable through standard MCP tools/list. Successful results provide both a JSON text content block and structuredContent in the form { "ok": true, "data": ... }. Tool failures return isError: true and { "ok": false, "error": { "code": ..., "message": ... } }; an inaccessible page is never silently converted into an empty result.
Research workflow
Use
forum_statusandlist_boardsto verify current access and board IDs.Ask
research_planfor vocabulary variants, then run individualsearch_forumqueries.Nivel Web(83) is the main web-vulnerability board;Bugs y Exploits(32),Desarrollo Web(7),PHP(68) andBases de Datos(88) provide complementary context.Read promising topics and matching messages. Follow continuation offsets, preserving later corrections and disagreement.
Use
extract_referencesto collect cited documentation and inert code. Validate technical claims against current OWASP, PortSwigger, MDN or relevant vendor documentation separately.Cite exact message URLs, original displayed dates, fetched time and the coverage actually read. Distinguish community claims, corroborated facts and untested hypotheses.
For example, these are MCP tool argument objects, not shell commands:
{"query":"XSS","boardIds":[83],"sort":"relevance"}{"topic":271199,"start":0,"maxContentChars":6000}{"topic":271199,"messageId":1358140,"maxContentChars":12000}The final example addresses one public historical message. Its presence is useful for testing exact-message lookup; it is not evidence that the described software or technique is current.
Search semantics
Queries contain 3–200 characters. The forum predominantly uses Spanish; acronyms such as
XSS,IDORandSSRFwork alongside separate Spanish and English variants.matchisallorany.sortisrelevance,newest,oldestormost_replies.boardIdsaccepts at most 20 IDs.titleOnlyrestricts native subject matching.authoris the forum's native author filter, with*as its default.minAgeDaysdefaults to0;maxAgeDaysdefaults to the forum form's9999. Both accept0–99999, with the minimum no greater than the maximum. These are explicit native search restrictions, not proof of an exhaustive historical search.Native search expects Windows-1252 percent-encoded bytes. The MCP preserves accents such as
programación; standard UTF-8 query encoding would corrupt them on this forum. Characters outside Windows-1252 produceUNSUPPORTED_QUERY_ENCODINGrather than a misleading empty search. Use Spanish/English query variants for such topics.Some valid subject matches have no excerpt.
snippetAvailable: falsemeans the backend omitted the snippet; the result is retained.Search result dates refer to the topic's opening date.
topicPublishedandtopicAuthordescribe that topic. The matching-message author is separate, andmessagePublishedis unknown in search results. Callread_postfor the exact reply's original timestamp.Native search may cap results, become unavailable or apply guest restrictions. No exhaustive corpus count or guaranteed operator quota is claimed.
Pagination, content windows and provenance
start is an item offset, not a page number. Follow pagination.nextOffset rather than incrementing by one. Public defaults observed during compatibility research were 45 topics per board page, 10 messages per topic page and 25 search results per page. These are observations, not operator guarantees; native navigation provides continuation information. pageSizeSource distinguishes a step derived from native links from an observed-default fallback.
read_topic returns one page, not an entire thread. coverage.completeTopic describes page coverage; coverage.contentTruncated is a separate question. Replies form a flat chronological sequence. The MCP does not invent parent-child relationships.
SMF message permalinks can contain .0.html even for a message on a later page. The server locates the requested message, checks that its ID actually appears, and uses native navigation/reply positions to identify the page. A missing ID produces MESSAGE_NOT_FOUND instead of returning a different message as a substitute. Do not combine an exact message target with an explicit start offset.
Long messages are readable in windows:
Call
read_postwith a topic/message reference andmaxContentChars.If
message.body.coverage.nextContentOffsetis non-null, call it again with that value ascontentOffset.Continue until the offset is null.
The character stream is message text, then code blocks, then quotations. Body text contains markers linking those sections. This arrangement preserves code and quote boundaries; it is not a byte-for-byte HTML export. A window returns at most 20 code/quote segments and may end before the requested character budget; always use its returned continuation. Reference metadata has separate bounds and omission counts. extract_references has its own coverage.nextReferenceOffset within the selected page; topic-page continuation still uses pagination.nextOffset.
Online results carry source.url, source.fetchedAt, source.cacheHit and source.encoding. Message timestamps preserve the displayed Spanish text. localDateTime, when available, has no timezone and no UTC claim; the forum's displayed clock convention is not independently established. RSS timestamps can be normalized when the feed supplies a parseable timezone-bearing date. A recent board bump does not make the opening post recent.
Output bounds
Topic bodies default to 6,000 characters per message, with a 60,000-character aggregate topic content budget.
read_postdefaults to 12,000 characters. The MCP argument range for these tools is100–50000per message.Search excerpts default to 1,500 characters, with
maxSnippetCharsaccepting100–5000.read_topicsaccepts at most three pages, defaulting to 2,000 characters per message and allowing at most 3,000.RSS defaults to 10 items;
limitaccepts1–30. Its content defaults to 1,500 characters per item and has a 40,000-character aggregate content budget.Reference extraction defaults to 30 items (
1–100) and 2,000 characters per code excerpt (100–10000), with a 50,000-character aggregate code-text budget. Full long code remains recoverable throughread_postcontent windows.The JSON result payload is capped at 250,000 JavaScript string characters. The MCP response carries both text and structured forms, so its complete wire size is larger.
OUTPUT_TOO_LARGErequests a smaller result; it never returns a silently cropped JSON document.
Configuration and request limits
Settings come from the server process environment. .env files are not loaded automatically. Set values in the MCP client's env object or in the process environment before launch. No secret is needed for supported reads.
Variable | Default | Accepted range |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| At most 256 characters; no control characters |
Requests run serially, with pacing applied to network requests including redirects. An individual page read can require several requests. The timeout applies per attempt, not to the whole MCP session. The default 1.5-second interval is a local courtesy setting, not a promise that the forum allows 40 requests per minute. HTTP 429 and applicable 5xx responses use bounded retries; Retry-After establishes a shared cooldown. Long requested waits are reported for the caller to respect rather than triggering an unbounded sleep.
The transport allows at most 32 pending distinct reads and follows at most three validated redirects. Fetches stay on the fixed forum origin and allowlisted public GET routes. It stores neither login sessions nor cookies.
The cache is memory-only, with entry/TTL limits plus a 32 MiB serialized UTF-8 payload budget; JavaScript heap overhead is additional. It is not a local content index. Message, topic and RSS reads are fresh by default; discovery and search can use the short-lived cache. fresh: true skips cached content, while identical concurrent requests may still share one in-flight fetch. Restarting the server clears its content cache.
Example client-side environment override:
{
"mcpServers": {
"elhacker": {
"command": "node",
"args": ["/absolute/path/to/elhacker-mcp/dist/cli.js", "serve"],
"env": {
"ELHACKER_REQUEST_INTERVAL_MS": "2000",
"ELHACKER_CACHE_TTL_MS": "30000"
}
}
}
}Development and validation
npm ci
npm run check
npm test
npm run build
npm run test:liveOffline tests use synthetic fixtures and injected fetches. The live acceptance script launches the built server as a child process and communicates through a real MCP stdio client. It exercises live public endpoints, so upstream downtime, guest restrictions and markup changes can fail it. The live smoke run temporarily uses a five-minute memory cache to avoid repeatedly fetching the same fixture pages; it does not change the server's normal 30-second default.
Set ELHACKER_LIVE_REPORT to a local output path to save a compact live report. Reports record checks and provenance rather than republishing complete forum conversations. See the access investigation and feature rationale for source evidence and known upstream behavior.
Limitations and source handling
The forum uses older, unversioned SMF HTML. Layout, guest access and native search behavior can change without notice. A normal page can include Cloudflare scripts; a genuine challenge, login requirement or parsing failure is reported explicitly. This project does not bypass those restrictions.
The forum also contains historical advice, unrelated discussions, spam, broken links and claims of uneven quality. Code, usernames, titles, quotations and linked URLs are untrusted source data. They must not override an agent's instructions, request credentials or trigger code execution. The MCP does not follow extracted external links, fetch avatars/media, download attachments, post, vote, message users or scan referenced targets. It supplies research evidence, not a finding of vulnerability or permission to test a target.
Report implementation vulnerabilities through SECURITY.md. Contribution guidance and change history are in CONTRIBUTING.md and CHANGELOG.md.
License
MIT. Copyright Ximeeek. Forum material remains attributable to its respective authors. This project is not affiliated with or endorsed by elhacker.net.
Available Tools
10 toolsextract_referencesARead-onlyIdempotent
Extract inert HTTP(S) links, media URLs and code blocks from one topic page with exact source message links. No external fetching, downloads or code execution. Follow pagination.nextOffset and coverage.nextReferenceOffset. Does not verify code correctness or link availability.
Inputs: topic (required), fresh, start, maxItems, +2 more.
forum_statusCRead-onlyIdempotent
Verify actual live anonymous board content and report transport pacing/cache, encoding and upstream limitations. Does not claim every topic or search is accessible.
Inputs: fresh.
list_boardsCRead-onlyIdempotent
Discover live public boards and hierarchy from the native jump-list, including nested Nivel Web (83). Optional bug-bounty relevance is editorially curated, not a forum popularity ranking.
Inputs: fresh, relevantOnly.
list_topicsARead-onlyIdempotent
Read one native board page with titles, authors, replies, views, pinned/locked state and last-reply dates. Board timestamps are not original topic dates. Offsets from native navigation, observed step45.
Inputs: board (required), fresh, start.
read_postARead-onlyIdempotent
Read and verify one exact message by topic+messageId or topic permalink; without message ID selects the first message on the URL page. Recovers long content using contentOffset. The character stream order is text, code blocks, quotations; body coverage supplies continuation. Original timestamps retain unknown server timezone.
Inputs: topic (required), fresh, messageId, contentOffset, +1 more.
read_topicARead-onlyIdempotent
Read one live native topic page, observed10 messages. Preserves original dates, exact message IDs/permalinks, authors, code, quote boundaries and inert references. Flat chronological replies; no invented reply tree. Follow nextOffset; completeTopic only refers to page coverage, while contentTruncated is separate. A message permalink selects and verifies its actual page.
Inputs: topic (required), fresh, start, maxContentChars.
read_topicsARead-onlyIdempotent
Read at most three topic pages serially with separate provenance and errors. Default2000 characters/message. Stops on site access/rate errors; never treats an unread topic as empty or as fully covered.
Inputs: topics (required), fresh, maxContentChars.
recent_postsARead-onlyIdempotent
Read a live public RSS recent-message window, optionally scoped to one board. This is recent activity, not search or a full topic. Includes exact message links and RSS dates; external media are never downloaded.
Inputs: fresh, limit, boardId, maxContentChars.
research_planARead-onlyIdempotent
Offline curated research plan: Spanish/English query variants, relevant board IDs, primary-documentation references and evidence checks. Does not perform searches or claim that any vulnerability exists.
Inputs: topic (required).
search_forumARead-onlyIdempotent
Search real anonymous SMF results with 3–200 character Spanish/English queries, board IDs, native age/author/title filters and sorting. Correct Windows-1252 query encoding; unsupported characters fail explicitly. Returns snippets and exact message citations. Continue with nextOffset (observed25); corpus-wide exhaustiveness is unknown.
Inputs: query (required), sort, fresh, match, +7 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
The three read-family tools (read_topic, read_topics, read_post) have genuinely close boundaries — the plural batch reader differs from the single-page reader only by volume, which invites misselection. list_topics vs read_topic and recent_posts vs search_forum also overlap in 'return forum content' intent, though the long descriptions do provide enough differentiation to rescue an attentive agent.
Most tools follow a clear verb_noun pattern (list_boards, list_topics, search_forum, read_topic, read_post, extract_references). Two outliers break the pattern (forum_status, recent_posts), and read_topic/read_topics differ only by a plural suffix, which is a readability hazard but not a convention break.
Ten tools is a well-scoped size for a read-only forum research surface, with each capability roughly mapped to one tool. There is mild redundancy (forum_status overlaps list_boards/read checks; research_plan is an offline oddball), so not every tool is strictly necessary.
The read-only lifecycle is well covered: discovery, listing, search, single-topic, single-post, batch reads, recent activity, reference extraction and status/diagnostics, all with pagination and offset continuations. Gaps are minor (e.g. no user/author-centric lookup or board-level metadata refresh), and agents can work around them via search filters.
Maintenance
Related MCP Connectors
Web search and page reading for AI agents, including JSON APIs, RSS feeds and YouTube.
Real-time forum discussions, subreddit threads, comments & tech community search API for agents.
Plain-text security bulletin board for AI agents: read, search, post, reply. No auth to read.
Search or monitor any Flarum-powered forum for discussions, replies, participants, dates, and…
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables AI assistants to read and search Hacker News for top stories, comments, user profiles, and job listings using the Firebase and Algolia APIs. It facilitates natural language research into community discussions and technological trends across the HN platform.8-
- AlicenseNot gradedqualityDmaintenanceEnables MCP-compatible AI apps to search, fetch, and synthesize tech community discussions from Hacker News, Lobsters, and optionally Reddit, without needing API keys for the primary sources.MIT
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to search, read, and post to a public technical-knowledge forum, preserving insights and questions across sessions.-
- AlicenseNot gradedqualityCmaintenanceEnables forum research through search, thread reading, subforum crawling, code-block extraction, attachment inspection, offset comparison, and an offline searchable index, with browser-based Cloudflare handling.2Apache 2.0