Skip to main content
Glama
V2-Digital

V2.ai Insights Scraper MCP

by V2-Digital

search_blogs

Search blog posts by querying titles, content, and authors to find relevant articles from V2.ai Insights.

Instructions

Search blog posts across all content using text query. Searches titles, content, authors, and other fields.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
limitNo

Implementation Reference

  • The underlying logic for searching blogs, which connects to the Contentful API.
    def _search_blogs(query: str, limit: int = 10):
        """Search blog posts across all content using Contentful's search API"""
        if not os.getenv("CONTENTFUL_SPACE_ID") or not os.getenv("CONTENTFUL_ACCESS_TOKEN"):
            return {
                "error": "Contentful not configured. Set CONTENTFUL_SPACE_ID and CONTENTFUL_ACCESS_TOKEN environment variables."
            }
    
        try:
            from .contentful_client import ContentfulClient
    
            client = ContentfulClient()
            return client.search_blog_posts(
                query=query,
                content_type=os.getenv("CONTENTFUL_CONTENT_TYPE", "blogPost"),
                limit=limit,
            )
        except Exception as e:
            return {"error": f"Error searching Contentful: {str(e)}"}
  • The MCP tool registration for the search_blogs tool.
    @mcp.tool()
    def search_blogs(query: str, limit: int = 10):
        """Search blog posts across all content using text query. Searches titles, content, authors, and other fields."""
        return _search_blogs(query, limit)

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/V2-Digital/v2-ai-mcp'

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