Gruenerator MCP Server

Gruenerator MCP Server

A Model Context Protocol server that gives AI assistants direct access to Green Party political programs from Germany and Austria.

Category
访问服务器

README

Gruenerator MCP Server

CI License: MIT Node.js Version

A Model Context Protocol (MCP) server that gives AI assistants direct access to Green Party political programs from Germany and Austria.

Table of Contents

Demo

<!-- Add screenshot or GIF of MCP client using Gruenerator --> Coming soon: Demo of search functionality in action

Features

  • Hybrid Search - Combines vector and text search with RRF fusion
  • German Optimization - Umlaut handling (ä→ae, ö→oe, etc.) and query variants
  • Quality Scoring - Results weighted by document quality
  • Semantic Caching - Fast responses for repeated queries
  • Metadata Filtering - Filter by document type, section, category, etc.
  • Filter Discovery - Query available filter values before searching
  • MCP Resources - Direct access to collection information and AI guidance

Available Document Collections

Collection Description Filters
oesterreich Die Grünen Austria: EU Election, Basic Program, National Council title
deutschland Bündnis 90/Die Grünen: Basic Program, EU Election, Government Program title
bundestagsfraktion Green Parliamentary Group: Positions and expert content section
gruene-de gruene.de website: Positions, topics, and news section
gruene-at gruene.at website: Positions, topics, and news section
kommunalwiki KommunalWiki: Municipal politics knowledge (Heinrich Böll Foundation) article_type, category
boell-stiftung Heinrich-Böll-Stiftung: Analyses, dossiers, and atlases content_type, topic, region

Prerequisites

Before you begin, ensure you have:

  • Node.js >= 18.0.0
  • Qdrant vector database instance (cloud or self-hosted)
  • Mistral API key for embedding generation (get one here)

Installation

With Docker (Recommended)

# Build image
docker build -t gruenerator-mcp .

# Run container
docker run -d \
  --name gruenerator-mcp \
  -p 3000:3000 \
  -e QDRANT_URL=https://your-qdrant.com \
  -e QDRANT_API_KEY=your-api-key \
  -e MISTRAL_API_KEY=your-mistral-key \
  gruenerator-mcp

Local Development

# Clone repository
git clone https://github.com/Movm/Gruenerator-MCP.git
cd Gruenerator-MCP

# Install dependencies
npm install

# Set environment variables
cp .env.example .env
# Edit .env with your credentials

# Start server
npm start

# Or with auto-reload
npm run dev

With Coolify

  1. Create a new project
  2. Connect Git repository: https://github.com/Movm/Gruenerator-MCP
  3. Set environment variables (see below)
  4. Deploy

Configuration

Environment Variables

Variable Description Required
QDRANT_URL URL to Qdrant instance Yes
QDRANT_API_KEY API key for Qdrant Yes
MISTRAL_API_KEY API key for Mistral embeddings Yes
PORT Server port No (default: 3000)
PUBLIC_URL Public URL for config generation No
LOG_LEVEL Log level: DEBUG, INFO, WARN, ERROR No (default: INFO)

MCP Client Setup

Cursor / Claude Desktop

Add to your MCP configuration:

{
  "mcpServers": {
    "gruenerator": {
      "url": "http://localhost:3000/mcp"
    }
  }
}

After configuration, you can ask questions like:

  • "Search the Austrian Green programs for climate policy"
  • "What does the German Green basic program say about energy transition?"
  • "Find municipal politics guidance on waste management in KommunalWiki"
  • "What are the Bundestagsfraktion's positions on renewable energy?"
  • "Search Böll-Stiftung for analyses on feminism and gender equality"

API Reference

Endpoints

Endpoint Method Description
/mcp POST MCP communication
/mcp GET SSE stream
/mcp DELETE End session
/health GET Health check with cache and request statistics
/metrics GET Detailed server metrics
/.well-known/mcp.json GET Auto-discovery metadata
/config/:client GET Generate client configuration
/info GET Server information

Health Check Response

{
  "status": "ok",
  "service": "gruenerator-mcp",
  "version": "1.0.0",
  "collections": ["oesterreich", "deutschland", "bundestagsfraktion", "gruene-de", "gruene-at", "kommunalwiki", "boell-stiftung"],
  "uptime": { "ms": 3600000, "hours": 1.0 },
  "cache": {
    "embeddingHitRate": "65%",
    "searchHitRate": "42%"
  },
  "requests": { "total": 150, "searches": 120, "errors": 0 },
  "performance": { "avgResponseTimeMs": 250, "cacheHitRate": "65%" }
}

