Skip to content

Commit fe5ccfa

Browse files
authored
feat: mcp server, ai guide (#36)
* feat: mcp server, ai guide * feat: add context7 json file
1 parent 9cb064a commit fe5ccfa

5 files changed

Lines changed: 69 additions & 1 deletion

File tree

docs/ai.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
sidebar_position: 9
3+
---
4+
5+
# Artificial Intelligence
6+
7+
Meteostat provides different interfaces for accessing information using generative AI. Here you can find more information about these interfaces and how to use them.
8+
9+
## Skill
10+
11+
Meteostat provides a [free skill](/cli/skill) based on the [Meteostat CLI](/cli). This allows you to ask questions about weather and climate data in natural language. It is primarily designed for local use with AI agents, such as Claude, GitHub Copilot, OpenCode, Kiro, etc.
12+
13+
## MCP Server
14+
15+
If you're looking for a more scalable solution, Meteostat also provides a [remote MCP server](/api/mcp) through RapidAPI. This provides access to weather and climate data through AI agents that support the MCP protocol, enabling you to ask questions about historical weather data in natural language.
16+
17+
## Context7
18+
19+
If you want to enable your AI agent to access the entire Meteostat documentation, use [Context7](https://context7.com/websites/dev_meteostat_net). You'll need to [setup Context7](https://github.com/upstash/context7#installation) with your AI agent. Then, you can ask questions about the documentation in natural language. This is especially useful if you're building software that uses one of the Meteostat interfaces and you want to quickly find relevant information about the API endpoints, parameters, etc.

docs/api/mcp.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
title: MCP Server | JSON API
3+
sidebar_label: MCP Server
4+
sidebar_position: 4
5+
---
6+
7+
# MCP Server
8+
9+
Meteostat provides a remote MCP (Model Context Protocol) server through RapidAPI. This provides access to weather and climate data through AI agents that support the MCP protocol, enabling you to ask questions about historical weather data in natural language.
10+
11+
## 📚 Installation {#installation}
12+
13+
Before you can start asking questions about the weather, you need to [set up an account on RapidAPI and subscribe to the Meteostat API](https://rapidapi.com/meteostat/api/meteostat). Then, you must add the MCP server to your agent's configuration. The exact steps depend on the agent (Claude, GitHub Copilot, OpenCode, Kiro, etc.) you are using, but generally involve adding something like the following to your agent's configuration file:
14+
15+
```json
16+
{
17+
"mcpServers": {
18+
"meteostat": {
19+
"command": "npx",
20+
"args": [
21+
"mcp-remote",
22+
"https://mcp.rapidapi.com",
23+
"--header",
24+
"x-api-host: meteostat.p.rapidapi.com",
25+
"--header",
26+
"x-api-key: YOUR_RAPIDAPI_KEY"
27+
]
28+
}
29+
}
30+
}
31+
```
32+
33+
## 🚀 Usage {#usage}
34+
35+
Now you can ask questions about weather and climate data in natural language. For example, you can ask:
36+
37+
> What was the hottest day in Frankfurt in the 2020s?
38+
39+
The AI agent will then use the MCP server to query the Meteostat API and provide you with an answer. Something like this:
40+
41+
> The hottest day in Frankfurt in the 2020s (through 2025) was August 4, 2022, with a maximum temperature of 38.6°C (101.5°F). That was part of a severe European heat wave that summer.

docs/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
sidebar_position: 9
2+
sidebar_position: 10
33
---
44

55
# FAQ

sidebars.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ const sidebars: SidebarsConfig = {
5555
type: "doc",
5656
id: "donate",
5757
},
58+
{
59+
type: "doc",
60+
id: "ai",
61+
},
5862
{
5963
type: "doc",
6064
id: "faq",

static/context7.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"url": "https://context7.com/websites/dev_meteostat_net",
3+
"public_key": "pk_C7CObPQVIFduy2xqz2jUH"
4+
}

0 commit comments

Comments
 (0)