New in Cosmo

The MCP Gateway

Connect your APIs to AI and give tools like ChatGPT, Gemini, and Claude secure access to your data with full control, built-in governance, and zero code.

Get Started
Trusted Document
GetProduct
// Simple GraphQL operation
query GetProduct($id: ID!) {
product(id: $id) {
name
price
}
}
Expose Operation over MCP
AI Agent
execute_operation_get_product
U
Get product #123
Calling execute_operation_get_product
execute_operation_get_product( id: "123" )
AI
Desk Chair • $249.99
GraphQL to AI bridge
Architecture

System Overview

How the MCP Gateway connects your GraphQL API with AI models

Any GraphQL API
Schema-driven Data Exposure
MCP Gateway
Centralized Data Control
Discovery
Metadata
Execution
Discovery
Interaction
Data Access
Core Capabilities

Give AI Access. Keep Control.

Connect your API with AI models through secure tooling and precise control, unlocking new possibilities for your data

01

AI Discovery

Make your APIs discoverable by AI models like ChatGPT and Claude, starting with GraphQL.

02

Operation Control

Expose only approved operations to AI, with full control over what agents can access.

03

Rich Metadata

Provide detailed schema information and input requirements that AI models can understand and use

04

Instant Integration

Connect your API with AI platforms like ChatGPT, Claude, and Cursor with minimal configuration

MCP Integration

Available AI Tools

Turn your APIs into AI-ready tools — structured, discoverable, and controlled by you.

Automatic Discovery

Enables AI models to autonomously explore your API structure and available operations

Controlled Execution

Operation-specific execution tools that provide secure and governed data access

Rich Metadata

Detailed schema information helps AI models accurately understand your API requirements

Available AI Tools
Built-in functionality for AI models
Discovery Tools
get_operation_info

Retrieves details about a specific operation

get_schemaconditional

Provides the full GraphQL schema

Execution Tools
execute_graphqlconditional

Executes arbitrary GraphQL operations

ExamplesYour Operations as AI Tools
execute_operation_get_users

Gets a list of all users in the system

execute_operation_update_user

Updates user information (mutation operation)

... based on your GraphQL operations
Schema-first

Schema-Aware AI Integration

Cosmo adds rich JSON Schema metadata to your APIs so AI agents understand what each operation does and how to use it safely.

Smart Schema Analysis

Cosmo analyzes your API operations to extract semantic information about what each one does and how it should be used.

Comment Preservation

Cosmo preserves your documentation comments and passes them to AI agents, providing helpful context for every operation.

How It Enhances AI Understanding

This metadata gives AI models the context they need to understand your API structure, parameter types, and validation requirements—helping them generate accurate and valid requests without guesswork.

GraphQL
JSON Schema
GraphQL Schema
# GraphQL Schema
"""
Input for filtering products with price range and stock options
"""
input ProductFilter {
"""
Minimum price threshold for filtering
"""
minPrice: Float
"""
Maximum price threshold for filtering
"""
maxPrice: Float
"""
Filter by stock availability status
"""
inStock: Boolean
}
"""
Main query entry points for the e-commerce API
"""
type Query {
"""
Retrieves products matching the filter criteria
Results can be filtered by price range and availability
"""
products(filter: ProductFilter): [Product!]
}
Generated JSON Schema
// JSON Schema for Query Input
{
"description": "Retrieves products matching the filter criteria. Results can be filtered by price range and availability",
"type": "object",
"properties": {
"filter": {
"type": "object",
"description": "Input for filtering products with price range and stock options",
"properties": {
"minPrice": {
"type": "number",
"description": "Minimum price threshold for filtering"
},"
"maxPrice": {
"type": "number",
"description": "Maximum price threshold for filtering"
},"
"inStock": {
"type": "boolean",
"description": "Filter by stock availability status"
}
}
}
}
}
Natural Language

Empowering Teams to Make AI Work for Them

Democratizing Data Access

MCP opens your data to everyone in your organization through natural language. Non-technical team members can now access complex information without writing a single line of code.

Business Intelligence Assistant

All your data, just a conversation away

Business Intelligence Chat
Active
Today, 10:42 AM
AI

Hello! I'm your Business Intelligence Assistant. You can ask me questions about your company data, and I'll analyze it for you. What would you like to know?

What were our top selling products last quarter by region?

U
AI
Analyzing sales data by product and region...
• Calling execute_operation_get_quarterly_sales
{ region: "all", quarter: "Q3", year: 2023, category: "all" }
• Processing response (200 OK)
• Preparing data visualization
AI

Here are the top selling products from last quarter by region:

Top Products by Region (Q3 2023)
North America:
Premium Wireless Headphones$1.2M
Europe:
Smart Home Hub Pro€950K
Asia Pacific:
Ultra-thin Laptop¥85M

Would you like to see a detailed breakdown of these sales figures, or perhaps compare them to previous quarters?

Data-Driven Decisions

Empower everyone to make data-driven decisions without technical barriers or the need to write complex queries.

Natural Language Queries

Ask questions in plain English and get real answers from your APIs, no GraphQL or SQL required.

Validated Results

All AI queries run through your approved operations to ensure every response is secure, accurate, and consistent.

Ready to connect your API to AI?

Get started with MCP in minutes and unlock the full potential of your APIs with safe, structured AI access.