New in Cosmo

The MCP Gateway

Connect any GraphQL API with AI, giving ChatGPT, Gemini, Claude, and other models secure access to your data with precise control, complete data governance, and zero code integration.

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

Why You Need MCP For Your GraphQL API

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

01

AI Discovery

Make your GraphQL API automatically discoverable by AI models like ChatGPT, Claude, and others

02

Operation Control

Expose only specific, pre-validated GraphQL operations to AI models, ensuring security and compliance

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

MCP transforms your GraphQL operations into a rich toolset that AI models can discover and use, enabling seamless interaction with your data.

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 analyzes your GraphQL schema and operations to generate rich JSON Schema metadata that helps AI models understand your API's capabilities and requirements.

Smart Schema Analysis

Cosmo automatically analyzes your GraphQL schema structure and operations to extract rich semantic information about your API's capabilities.

Comment Preservation

Documentation comments from your GraphQL schema are preserved and transferred to the AI tooling schema, providing rich context for AI models.

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

EMPOWER EVERYONE

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 instant insights from your data. No SQL or GraphQL knowledge required.

Validated Results

All queries are executed through your pre-defined GraphQL operations, ensuring secure, accurate, and consistent results.

Ready to supercharge your GraphQL API with AI?

Get started with MCP in minutes and unlock the full potential of your data through AI integration.