Skip to main content
Glama

Model Context Protocol Server

base.py450 B
from abc import ABC, abstractmethod from typing import Dict, Any, Optional class BaseContextProvider(ABC): """Base class for all context providers""" @abstractmethod async def get_context(self, query: str, **kwargs) -> Dict[str, Any]: """Get context from the provider""" pass @abstractmethod async def validate_connection(self) -> bool: """Validate the connection to the data source""" pass

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/Shekharmaheswari85/MCP'

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