sigmap MCP over HTTP
Exposes the sigmap MCP server (code analysis tools) over Streamable HTTP via supergateway, allowing remote MCP clients to query code context, signatures, and more.
README
sigmap MCP over HTTP (Podman)
An extremely lightweight Podman/OCI image that hosts the
sigmap MCP server as a remote
Streamable HTTP endpoint.
Why a bridge is needed
sigmap's MCP server speaks stdio only (sigmap --mcp) — its own docs note
"the MCP server uses stdio, not a network port." To make it reachable over the
network we wrap it with supergateway,
which spawns the stdio server and re-exposes it over MCP Streamable HTTP:
MCP client ──HTTP──▶ supergateway ──stdio──▶ sigmap --mcp
Everything runs on a single Node.js runtime (Alpine base), so the image stays small and dependency-free beyond these two npm packages.
Files
| File | Purpose |
|---|---|
Containerfile |
Multi-stage Alpine build; installs sigmap + supergateway. |
package.json |
Pins sigmap@8.9.1 and supergateway@3.4.3. |
entrypoint.sh |
Runs in /workspace, builds the initial index, launches supergateway. |
Build
Built as a single squashed layer (docker format is required for the baked-in
HEALTHCHECK to be honored):
podman build --format docker --squash-all -t sigmap-mcp:latest .
Run
Bind-mount the repository you want sigmap to index at /workspace (read-write —
sigmap stores its index/context files there):
podman run -d --name sigmap-mcp \
--network=host \
--userns=keep-id \
-v /path/to/your/repo:/workspace \
--restart unless-stopped \
sigmap-mcp:latest
The MCP endpoint is then at http://localhost:8765/mcp, with a liveness probe at
http://localhost:8765/healthz (returns ok). On startup the container builds an
initial index of the mounted repo so tools return real data immediately (disable
with -e AUTO_INDEX=false).
It also starts without a mount — tools just report "no context":
podman run --rm --network=host --name sigmap-mcp sigmap-mcp:latest
Port 8765 is the default because some Cursor team/enterprise MCP policies allowlist that local port. Override with
-e PORT=...if you need a different one.
File access & permissions (rootless podman)
--userns=keep-id maps your host user into the container so bind-mounted files
are readable and writable by sigmap. On this host (uid/gid 1000, matching the
image's node user) files map cleanly and generated index files come back owned by
you. If your host uid isn't 1000, force the mapping onto the node user with
--userns=keep-id:uid=1000,gid=1000. Rootful podman doesn't need keep-id.
Networking notes
-
Rootless without a network helper: if
podman run -p ...fails withcould not find slirp4netns(andpastaisn't installed either), run with the host network instead — the server binds directly to the host's port:podman run --rm --network=host --name sigmap-mcp sigmap-mcp:latest -
Behind an HTTP proxy: if
http_proxy/https_proxyare set on the host, localcurltests may be hijacked by the proxy. Bypass it with--noproxy '*'(see the test below). The container's own healthcheck already avoids the proxy.
Configuration (env vars)
| Variable | Default | Description |
|---|---|---|
PORT |
8765 |
HTTP listen port. |
MCP_PATH |
/mcp |
Streamable HTTP endpoint path. |
LOG_LEVEL |
info |
debug | info | none. |
STATEFUL |
false |
Stateless HTTP (recommended — sigmap holds no state). true uses per-session child processes + session IDs. |
SESSION_TIMEOUT |
60000 |
Stateful session idle timeout (ms); only used when STATEFUL=true. |
WORKSPACE |
/workspace |
Directory sigmap runs in (mount your repo here). |
AUTO_INDEX |
true |
Build a sigmap index on startup if the mount is non-empty. |
STDIO_CMD |
sigmap --mcp |
The stdio command supergateway wraps. |
Example:
podman run -d --network=host -e LOG_LEVEL=debug -e AUTO_INDEX=false \
-v "$PWD":/workspace --userns=keep-id --name sigmap-mcp sigmap-mcp:latest
Quick test
Initialize an MCP session (add --noproxy '*' if you are behind an HTTP proxy):
curl -sS --noproxy '*' http://127.0.0.1:8765/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"curl","version":"0"}}}'
Expected response (SSE frame) identifies the server and its capabilities:
event: message
data: {"jsonrpc":"2.0","id":1,"result":{"protocolVersion":"2025-06-18","serverInfo":{"name":"sigmap","version":"8.9.1",...},"capabilities":{"tools":{}}}}
The response also carries an mcp-session-id header; reuse it (plus a
notifications/initialized POST) to call tools/list, which returns all 19
sigmap tools (read_context, search_signatures, get_lines, …).
Use from Cursor
Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project), then enable
it under Settings → Tools & MCP:
{
"mcpServers": {
"sigmap": {
"url": "http://localhost:8765/mcp"
}
}
}
Verify from the CLI with cursor-agent mcp list (expect sigmap: ready).
How indexing works
sigmap runs inside the mounted /workspace and reads its generated context files
from disk on every MCP call. The container builds an initial index on startup; to
refresh it after changing files, either restart the container or re-run generation
inside it:
podman exec -w /workspace sigmap-mcp sigmap
Generated artifacts (.github/copilot-instructions.md, .context/, PROJECT_MAP.md)
are written into your mounted repo and, thanks to --userns=keep-id, are owned by
your host user.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。
mcp-server-qdrant
这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。