Metrics Response

{
  "server": { "name": "gruenerator-mcp", "version": "1.0.0" },
  "uptime": { "hours": 1.0 },
  "requests": { "total": 150, "searches": 120 },
  "breakdown": {
    "byCollection": { "deutschland": 40, "oesterreich": 30, "kommunalwiki": 25, "bundestagsfraktion": 20, "gruene-de": 15, "gruene-at": 20 },
    "bySearchMode": { "hybrid": 100, "vector": 15, "text": 5 }
  },
  "cache": {
    "embeddings": { "entries": 50, "hitRate": "65%" },
    "search": { "entries": 30, "hitRate": "42%" }
  },
  "memory": { "heapUsedMB": 45, "rssMB": 120 }
}

MCP Tools & Resources

Tools

gruenerator_search

Searches party programs and content with hybrid, vector, or text search.

Parameters:

Parameter Type Description Default
query string Search term or question required
collection string Collection to search (see table above) required
searchMode string hybrid, vector, or text hybrid
limit number Maximum number of results (1-20) 5
filters object Metadata filters (see below) optional
useCache boolean Use cache true

Available Filters by Collection:

Filter Collections Description
documentType oesterreich, deutschland Document type (grundsatzprogramm, wahlprogramm, eu-wahlprogramm)
title oesterreich, deutschland Exact document title
section bundestagsfraktion, gruene-de, gruene-at Content section (Positionen, Themen, etc.)
article_type kommunalwiki Article type (literatur, praxishilfe, faq, etc.)
category kommunalwiki Thematic category (Haushalt, Umwelt, etc.)
content_type boell-stiftung Content type (artikel, dossier, atlas, schwerpunkt)
topic boell-stiftung Topic (klima, feminismus, migration, digitalisierung, etc.)
region boell-stiftung Geographic region (afrika, europa, asien, lateinamerika, etc.)

Example:

{
  "query": "climate protection and renewable energy",
  "collection": "kommunalwiki",
  "searchMode": "hybrid",
  "limit": 5,
  "filters": { "article_type": "praxishilfe", "category": "Umwelt" }
}

gruenerator_get_filters

Discovers available filter values for a collection. Use this before filtering to know valid values.

Parameters:

Parameter Type Description Default
collection string Collection to get filters for required

Example Response:

{
  "collection": "KommunalWiki",
  "collectionId": "kommunalwiki",
  "description": "Municipal politics knowledge (Heinrich Böll Foundation)",
  "filters": {
    "article_type": {
      "label": "Article Type",
      "type": "keyword",
      "values": ["literatur", "praxishilfe", "faq", "sachgebiet"],
      "count": 4
    },
    "category": {
      "label": "Category",
      "type": "keyword",
      "values": ["Haushalt", "Umwelt", "Verkehr", "..."],
      "count": 25
    }
  }
}

gruenerator_cache_stats

Shows cache statistics for embeddings and search results.

Parameters: None

Example Response:

{
  "embeddings": { "entries": 50, "hits": 120, "misses": 30, "hitRate": "80%" },
  "search": { "entries": 30, "hits": 80, "misses": 40, "hitRate": "67%" }
}

get_client_config

Generates ready-to-use MCP configurations for various clients.

Parameters:

  • client (string, required) - claude, cursor, or vscode

Resources

The server provides the following resources via MCP protocol:

URI Description
gruenerator://system-prompt Read first! Usage instructions for AI assistants
gruenerator://info Server information and capabilities
gruenerator://collections List of all available collections
gruenerator://collections/{key} Details of a specific collection (oesterreich, deutschland, bundestagsfraktion, gruene-de, gruene-at, kommunalwiki, boell-stiftung)

Search Modes

Hybrid (Default)

Combines vector and text search with Reciprocal Rank Fusion (RRF). Best results for most queries.

Vector

Pure semantic search based on embeddings. Good for conceptual questions.

Text

Classic text search with German optimizations. Good for exact terms or names.

Contributing

Contributions are welcome! Here's how you can help:

  1. Report bugs - Open an issue using the bug report template
  2. Request features - Open an issue using the feature request template
  3. Submit PRs - Fork the repo, create a branch, and submit a pull request

Please ensure your PR:

  • Passes CI checks
  • Follows existing code style
  • Includes appropriate documentation updates

Acknowledgments

License

MIT License - see LICENSE

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选