Skip to main content
Glama

MemOS-MCP

by qinshu1109
markitdown.py615 B
from markitdown import MarkItDown from memos.configs.parser import MarkItDownParserConfig from memos.log import get_logger from memos.parsers.base import BaseParser logger = get_logger(__name__) class MarkItDownParser(BaseParser): """MarkItDown Parser class.""" def __init__(self, config: MarkItDownParserConfig): self.config = config def parse(self, file_path: str) -> str: """Parse the file at the given path and return its content as a MarkDown string.""" md = MarkItDown(enable_plugins=False) result = md.convert(file_path) return result.text_content

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/qinshu1109/memos-MCP'

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