How to Use the Nmap Online MCP in OpenAI Agents SDK
Securely run network audits and port scans using the Nmap Online MCP Server inside your production OpenAI Agents SDK pipelines.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Nmap Online MCP to OpenAI Agents SDK
Create your Vinkius account to connect Nmap Online to OpenAI Agents SDK and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Run secure port audits with OpenAI Agents SDK
The `nmap_scan` tool lets your agent audit open ports and network exposures without leaving its execution loop. By hooking this MCP tool into your agentic workflow, you give your system the ability to inspect targets instantly. Your OpenAI agent can evaluate the scan results and use `get_http_headers` to inspect web servers. The SDK's built-in guardrails ensure that these network checks only execute against pre-approved target ranges.
Map domain infrastructure and trace paths
The `dns_lookup` tool resolves hostnames to IP addresses so your agents can map out target networks. When combined with `reverse_dns`, it uncovers hidden infrastructure records. This MCP Server integration lets your system diagnose routing issues on the fly before handing off the task to a human admin. If a connection drops, the agent runs `traceroute` to find the exact network hop causing the bottleneck.
Automate host discovery and recon
The `ping_host` tool checks if a target is alive before launching deeper inspections. This simple check saves execution time and API credits. Once a host is confirmed active, the agent uses `list_subdomains` and `whois_lookup` to build a complete footprint of the target domain. This data feeds directly into your OpenAI tracing dashboard for audit logging.
Set up Nmap Online MCP in OpenAI Agents SDK
Prerequisites
- Python 3.10+ installed
-
openai-agentspackage (pip install openai-agents) - Active Vinkius subscription with a valid endpoint token
- 1
Install the SDK
Run
pip install openai-agentsto install the OpenAI Agents SDK. The MCP integration is built-in — no extra dependencies needed. - 2
Connect via SSE transport
Use
MCPServerSsewith your Vinkius endpoint URL. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. The SDK auto-discovers all Nmap Online tools at runtime. - 3
Create your Agent
Pass the MCP to
Agent(mcp_servers=[server]). The agent receives Nmap Online tools as native definitions — JSON schemas resolve automatically. - 4
Run the agent
Call
Runner.run(agent, prompt)to execute. The agent invokes the appropriate Nmap Online tools and returns structured results. Copy the full example on the right to get started.
import asyncio
from agents import Agent, Runner
from agents.mcp import MCPServerSse
async def main():
async with MCPServerSse(
url="https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
) as server:
agent = Agent(
name="Nmap Online Agent",
instructions="You have access to Nmap Online tools.",
mcp_servers=[server],
)
result = await Runner.run(agent, "List recent transactions")
print(result.final_output)
asyncio.run(main()) Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Nmap Online. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Nmap Online MCP in OpenAI Agents SDK
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Nmap Online MCP today
We host it, we monitor it, we maintain it. You just paste one token.