Skip to main content
Glama
list_models.py365 B
import google.generativeai as genai import os from dotenv import load_dotenv load_dotenv() genai.configure(api_key=os.getenv("GOOGLE_API_KEY")) print("Available models:") try: for m in genai.list_models(): if 'generateContent' in m.supported_generation_methods: print(m.name) except Exception as e: print(f"Error listing models: {e}")

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SUSHRUTH3002/MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server