model-gateway
Provides integration with Google Vertex (Google Cloud) for model discovery, cataloging, and contract lifecycle management, enabling agents to search models by modality (video, image, audio, text), view pricing and terms, and create/block/update/cancel contracts for using models.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@model-gatewaywhat video generation models are available?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Model Gateway
Model discovery, cataloging, and agent→provider contracting harness. Beckn Protocol v2-aligned (catalog + contract layer) and MCP-native.
Scope (v1): catalog + discovery + contract lifecycle over your generative-model providers (OpenRouter, Google Vertex, Runway, …). Transaction-sandbox / live-network participation (DeDi broadcast, signed callbacks) is a deferred phase.
What it answers for an agent
"What models can generate video (or image/audio/text)?" — modality search
"What does model X cost, what are its terms?" — pricing + ToU
"Block this model for my use, track my usage, and let me rate it / get support" — contract lifecycle
Related MCP server: Models PLUS
Quick start
npm install
npm run migrate
npm run seed # seeds OpenRouter, Google Vertex, Runway + representative models
npm start # REST on :8090 (PORT to override)
npm run mcp # MCP stdio server (tools for agents)
npm test # 25/25 E2E (catalog + contract lifecycle + MCP)REST API (Beckn verb → endpoint)
Beckn v2 | Endpoint | Purpose |
search |
| search models by modality/capability/provider/price |
— |
| models supporting modality(ies) |
— |
| model detail (Beckn Item: pricing, capabilities, ToU) |
— |
| providers + Beckn catalog |
select |
| quote a contract |
init |
| create contract (agent blocks a model) |
— |
| activate/block for use |
status |
| contract + Beckn order view |
track |
| record/aggregate usage |
update |
| update quota/terms/notes |
cancel |
| cancel |
rating |
| rate the model |
support |
| request support |
MCP tools (stdio)
list_providers, list_models, models_by_modality, get_model, get_catalog, quote, create_contract, block_model, update_contract, cancel_contract, track_usage, contract_status, rate_model, request_support
Add to an MCP client:
{ "mcpServers": { "model-gateway": { "command": "node", "args": ["/path/to/src/mcp/server.js"], "env": { "DB_PATH": "/path/to/model-gateway.sqlite" } } } }Beckn v2 mapping
See docs/ARCHITECTURE.md. Provider→BPP, Model→Item, Catalog→Beckn Catalog,
Contract→Order/Fulfillment, Rating/Support/Track→respective Beckn actions.
Payloads are Beckn-shaped so they validate against v2 catalog/contract semantics.
Contract state machine
draft → quoted → active → (paused) → completed | cancelled | failed (+ support overlay).
This server cannot be deployed
Maintenance
Related MCP Connectors
AgencyAI's public MCP for service discovery and AI-readiness assessment.
Discover and call 10,000+ production APIs from one MCP server. Pay-per-call billing for AI agents.
AI agent registry — search, discover, register, and connect agents via MCP.
Capability registry for the agentic economy. Semantic search over verified MCP server listings.
Related MCP Servers
- AlicenseAqualityNot gradedmaintenanceEnables AI assistants to discover, retrieve details about, and manage MCP (Model Context Protocol) servers that provide additional tools and capabilities on demand.563 npm10-
- AlicenseNot gradedqualityDmaintenanceProvides comprehensive AI model metadata through MCP, enabling search and filtering of 100+ AI models by capabilities, pricing, context length, and provider specifications.MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for fal model discovery, execution, pricing, and local media processing, enabling AI model workflows via natural language.83 npmMIT
- AlicenseNot gradedqualityDmaintenanceMCP Server for agent and service discovery — register, search, rate, and manage AI agents and services in a local directory.6 npmMIT