We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mlziade/librarian'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
librarian.py•921 B
from typing import Any
import httpx
from mcp.server.fastmcp import FastMCP
from logging_config import setup_logging, get_logger
# Configure logging
setup_logging()
logger = get_logger(__name__)
# Import Wikipedia tools and resources
from tools.wikipedia_tools import register_wikipedia_tools
from resources.wikipedia_resources import register_wikipedia_resources
from resources.prompt_resources import register_prompt_resources
# Initialize FastMCP server
mcp = FastMCP("librarian")
# Register Wikipedia tools and resources
register_wikipedia_tools(mcp)
register_wikipedia_resources(mcp)
register_prompt_resources(mcp)
if __name__ == "__main__":
logger.info("Starting Librarian MCP Server...")
logger.info("Wikipedia tools and resources loaded")
logger.info("Server is ready and listening for connections")
# Run the MCP server using stdio transport (standard for MCP)
mcp.run(transport='stdio')