Skip to content

Instantly share code, notes, and snippets.

@guyernest
Created July 23, 2025 01:17
Show Gist options
  • Select an option

  • Save guyernest/c0de58e8f1338a140eb30767c2ad3ce1 to your computer and use it in GitHub Desktop.

Select an option

Save guyernest/c0de58e8f1338a140eb30767c2ad3ce1 to your computer and use it in GitHub Desktop.
MCP High Level Secure Flow
graph LR
    subgraph "AI Client Layer"
        AI[AI Tools<br/>Claude, GPT, etc.]
    end

    subgraph "Security Gateway"
        Gateway[API Gateway<br/>+ Lambda Authorizer]
    end

    subgraph "MCP Protocol Layer"
        MCP[MCP Server<br/>Tool Discovery & Execution]
        Tools[Business Tools<br/>• Create Records<br/>• Query Data<br/>• Generate Reports<br/>• Execute Workflows]
    end

    subgraph "Enterprise Systems"
        GraphQL[GraphQL API<br/>Unified Data Layer]
        RestApi[Legacy REST APIs<br/>CRM, ERP, etc.]
        Database[(Direct DB Access<br/>SQL, Mainframe, etc.)]
    end

    AI --> Gateway
    Gateway -->|🔒 Authenticated| MCP
    MCP --> Tools
    
    Tools --> GraphQL
    Tools --> RestApi
    Tools --> Database
    
    GraphQL --> Database
    GraphQL --> RestApi
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment