Skip to main content
Glama
JerripotulaSriharsha

GNews MCP Server

mcp_server.py561 B
from mcp.server.fastmcp import FastMCP # Create the FastMCP server instance mcp = FastMCP("mcp-documentation-server", port="10000", host="localhost") # 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("stdio")

Latest Blog Posts

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/JerripotulaSriharsha/MCP'

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