Skip to content

Browser-free MCP client solution available #12

@ajitnk-lab

Description

@ajitnk-lab

🚀 Browser-Free MCP Client Solution

I've developed a browser-free MCP client that solves OAuth callback issues in headless environments.

🔗 Solution Repository

https://github.com/ajitnk-lab/aws-mcp-browser-free

🎯 Problem Solved

The current MCP client requires browser OAuth callbacks which fail in:

  • Headless environments
  • CI/CD pipelines
  • Server deployments
  • Docker containers

Key Features

  • No browser required - Direct username/password authentication with Cognito
  • Command line parameters - Pass state codes for weather alerts
  • SSE support - Handles StreamableHTTP transport responses
  • Simple deployment - Single Python file, no complex dependencies
  • Fully tested - Works with deployed AWS MCP weather servers

📁 Files Provided

  • working_mcp_client.py - Main browser-free client
  • BROWSER_FREE_CLIENT.md - Complete documentation
  • cognitoupdates.md - Required Cognito configuration changes

🧪 Testing Results

✅ Successfully connects to AWS MCP servers
✅ Retrieves weather alerts and forecasts
✅ Handles SSE responses correctly
✅ Works without any browser interaction

💡 Integration Suggestion

This solution could be added to the official guidance as an alternative client for headless environments, maintaining full compatibility with the existing browser-based approach.

Would you be interested in reviewing this contribution for potential inclusion in the official guidance?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions