aipages-mcp-gateway
OfficialThis server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
š Model Context Protocol (MCP) Server Implementation
AIPages ships a native MCP Server package: @aipages/mcp (published as io.github.2xcel-dev/aipages-mcp-gateway on the Official MCP Registry). It runs locally over standard stdio transport and dynamically exposes on-demand vector discovery and execution tools to Claude Desktop, Cursor, Windsurf, Cline, and any MCP client.
Instant Agent Setup (stdio transport)
Run directly with zero local installation:
npx -y @aipages/mcp@1.1.1Claude Desktop Configuration (claude_desktop_config.json)
{
"mcpServers": {
"aipages": {
"command": "npx",
"args": ["-y", "@aipages/mcp@1.1.1"]
}
}
}Cursor Configuration (.cursor/mcp.json)
{
"mcpServers": {
"aipages": {
"command": "npx",
"args": ["-y", "@aipages/mcp@1.1.1"]
}
}
}Exposed MCP Tools & Protocol Schema
The server implements the Model Context Protocol JSON-RPC specification over stdio and registers the following native MCP tools:
aipages_searchDescription: Query the 3072-dimensional Gemini vector index by natural-language intent to retrieve matching tool schemas and capability descriptors.
Inputs:
query(string, required),limit(number, optional).
aipages_executeDescription: Securely invoke any indexed MCP micro-utility or AUS tool. Supports zero-friction sandbox mode or Base Mainnet x402 USDC micropayment settlement.
Inputs:
namespace(string, required),payload(object, required),testMode(boolean, optional).
aipages_listDescription: Enumerate verified first-party tools, pricing tiers, and active health status.
Inputs:
category(string, optional).
Implementation Source: Located in
packages/mcp-gateway/bin/mcp-gateway.jsOfficial Specification: Model Context Protocol Schema
2025-12-11(server.json)
Related MCP server: BlueAgent x402 Services
What it does
Who is it for?
Software & Autonomous AI Agents: Automated coding agents, LLMs, and multi-agent workflows that need to find external tools programmatically without human intervention.
Tool Developers: Creators and developers who build APIs, MCP servers, or micro-utilities and want their tools discovered by autonomous agents.
What is it? A Machine-Native Discovery Registry & Vector Search Index acting as an intelligent app store and lookup directory specifically engineered for AI agents to find, authenticate, and connect to verified software tool schemas dynamically.
When does it execute?
On Demand (Real-Time Search): Whenever an autonomous agent encounters a task and needs a specific capability (e.g., parsing Markdown, auditing a smart contract, or running code), it queries AIPages instantly.
During Automated Scraping & Indexing: Background cron crawlers continuously scan public repositories like GitHub to discover and index new tools as they are published.
Where does it operate? On the Web & Base Network: Hosted as a high-speed search index (
aipages.tech) connected to backend nodes (aus.2xcel.net), utilizing MongoDB Atlas for vector storage and the Base network for stablecoin micropayments.Why does it exist?
To Solve Agent Discovery Friction: Traditional keyword searches fail for AI agents because agents think in semantic concepts, not exact search terms.
To Guarantee Schema Trust: By rejecting guessed or LLM-inferred schemas and requiring genuine, authoritative manifests (
mcp.jsonor OpenAPI), it ensures agents never crash due to bad tool definitions.To Keep Discovery Free: Discovery, browsing, and listing submissions are 100% free with no rate tolls, shifting monetization entirely to successful execution.
How does it work?
Semantic Vector Search: Converts search queries and tool descriptions into 3072-dimensional mathematical vectors using Gemini (
gemini-embedding-001) and matches them via MongoDB Atlas Vector Search.Authoritative Ingestion: The crawler fetches tools only if they ship with a parseable
mcp.jsonor Swagger/OpenAPI manifest, stripping out guesswork.Execution-Only Monetization: Finding and searching is free; monetization happens strictly at the execution gateway via
x402stablecoin micro-fees on Base when an agent successfully invokes a premium tool.
š ļø First-Party AUS Fleet & x402 Micropayments
The following core micro-utilities are natively hosted on the AUS node (aus.2xcel.net) and indexed within the AIPages directory. Each tool is gated by the x402 micropayment protocol utilizing USDC on the Base Mainnet:
Tool ID | Namespace | Price (USDC) | Capabilities & Description |
|
| Free ($0.00) |
|
|
| Free ($0.00) |
|
|
| Free ($0.00) |
|
|
| Free ($0.00) |
|
|
| $0.05 |
|
|
| $0.08 |
|
|
| $0.12 |
|
|
| $0.15 |
|
|
| $0.15 |
|
|
| $0.20 |
|
|
| $0.25 |
|
|
| $0.25 |
|
|
| $0.25 |
|
|
| $0.25 |
|
Quick Start
# 1. Install dependencies
npm install
# 2. Configure environment
cp .env.example .env
# Edit .env ā set MONGODB_URI, GEMINI_API_KEY, and X402 wallet credentials.
# 3. Seed sample tools (dev)
npm run seed
```bash
npm run dev # hot reload via tsx
# or: npm run build && npm start # compiledAPI & Protocol Architecture
GET /ā Health & service status, pricing manifest, and endpoint map.GET /healthā Database and vector store connectivity.GET /search?q=<query>&limit=<n>ā Free semantic search matching natural-language intent.POST /api/invoke/:namespaceā Core execution gateway and x402 payment gate.
x402 Payment Flow
Autonomous agent calls
POST /api/invoke/:namespacewith anX-Agent-IDheader.For metered tools without payment proof, the server returns HTTP 402 with an
x402payment challenge specifying the exact USDC amount and recipient wallet on Base (eip155:8453).The agent signs and attaches the authorization (
PAYMENT-SIGNATUREorx-payment-receipt) and retries the request.AIPages verifies the settlement and routes execution, returning output to the agent.
Repository Structure
src/
āāā index.ts # Hono app ā routes, server bootstrap
āāā config.ts # Environment config (typed, validated)
āāā types.ts # Tool / SearchResult interfaces
āāā embedding.ts # Gemini gemini-embedding-001 (3072-dim)
āāā db.ts # MongoDB Atlas Vector Search store
āāā invocation.ts # /api/invoke proxy: verify + x402 payment gate + schema + sanitize
āāā verification.ts # caller identity: EIP-712 (Base wallet) / Ed25519 / HMAC signatures
āāā sanitizer.ts # prompt-injection / code-execution payload scanning
āāā egress-guard.ts # SSRF protection, host allowlist, size caps
āāā crawler.ts # background cron crawler (discover ā fetch manifest ā parse/probe)
āāā scraper.ts # GitHub code search & registry indexing
scripts/
āāā sync-notion-dashboard.ts # Synchronizes Notion Operations Hub
āāā sync-ecosystem-catalogs.ts # Syncs x402 directories and registries
āāā execute-ontario-listing.ts # Executes live x402 listing on Ontario ProtocolTech Stack
Component | Technology |
Runtime | Node.js 20+ / TypeScript |
API Framework | Hono ( |
Database | MongoDB Atlas + Atlas Vector Search |
Embeddings | Google Gemini |
Payment Gateway | x402 ( |
Hosting | Railway ( |
License | MIT |
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
This server cannot be deployed
Maintenance
Related MCP Connectors
23 machine-payable AI agent tools over x402 v2 (Base Mainnet USDC) with Bazaar v2 discovery.
Pay-per-use MCP tools for AI agents. USDC on Base via x402. No API keys.
Monetization and execution gateway for autonomous AI agents on Base Mainnet
63 pay-per-call tools for agents: vision, text, data, web, blockchain. USDC on Base via x402.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to autonomously request services from other specialized agents and compensate them via x402 micropayments. Demonstrates a Machine-to-Machine economy using A2A protocol for agent communication, MCP for context management, and blockchain-based payments on Base network.2ISC
- FlicenseNot gradedqualityDmaintenancePay-per-use AI security and research tools for autonomous agents on Base, enabling honeypot detection, risk assessment, wallet analysis, and yield optimization via the x402 protocol.1-
- AlicenseBqualityBmaintenanceDiscover, pay for, execute, and publish monetized APIs directly from your agent, settled per call in USDC over x402, through the Model Context Protocol.4259 npmMIT
- FlicenseNot gradedqualityDmaintenanceProduction-grade Model Context Protocol (MCP) server delivering paywalled Web3 micro-services powered by autonomous x402 payment challenges on Base Mainnet.-