# AIMarket MCP Gateway

> AIMarket MCP Gateway is a freemium MCP server for web search and scraping. Hardened web fetch and search plus a pay-per-call AI capability market over MCP. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** CLI, Self-hosted, API
- **Repository:** https://github.com/alexar76/aimarket-mcp
- **MCP Registry name:** io.github.alexar76/aimarket-mcp
- **Categories:** [web search and scraping](https://ai-powered.com/categories/web-search-and-scraping), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

Six tools sit behind one gateway shared by the author's wider ecosystem. web_fetch returns a page's main text with SSRF guarding, and web_search returns live DuckDuckGo snippets; both wrap their output as untrusted after sanitising. metis_verify returns an answer with a verify score and a verified flag. The other three, market_search, market_invoke and market_status, talk to an AIMarket hub to discover and run priced capabilities, with a few free trial invokes and a signed receipt for each.

The README points out that pasting modelmarket.dev/mcp into a client gives the two market tools with no install. Installing this package adds the other three tools or points the market tools at your own hub. An optional AIMARKET_API_KEY pays priced calls from a prepaid USDC balance once the trial is used.

It runs over stdio with uvx, or as a Streamable HTTP server on port 9090 with Docker Compose. HTTP requests without a key are refused by default, production mode requires AIMARKET_MCP_KEY, and a per-key rate limit defaults to 120 requests a minute.

## Features

- **SSRF-guarded fetch:** web_fetch returns a page's main text with output sanitised and wrapped as untrusted.
- **Live web search:** web_search returns top DuckDuckGo snippets.
- **Verification gate:** metis_verify returns an answer with a verify score and verified flag.
- **Capability marketplace:** market_search and market_invoke find and run priced capabilities on a hub.
- **Signed receipts:** Each trial invoke returns a signed receipt nonce.
- **Fail-closed HTTP:** HTTP mode refuses keyless requests unless made public explicitly.

## Good for

- Fetch a web page safely for an agent
- Search the web from an MCP client
- Verify an answer with a score
- Try paid AI capabilities on a free trial
- Self-host a shared tool gateway for several agents

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add aimarket-mcp --env AIMARKET_METIS_KEY='<AIMARKET_METIS_KEY>' --env AIMARKET_API_KEY='<AIMARKET_API_KEY>' -- uvx aimarket-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "aimarket-mcp": {
      "command": "uvx",
      "args": [
        "aimarket-mcp"
      ],
      "env": {
        "AIMARKET_METIS_KEY": "<AIMARKET_METIS_KEY>",
        "AIMARKET_API_KEY": "<AIMARKET_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "aimarket-mcp": {
      "command": "uvx",
      "args": [
        "aimarket-mcp"
      ],
      "env": {
        "AIMARKET_METIS_KEY": "<AIMARKET_METIS_KEY>",
        "AIMARKET_API_KEY": "<AIMARKET_API_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "aimarket-mcp": {
      "command": "uvx",
      "args": [
        "aimarket-mcp"
      ],
      "env": {
        "AIMARKET_METIS_KEY": "<AIMARKET_METIS_KEY>",
        "AIMARKET_API_KEY": "<AIMARKET_API_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "aimarket-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "aimarket-mcp"
      ],
      "env": {
        "AIMARKET_METIS_KEY": "<AIMARKET_METIS_KEY>",
        "AIMARKET_API_KEY": "<AIMARKET_API_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add aimarket-mcp --env AIMARKET_METIS_KEY='<AIMARKET_METIS_KEY>' --env AIMARKET_API_KEY='<AIMARKET_API_KEY>' -- uvx aimarket-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.aimarket-mcp]
command = "uvx"
args = ["aimarket-mcp"]
env = { AIMARKET_METIS_KEY = "<AIMARKET_METIS_KEY>", AIMARKET_API_KEY = "<AIMARKET_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "aimarket-mcp": {
      "command": "uvx",
      "args": [
        "aimarket-mcp"
      ],
      "env": {
        "AIMARKET_METIS_KEY": "<AIMARKET_METIS_KEY>",
        "AIMARKET_API_KEY": "<AIMARKET_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e AIMARKET_METIS_KEY='<AIMARKET_METIS_KEY>' -e AIMARKET_API_KEY='<AIMARKET_API_KEY>' aimarket-mcp uvx -- aimarket-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "aimarket-mcp": {
      "command": "uvx",
      "args": [
        "aimarket-mcp"
      ],
      "env": {
        "AIMARKET_METIS_KEY": "<AIMARKET_METIS_KEY>",
        "AIMARKET_API_KEY": "<AIMARKET_API_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "aimarket-mcp": {
      "command": "uvx",
      "args": [
        "aimarket-mcp"
      ],
      "env": {
        "AIMARKET_METIS_KEY": "<AIMARKET_METIS_KEY>",
        "AIMARKET_API_KEY": "<AIMARKET_API_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "aimarket-mcp": {
      "command": "uvx",
      "args": [
        "aimarket-mcp"
      ],
      "env": {
        "AIMARKET_METIS_KEY": "<AIMARKET_METIS_KEY>",
        "AIMARKET_API_KEY": "<AIMARKET_API_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "aimarket-mcp": {
      "command": "uvx",
      "args": [
        "aimarket-mcp"
      ],
      "env": {
        "AIMARKET_METIS_KEY": "<AIMARKET_METIS_KEY>",
        "AIMARKET_API_KEY": "<AIMARKET_API_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "aimarket-mcp": {
      "command": "uvx",
      "args": [
        "aimarket-mcp"
      ],
      "env": {
        "AIMARKET_METIS_KEY": "<AIMARKET_METIS_KEY>",
        "AIMARKET_API_KEY": "<AIMARKET_API_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "aimarket-mcp": {
      "command": "uvx",
      "args": [
        "aimarket-mcp"
      ],
      "env": {
        "AIMARKET_METIS_KEY": "<AIMARKET_METIS_KEY>",
        "AIMARKET_API_KEY": "<AIMARKET_API_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "aimarket-mcp": {
      "command": "uvx",
      "args": [
        "aimarket-mcp"
      ],
      "env": {
        "AIMARKET_METIS_KEY": "<AIMARKET_METIS_KEY>",
        "AIMARKET_API_KEY": "<AIMARKET_API_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "aimarket-mcp": {
      "command": "uvx",
      "args": [
        "aimarket-mcp"
      ],
      "env": {
        "AIMARKET_METIS_KEY": "<AIMARKET_METIS_KEY>",
        "AIMARKET_API_KEY": "<AIMARKET_API_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 4 of 6 tools read data; 2 names don't say. From the server's own tool labels and tool names; not verified by us.

- `web_fetch` (name suggests: reads): Fetches a URL and returns its main text.
- `web_search` (name suggests: reads): Runs a live DuckDuckGo search and returns top snippets.
- `metis_verify`: Returns an answer with a verify score and verified flag.
- `market_search` (name suggests: reads): Discovers priced capabilities on an AIMarket hub.
- `market_invoke`: Runs one capability on the hub's free trial tier.
- `market_status` (name suggests: reads): Shows remaining trial invokes and prepaid balance.

## FAQ

### Can I try the market without installing?

Yes. The README says to paste https://modelmarket.dev/mcp into a client for market_search and market_invoke with a few free trial invokes.

### What does the package add?

The web_fetch, web_search and metis_verify tools.

### How are paid calls billed?

From a prepaid USDC balance tied to AIMARKET_API_KEY once the free trial is spent.

### Is the HTTP server open by default?

No. Requests without a key are refused unless AIMARKET_MCP_PUBLIC is set to 1.

### How do I add AIMarket MCP Gateway to Claude Code?

Run this command in your terminal: claude mcp add aimarket-mcp --env AIMARKET_METIS_KEY='<AIMARKET_METIS_KEY>' --env AIMARKET_API_KEY='<AIMARKET_API_KEY>' -- uvx aimarket-mcp

### What are the best alternatives to AIMarket MCP Gateway?

The closest alternatives to AIMarket MCP Gateway are REA, Scrapling MCP Server, Context7, Chrome DevTools MCP and Codebase Memory.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Scrapling MCP Server](https://ai-powered.com/mcp/scrapling-mcp-server): Scrapling MCP Server is an open-source MCP server for web search and scraping.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/aimarket-mcp-gateway
