🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

aimarket-mcp

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aimarket-mcp

alexar76 ecosystem MCP gateway — SSRF-hardened web fetch/search + Metis verify (stdio + HTTP)

pipPyPI
Version
0.3.0
Weekly downloads
566
322.39%
Maintainers
1
Weekly downloads
 

aimarket-mcp — ecosystem MCP gateway

CI aimarket-mcp MCP server MCP gateway stdio + HTTP 14 tests passing Test coverage License: MIT

One MCP gateway. Five hardened tools. Shared by Metis, ARGUS, and the ecosystem.

Transport: stdio (aimarket_mcp/stdio_server.py) for Glama / Claude Desktop / Cursor, built with the official Model Context Protocol Python SDK (mcp, FastMCP). Also ships Streamable-HTTP on :9090 for self-hosted deployments (aimarket-mcp-http, Docker Compose).

ItemLocation
MCP entrypoint (stdio)aimarket_mcp/stdio_server.py
MCP gateway (HTTP)aimarket_mcp/server.py
Tool handlers + securityaimarket_mcp/tools.py, aimarket_mcp/security.py
Glama / Docker (stdio)Dockerfile, glama.json
Self-host HTTPDockerfile.http, docker-compose.yml

Compatible hosts: Claude Desktop, Cursor, Glama, and any MCP client that supports stdio or Streamable-HTTP.

Tools

ToolWhat it doesHardening
web_fetchFetch a URL, return main text (readability-lite)SSRF-guarded; output sanitized + <untrusted>-wrapped
web_searchLive DuckDuckGo search → top snippetsoutput sanitized + <untrusted>
metis_verifyMetis cognition + verification envelopereturns answer + verify_score / verified gate
market_searchDiscover priced capabilities on an AIMarket hubfree; no wallet, key or channel; the hub lists only what it can execute
market_invokeRun one on the hub's free trial tierreturns the signed receipt nonce; reports the hub's 402 verbatim when the allowance is spent

Why a gateway (not per-agent tools): generic capabilities are written once; the security core lives in one audited place. Ecosystem-specific capabilities live in their own MCP servers (aimarket-oracle-gateway, aimarket-plugins).

Configure (env)

varmeaning
AIMARKET_METIS_URLMetis verify API base (default https://metis.modelmarket.dev)
AIMARKET_METIS_KEYoptional bearer for Metis verify
AIMARKET_SEARCH_URLDuckDuckGo HTML endpoint override
AIMARKET_HUB_URLAIMarket hub for market_search / market_invoke (default https://modelmarket.dev)
AIMARKET_SANDBOX_VISITORTrial identity for market_invoke; random per install, set it to keep an allowance across reinstalls
AIMARKET_MCP_KEYHTTP only — bearer auth key
AIMARKET_MCP_PRODUCTIONHTTP only — 1 requires AIMARKET_MCP_KEY (fail-closed)
AIMARKET_MCP_RATEHTTP only — requests/min per key/IP (default 120)
AIMARKET_MCP_PORTHTTP only — listen port (default 9090)

Run (stdio — Glama / Claude Desktop)

pip install -e .
python -m aimarket_mcp.stdio_server

Claude Desktop (mcpServers entry):

{
  "mcpServers": {
    "aimarket-mcp": {
      "command": "python",
      "args": ["-m", "aimarket_mcp.stdio_server"],
      "cwd": "/path/to/aimarket-mcp"
    }
  }
}

Or via PyPI script: aimarket-mcp

Run (HTTP — self-host)

pip install -e .
AIMARKET_MCP_KEY=sk-... AIMARKET_MCP_PRODUCTION=1 aimarket-mcp-http   # :9090
# or: docker compose up -d   (uses Dockerfile.http)

Cursor / Claude (Streamable HTTP)

{
  "mcpServers": {
    "aimarket-web": {
      "type": "streamable-http",
      "url": "http://127.0.0.1:9090/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_AIMARKET_MCP_KEY"
      }
    }
  }
}

Publish on Glama

Listing: glama.ai/mcp/servers/alexar76/aimarket-mcp

Same pattern as aimarket-oracle-gateway (working on Glama): repo-root glama.json + Dockerfile + python -m aimarket_mcp.stdio_server.

FieldValue
DockerfileDockerfile (from repo — not Glama debian/uv template)
Commandpython -m aimarket_mcp.stdio_server
Placeholder parameters{}
Pinned SHAempty (latest)

Do not use the auto-generated debian:trixie-slim + uv sync + mcp-proxy -- aimarket-mcp template — that was the broken HTTP/ENOENT path.

Consumers

  • Metis — enable the preset:
    enable_mcp_tools: true
    mcp_ecosystem_presets: [aimarket-web]
    
  • ARGUS — add the server to argus.config.json mcpServers (see that repo).

Test

pip install -e '.[dev]' && pytest -q

Glama

Glama ignores repo Dockerfiles — set Build steps in admin/dockerfile:

["bash scripts/glama_install.sh"]

CMD: [".venv/bin/python", "-m", "aimarket_mcp.stdio_server"]. Pin main or tag glama-build (not a fixed SHA). Details: docs/GLAMA.md.

Registries

RegistryListing
Glamaglama.ai/mcp/servers/alexar76/aimarket-mcp
Official MCP Registryio.github.alexar76/aimarket-mcpserver.json + GitHub Actions
PyPIpip install aimarket-mcp
GitHub Releasesgithub.com/alexar76/aimarket-mcp/releases

Keywords

mcp

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts