Guides

MCP OSINT: safe local agentic recon architecture

Connecting an AI assistant to reconnaissance tools creates two concrete risks: prompt injection inside scraped profile bios and unbounded network sweeps. MyRecon ships a local stdio Model Context Protocol (MCP) developer prototype at tools/user-scanner-mcp/launcher.py with strict module allowlists, an explicit authorization gate, untrusted-data framing, and bounded output sizes.

MyRecon editorial · Updated 2026-11-28

MCP OSINT: safe local agentic recon architecture: Verify local stdio, then Check auth gate, then Cap untrusted data.
Workflow illustration, not a screenshot or a recorded test.
A person using a laptop beside a desktop monitor
Logan Jeffrey / Unsplash · Personal research · context photograph, not an affected user

Key takeaways

  • Runs strictly over local stdio with pinned user-scanner[mcp]==1.5.2.1
  • Defaults to SCAN_AUTHORIZED = False so unapproved runs return skipped
  • Enforces 8192-byte JSON caps, single-flight locking, and untrusted-data framing

Why agentic OSINT needs hard guardrails

Autonomous tool loops fail safely only when permissions, network targets, and payload sizes are enforced in code rather than prompts. A malicious profile bio can embed text that looks like assistant commands, so the server must label returned fields as untrusted data and block unapproved pivoting or background updates.

Review MyRecon developer and API documentation

Inside the local stdio MCP server

MyRecon registers Server("myrecon-user-scanner-local") over MCP stdio_server() transport with no HTTP or SSE listener and no automatic assistant config writes. At startup, launcher.py pins user-scanner[mcp]==1.5.2.1 via runtime version() checks and wraps backend/modules/user_scanner.py without importing upstream package handlers or auto-updaters.

Local MCP launcher surface and safety bounds verified in tools/user-scanner-mcp/launcher.py on 26 November 2026.
Component or BoundConfigured ValuePurpose
TransportLocal stdio_server() onlyPrevents exposed HTTP/SSE endpoints and remote access
Dependency pinuser-scanner[mcp]==1.5.2.1Runtime version check blocks mismatched upstream packages
Authorization gateSCAN_AUTHORIZED = FalseBlocks network sweeps until explicitly enabled in code
Concurrency lockscan_lock (1 active call)Returns busy instead of spawning parallel sweeps
Serialized output capMAX_RESPONSE_BYTES = 8192Strips detail fields and sets detail_omitted if over 8 KiB

Tool surface and strict module allowlist

The launcher exposes exactly three tools with additionalProperties set to False: list_available_modules, scan_username (1 to 39 characters), and scan_email (1 to 254 characters). Only two registry specs are allowlisted: username.github (api.github.com) and email.gravatar (en.gravatar.com), both defaulting to enabled=False.

See how local MCP fits into 2026-2027 OSINT workflows

Timeouts, evidence caps and untrusted-data framing

Every call enforces allow_loud=False, cross_depth=0, concurrency=1, a 20-second scan deadline, 9-second worker timeout, 3-second HTTP timeout, and a 16 KiB worker output ceiling. Responses retain at most two evidence rows and wrap optional scalar metadata inside untrusted_profile_data alongside an explicit instruction warning.

MCP tool schemas and default execution limits documented in docs/user-scanner-mcp.md.
MCP Tool NameAccepted ArgumentsDefault Response Behavior
list_available_modulesNone (additionalProperties: false)Lists username.github and email.gravatar status and policy
scan_usernameusername, optional module, detailReturns status: skipped when SCAN_AUTHORIZED is False
scan_emailemail, optional module, detailReturns status: skipped with zero subprocess or web calls

Honest authorization model and prototype scope

Because SCAN_AUTHORIZED is fixed to False in launcher.py and cannot be toggled by tool arguments or environment variables, default calls return skipped with zero subprocesses or network requests. This is strictly a local developer prototype in the repository, not a hosted MCP server on myrecon.xyz.

Check a public username

Free with no sign-up: 100 sites, up to 5 results shown in full. Verify each candidate at its source.

Frequently asked questions

Does MyRecon host a public remote MCP OSINT server?

No. The myrecon-user-scanner-local server runs strictly over local stdio for developers inspecting the repository and is not exposed as a hosted endpoint on myrecon.xyz.

Why does scan_username return skipped by default in the MCP server?

launcher.py sets SCAN_AUTHORIZED = False and the registry modules default to enabled = False. This prevents an AI client from issuing live network requests until an operator explicitly wires authorized execution.

How does the MCP launcher mitigate prompt injection from profiles?

It truncates up to eight scalar metadata keys to 256 characters under untrusted_profile_data, enforces an 8192-byte JSON cap, and attaches a data_handling notice stating profile fields are untrusted data, never instructions.

Which modules are allowlisted in tools/user-scanner-mcp/launcher.py?

Only username.github (api.github.com) and email.gravatar (en.gravatar.com) are approved in APPROVED. Unknown tool names or unapproved arguments raise a ValueError.

Sources and method

All transport names, dependency pins, timeout values, allowlists, and byte caps were verified directly against tools/user-scanner-mcp/launcher.py, backend/modules/user_scanner.py, and docs/user-scanner-mcp.md on 26 November 2026.

Try MyRecon username search on Android. Get it on Google Play.