Skip to main content
Glama
Dhavaleswar

Explore MCP

by Dhavaleswar
mcp_client_check2.py626 B
import asyncio from fastmcp import Client, FastMCP from mcp_server import mcp client = Client(mcp) async def main(): async with client: await client.ping() #list available tools tools = await client.list_tools() print("Available tools:", tools) resources = await client.list_resources() print("Available resources:", resources) prompts = await client.list_prompts() print("Available prompts:", prompts) result = await client.call_tool("add", {"a": 5, "b": 7}) print("Result of add(5, 7):", result.content[0].text) asyncio.run(main())

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/Dhavaleswar/explore-mcp'

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