MCP_Authentication_example
Verified Safeby 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
python main.pyEnvironment 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
mcp-forge-python
A production-ready MCP (Model Context Protocol) server template for building AI-powered applications with OAuth 2.0 authentication and JWT validation.
MCP_Authendication_example
AI-powered pet care chatbot leveraging an MCP server and LangGraph agent for authenticated access to veterinary tools and pet management.
MCP-Servers-using-Python
Demonstrates how to build Model Context Protocol (MCP) servers using `fastmcp` and `fastapi_mcp` libraries through various examples.
mcp-server
Develops an MCP server to expose tools (e.g., arithmetic, Google Calendar event management) and resources to AI applications.