Skip to main content
Glama
kalala252

asm-mcp-server

by kalala252

asm-mcp-server

A local server for using asm-agent from an MCP client. A connected LLM can collect public information, reference saved results, and verify evidence as MCP tools.

This server itself does not call the LLM API. For conversation and summarization, it uses the model on the MCP client side.

Requirements

  • Python 3.12 or later

  • uv

  • A separately set up asm-agent

  • An LLM client that supports MCP

Related MCP server: groundwork

Setup

Place asm-agent and asm-mcp-server in separate folders and prepare their dependencies respectively.

cd /absolute/path/to/asm-agent
uv sync

cd /absolute/path/to/asm-mcp-server
uv sync

When using Shodan, save the API key on the asm-agent side.

cd /absolute/path/to/asm-agent
uv run asm-agent credentials set-shodan

Register with the MCP client

Add the following to the MCP client configuration. Specify everything with absolute paths.

{
  "mcpServers": {
    "passive-attack-surface": {
      "command": "/absolute/path/to/uv",
      "args": [
        "--directory",
        "/absolute/path/to/asm-mcp-server",
        "run",
        "asm-mcp-server"
      ],
      "env": {
        "ASM_AGENT_EXECUTABLE": "/absolute/path/to/asm-agent/.venv/bin/asm-agent",
        "ASM_MCP_REPORT_DIR": "/absolute/path/to/asm-mcp-server/reports"
      }
    }
  }
}

After registration, restart or reconnect the MCP client.

On Windows, specify the absolute path of uv.exe in command, and specify ASM_AGENT_EXECUTABLE in the following format.

C:\absolute\path\to\asm-agent\.venv\Scripts\asm-agent.exe

Conversation example

example.comをShodanありで調査して、見つかったホスト名、IPアドレス、公開ポート、CVE候補を根拠付きでまとめて。

Available tools

Tool

Description

scan_domain

Collects and saves public information about a domain

list_reports

Returns a list of saved reports

get_report_summary

Returns collection counts, warnings, and errors

list_assets

Returns hostnames, IP addresses, and public services

get_evidence

Returns information sources and observation timestamps

list_vulnerabilities

Returns Shodan CVE candidates, products, and versions

Tools that return lists support pagination with offset and limit.

Configuration

Environment variable

Default value

Description

ASM_AGENT_EXECUTABLE

asm-agent on PATH

Absolute path of the asm-agent to execute

ASM_MCP_REPORT_DIR

./reports

Report save destination

ASM_MCP_SCAN_TIMEOUT_SECONDS

600

Maximum seconds to wait for a single investigation

Shodan CVEs are candidates based on past observations and do not prove that a system is currently vulnerable.

Development

uv run ruff check .
uv run mypy src
uv run pytest

License

MIT License

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    Provides AI agents with 37 OSINT tools and 12 data sources to perform unified reconnaissance, domain analysis, and attack surface mapping. It enables agents to query, correlate, and reason across platforms like Shodan, VirusTotal, and Censys in parallel.
    37
    681
    44
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables AI agents to perform grounded web research with injection resistance, claim verification, and cost-aware routing through MCP tools like web_search, fetch_url, extract_claims, and check_grounding.
    MIT
  • A
    license
    B
    quality
    A
    maintenance
    MCP search and evidence tool for AI agents. Rewrites queries, zooms into source domains, and returns sourced answers with metrics.
    1
    1
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables LLMs to perform OSINT link-analysis by exposing transforms (DNS, WHOIS, Shodan, etc.) as MCP tools for autonomous investigation and graph enrichment.
    MIT

View all related MCP servers

Related MCP Connectors

  • Web research for agents: quality-scored Google search, webpage extraction, and deep research.

  • Hosted MCP with 91 agent tools: X, domains, SEO, Maps, Trends, Search, YouTube, TikTok, and more.

  • AI research on companies and industries — one MCP tool per research domain.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kalala252/asm-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server