Back to Home
Bin4yi icon

MCP_Authentication_example

Verified Safe

by Bin4yi

Overview

An AI-powered pet care chatbot system integrating a secure Model Context Protocol (MCP) server with an intelligent LangGraph agent, using Asgardeo for authentication.

Installation

Run Command
python main.py

Environment Variables

  • AUTH_ISSUER
  • CLIENT_ID
  • JWKS_URL
  • OPENAI_API_KEY

Security Notes

The server implements robust OAuth2/OIDC authentication using Asgardeo, including JWT token validation against a JWKS endpoint and PKCE for the agent. Environment variables are correctly used for sensitive credentials. A minor potential risk exists in `jwt_validator.py` where `ssl_verify` can be set to `False` for development, which should be explicitly set to `True` for production deployments. The `json.loads` in `suggest_pet_names` has basic cleaning and error handling, making it relatively safe.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens750
Stars0
Forks0
Last Update2025-12-02

Tags

AIChatbotPet CareOAuth2AsgardeoMCPLangGraphOpenAI