aimarket-mcp
Enables web fetching, web search, and Metis verification for AI agents via a single MCP endpoint.
README
<!-- aicom-mirror-notice -->
š Read-only mirror.
aimarket-mcpis published from the canonical AI-Factory monorepo. Pull requests are not accepted ā any commit pushed here is overwritten byscripts/mirror_satellites.shon the next sync. š Found a bug or have a request? Please open an issue.
<!-- aicom-readme-badges --> <p align="center"> <a href="https://github.com/alexar76/aimarket-mcp/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/alexar76/aimarket-mcp/ci.yml?branch=main&label=CI" alt="CI" /></a> <img src="https://img.shields.io/badge/MCP-gateway-6e40c9" alt="MCP gateway" /> <img src="https://img.shields.io/badge/tests-12_passing-brightgreen" alt="12 tests passing" /> <a href="docs/badges/coverage.svg"><img src="docs/badges/coverage.svg" alt="Test coverage" /></a> <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT" /></a> </p> <!-- /aicom-readme-badges -->
aimarket-mcp ā ecosystem MCP gateway
The alexar76 AICOM / AIMarket ecosystem's shared MCP gateway: one hardened server that gives every agent (Metis, ARGUS, ā¦) the generic capabilities they were missing ā web fetch, web search, and Metis verification ā behind a single MCP endpoint.
It speaks MCP over Streamable-HTTP (JSON-RPC 2.0 POST, SSE-data:-framed responses,
Mcp-Session-Id) ā the exact protocol Metis's MCP client and ARGUS already talk, so no
external SDK is required.
Tools
| Tool | What it does | Hardening |
|---|---|---|
web_fetch |
Fetch a URL, return its main text (readability-lite) | SSRF-guarded (scheme allow-list, private-IP block, per-redirect re-validation, size cap); output sanitized + <untrusted>-wrapped |
web_search |
Live DuckDuckGo search ā top snippets | output sanitized |
metis_verify |
Run Metis's cognition + verification envelope on an input | returns answer + machine-readable verify_score/verified |
Why a gateway (not per-agent tools): generic capabilities are written once and every
ecosystem agent gets them; the security core lives in one audited place. Ecosystem-specific
capabilities already live in their own MCP servers (aimarket-oracle-gateway,
aimarket-plugins); MNEMOSYNE-search and on-chain tools are the next additions here.
Security
- SSRF:
web_fetchvalidates the scheme (http/https only), blocks localhost/private/ reserved IPs, and re-validates on every redirect hop (vendored from Metis's auditedsecurity/ssrf.py). - Untrusted output: every web result is length-capped, has forged role markers stripped
to a fixpoint, and is wrapped in
<untrusted>ā¦</untrusted>before it can reach a model. - Auth: optional bearer (
AIMARKET_MCP_KEY); fail-closed in production (AIMARKET_MCP_PRODUCTION=1requires a key). - Rate limit: per-key/IP token bucket (
AIMARKET_MCP_RATE, default 120/min).
Run
pip install -e .
AIMARKET_MCP_KEY=sk-... AIMARKET_MCP_PRODUCTION=1 aimarket-mcp # :9090
# or: docker compose up -d
Env: AIMARKET_MCP_PORT (9090) Ā· AIMARKET_MCP_KEY Ā· AIMARKET_MCP_PRODUCTION Ā·
AIMARKET_MCP_RATE Ā· AIMARKET_METIS_URL (for metis_verify) Ā· AIMARKET_METIS_KEY Ā·
AIMARKET_SEARCH_URL.
Consumers
- Metis ā enable the preset:
enable_mcp_tools: true mcp_ecosystem_presets: [aimarket-web] - ARGUS ā add the server to
argus.config.jsonmcpServers(see that repo).
Test
pip install -e '.[dev]' && pytest -q
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.