We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/isomoes/all-in-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
base.py•491 B
# apaper/platforms/base.py
from abc import ABC, abstractmethod
from ..models.paper import Paper
class PaperSource(ABC):
"""Abstract base class for paper sources"""
@abstractmethod
def search(self, query: str, **kwargs) -> list[Paper]:
"""Search for papers based on query"""
raise NotImplementedError
@abstractmethod
def download_pdf(self, paper_id: str, save_path: str) -> str:
"""Download PDF of a paper"""
raise NotImplementedError