We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/JerripotulaSriharsha/MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
mcp_server_http.py•534 B
from mcp.server.fastmcp import FastMCP
# Create the FastMCP server instance
mcp = FastMCP("mcp-database-server")
# Register tool using FastMCP decorator
@mcp.tool()
def get_documentation_from_database() -> dict:
"""Returns documentation data from a database."""
return {
"title": "How to Use MCP Servers",
"body": "This is a mocked documentation entry from the database. MCP servers expose tools to LLMs.",
"source": "mocked_database"
}
if __name__ == "__main__":
mcp.run("streamable-http")