logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

mcp-german-energy-data-retriever

Interface for accessing German renewable power infrastructure news and documentation, enabling users to refine searches based on specific geographic coordinates and diverse green energy classifications. Facilitates time-bound and recency-based data retrieval operations utilizing secure, structured protocols.

Author

mcp-german-energy-data-retriever logo

nefino

Apache License 2.0

Quick Info

GitHub GitHub Stars 0
NPM Weekly Downloads 0
Tools 1
Last Updated 2026-02-19

Tags

apisretrievalqueriesrequests nefinoenergy newsfilter announcements

German Renewable Energy Data Access Module (MCP)

This Model Context Protocol (MCP) module furnishes Large Language Models (LLMs) with structured access to current reports, project filings, and public announcements pertaining to sustainable energy initiatives within the Federal Republic of Germany. It leverages the proprietary Nefino API backend for authoritative data sourcing.

Core Capabilities

  • Fetch intelligence pertinent to defined geographical zones.
  • Apply granular filtering across multiple renewable generation categories (e.g., photovoltaic, wind farms, electrolysis, transmission expansion).
  • Support querying based on explicit temporal spans or relative timeframes.
  • Ensure data security via configuration-based secret management (environment variables).
  • Comprehensive parameter validation and structured exception reporting.
  • Full compliance with the Model Context Protocol specification.

Deployment Instructions

Prerequisites

  • Runtime environment requiring Python version 3.10 or newer.
  • Valid access credentials for the target Nefino service API.

Installation Steps

pip install git+https://github.com/nefino/mcp-nefino.git

Configuration Parameters

Essential operational secrets and endpoints must be supplied via environment variables prior to execution.

NEFINO_USERNAME=your_username
NEFINO_PASSWORD=your_password
NEFINO_JWT_SECRET=your_jwt_secret
NEFINO_BASE_URL=http://api_endpoint

Integration Guide

Utilizing Claude Desktop Client

  1. Obtain and install the official Claude Desktop application

  2. Insert the following configuration block into your local settings file (~/Library/Application Support/Claude/claude_desktop_config.json on MacOS or %APPDATA%\Claude\claude_desktop_config.json on Windows):

{
  "mcpServers": {
    "nefino": {
      "command": "python",
      "args": ["-m", "mcp_nefino"],
      "env": {
        "NEFINO_USERNAME": "your_username",
        "NEFINO_PASSWORD": "your_password",
        "NEFINO_JWT_SECRET": "your_jwt_secret",
        "NEFINO_BASE_URL": "http://api_endpoint"
      }
    }
  }
}
  1. Relaunch the Claude Desktop environment.

Standalone Execution

Execution can be initiated directly from the command line:

python -m mcp_nefino

Exposed Functionality

query_project_updates

Fetches records pertaining to energy developments for a specified administrative unit, subject to optional constraints.

Parameters: - location_identifier (string): Unique identifier corresponding to the geographical entity. - jurisdiction_level (enum): Classification of the location type (PR, CTY, AU, LAU). - time_constraint (enum, optional): Defines the temporal scope: RANGE (specific dates) or RECENCY (past N days). - recent_period_days (integer, optional): Specifies the look-back duration in days (active when time_constraint is RECENCY). - start_date (string, optional): Temporal anchor for query start, formatted as YYYY-MM-DD (active when time_constraint is RANGE). - end_date (string, optional): Temporal anchor for query termination, formatted as YYYY-MM-DD (active when time_constraint is RANGE). - technology_filters (list of enums, optional): Filters results by focus areas (e.g., STORAGE_SOLUTIONS, TRANSMISSION, PHOTOVOLTAIC, HYDROGEN, WIND_POWER).

Example invocation via Claude interface:

Ascertain details on photovoltaic progress within administrative unit DE9_AU0213 between January 1st and June 30th, 2024.

Development Mode

To facilitate debugging and inspection using the MCP Inspector utility:

mcp dev -m mcp_nefino

Operational Integrity Checks

The server rigorously validates all incoming data parameters, including: - Adherence to the YYYY-MM-DD date convention. - Logical consistency within the specified date span. - Mutually exclusive use of RANGE versus RECENCY parameters. - Validity of configured authentication tokens and network accessibility. - Validity of specified technology classification enumerations.

All failures result in descriptive diagnostic messages to aid troubleshooting.

[License type - e.g., MIT] - Refer to the LICENSE file for full terms.

Background Context (XMLHttpRequest)

WIKIPEDIA: XMLHttpRequest (XHR) is an API in the form of a JavaScript object whose methods transmit HTTP requests from a web browser to a web server. The methods allow a browser-based application to send requests to the server after page loading is complete, and receive information back. XMLHttpRequest is a component of Ajax programming. Prior to Ajax, hyperlinks and form submissions were the primary mechanisms for interacting with the server, often replacing the current page with another one.

== History == The concept behind XMLHttpRequest was conceived in 2000 by the developers of Microsoft Outlook. The concept was then implemented within the Internet Explorer 5 browser (1999). However, the original syntax did not use the XMLHttpRequest identifier. Instead, the developers used the identifiers ActiveXObject("Msxml2.XMLHTTP") and ActiveXObject("Microsoft.XMLHTTP"). As of Internet Explorer 7 (2006), all browsers support the XMLHttpRequest identifier. The XMLHttpRequest identifier is now the de facto standard in all the major browsers, including Mozilla's Gecko layout engine (2002), Safari 1.2 (2004) and Opera 8.0 (2005).

=== Standards === The World Wide Web Consortium (W3C) published a Working Draft specification for the XMLHttpRequest object on April 5, 2006. On February 25, 2008, the W3C published the Working Draft Level 2 specification. Level 2 added methods to monitor event progress, allow cross-site requests, and handle byte streams. At the end of 2011, the Level 2 specification was absorbed into the original specification. At the end of 2012, the WHATWG took over development and maintains a living document using Web IDL.

== Usage == Generally, sending a request with XMLHttpRequest has several programming steps.

Create an XMLHttpRequest object by calling a constructor: Call the "open" method to specify the request type, identify the relevant resource, and select synchronous or asynchronous operation: For an asynchronous request, set a listener that will be notified when the request's state changes: Initiate the request by calling the "send" method: Respond to state changes in the event listener. If the server sends response data, by default it is captured in the "responseText" property. When the object stops processing the response, it changes to state 4, the "done" state. Aside from these general steps, XMLHttpRequest has many options to control how the request is sent and how the response is processed. Custom header fields can be added to the request to indicate how the server should fulfill it, and data can be uploaded to the server by providing it in the "send" call. The response can be parsed from the JSON format into a readily usable JavaScript object, or processed gradually as it arrives rather than waiting for the entire text. The request can be aborted prematurely or set to fail if not completed in a specified amount of time.

== Cross-domain requests ==

In the early development of the World Wide Web, it was found possible to brea

See Also

`