Skip to main content
Glama
bxzymy

MCP Recommender

by bxzymy

list_categories

Retrieve all available MCP server categories to explore tools for development needs. This tool provides a formatted list of categories for intelligent server recommendations.

Instructions

List all available MCP categories.

Returns: Formatted list of available categories

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The handler function for the 'list_categories' MCP tool. It extracts unique categories from the recommender's MCP data, sorts them, counts MCPs per category, and returns a formatted Markdown list. Registered via @mcp.tool() decorator.
    @mcp.tool()
    def list_categories() -> str:
        """
        List all available MCP categories.
        
        Returns:
            Formatted list of available categories
        """
        try:
            categories = set(mcp['category'] for mcp in recommender.mcps)
            categories_list = sorted(categories)
            
            result = "### Available MCP Categories:\n\n"
            for i, category in enumerate(categories_list, 1):
                # Count MCPs in each category
                count = sum(1 for mcp in recommender.mcps if mcp['category'] == category)
                result += f"{i}. **{category}** ({count} MCPs)\n"
            
            result += f"\n**Total:** {len(recommender.mcps)} MCPs across {len(categories_list)} categories"
            return result
            
        except Exception as e:
            return f"### Error\nAn error occurred while listing categories: {str(e)}"

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

Other Tools

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/bxzymy/mcp-recommend'

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