Skip to main content
Glama

WebSearch MCP Server

by Howe829
base.py652 B
from abc import abstractmethod from pydantic import BaseModel from config import settings from http_client import aio_client class BaseWebSearchProvider(BaseModel): @abstractmethod def _get_url(self) -> str: raise NotImplementedError @abstractmethod def _get_params(self, query: str, **kwargs) -> dict: raise NotImplementedError async def search(self, query: str, use_browser: bool = False, **kwargs) -> str: url = self._get_url() params = self._get_params(query=query, **kwargs) return await aio_client.get_markdown( url=url, params=params, use_browser=use_browser )

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/Howe829/websearch-mcp-server'

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