# Aleva open data

> Aleva open data is a free MCP server for analytics and data. Read-only Swedish public data: courts, domains, energy, transport, statistics and more. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** API, Web
- **Website:** https://aleva.se/en/docs/mcp
- **MCP Registry name:** se.aleva/data
- **Categories:** analytics and data, legal and government
- **Listing updated:** 2026-11-16

## About

Aleva turns each of its published API endpoints into an MCP tool, so an assistant can find a dataset, query it and get the answer back with its source and licence. Two helper tools, search_catalogue and describe_endpoint, locate a dataset and explain its fields, licence and freshness. The rest are one tool per endpoint.

Coverage is broad and Swedish: court rulings, dropped, new and expiring .se and .nu domains, DNSSEC and name server statistics, electricity balance and forecasts, train punctuality, SMHI weather, consumer and house prices, population, municipal figures, tourism guest nights, medicine shortages, Riksbank rates, job ads and Riksdag voting patterns. A few tools track Sweden's own web, such as llms.txt adoption and MCP or A2A endpoints.

No account or key is required. Without a key the limit is 10 cost units a minute and 200 a day per IP; a key lifts this to the key's own limits. Everything is read-only, and users should credit the source shown with each response.

## Features

- **One tool per endpoint:** Every published Aleva API endpoint is also an MCP tool.
- **Catalogue search:** search_catalogue and describe_endpoint help the assistant choose a dataset.
- **Source and licence included:** Responses carry their source and licence for attribution.
- **Swedish public registries:** Courts, domains, medicines, jobs and municipal figures.
- **Infrastructure and energy data:** Electricity, train punctuality and weather per station.
- **Optional API key:** Keyless use is rate limited; a bearer key applies its own limits.

## Good for

- Find recent Swedish court rulings
- See which .se domains are about to be released
- Check train punctuality by station and day
- Compare municipal key figures
- Look up the nutrient content of a food

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http data https://api.aleva.se/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://api.aleva.se/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "data": {
      "url": "https://api.aleva.se/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "data": {
      "type": "http",
      "url": "https://api.aleva.se/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "data": {
      "serverUrl": "https://api.aleva.se/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "data": {
      "type": "http",
      "url": "https://api.aleva.se/mcp"
    }
  }
}
```

## Tools

- `search_catalogue`: Searches the datasets.
- `describe_endpoint`: Describes fields, licence and freshness of one endpoint.
- `airport_passengers`: Passengers per airport and year.
- `air_passengers_monthly`: Air passengers in Sweden per month.
- `court_rulings`: Published court rulings.
- `court_rulings_by_court`: Rulings per court.
- `domains_dropped`: Dropped .se and .nu domains on a date.
- `domains_expiring`: Domains about to be released.
- `domains_valuable`: Expiring domains with a value score.
- `domains_new`: New .se and .nu domains on a date.
- `domain_lookup`: One domain in the latest zone.
- `debt_restructuring`: Debt restructuring applications per month.
- `debt_restructuring_by_age`: Debt restructuring per year and age.
- `electricity_balance`: Electricity production and use per year.
- `electricity_forecast`: Electricity production per source with forecast.
- `foods`: Foods and nutrients per 100 g.
- `job_ads`: Open job ads per day.
- `job_ads_national`: Open job ads in Sweden per day.
- `medicine_shortages`: Medicine shortages.
- `medicine_shortages_by_group`: Ongoing shortages per ATC group.
- `medicine_shortages_monthly`: New medicine shortages per month.
- `municipal_figures`: Key figures per municipality and year.
- `municipal_figures_latest`: Key figures per municipality, latest year.
- `riksbank_rates`: Policy rate and exchange rates per day.
- `swestr`: Swestr per day.
- `party_agreement`: How often the parties vote alike.
- `party_attendance`: Votes and absence per party.
- `stats_dnssec`: DNSSEC adoption per zone and day.
- `stats_nameservers`: Name server operators and market share.
- `consumer_prices`: Consumer price index per month.
- `house_prices`: House price index.
- `population`: Population per region and year.
- `population_latest`: Population in the latest year and change.
- `guest_nights`: Guest nights per month.
- `guest_nights_by_country`: Foreign guest nights per country and year.
- `guest_nights_by_county`: Guest nights per county and year.
- `train_punctuality`: Train punctuality per station and day.
- `train_punctuality_daily`: Train punctuality in Sweden per day.
- `weather_history`: Weather per hour and station.
- `weather_now`: Current weather per SMHI station.
- `web_agents`: Swedish A2A agents.
- `web_ai_stance`: AI and crawler stance of Swedish websites per month.
- `web_apis`: Swedish public APIs.
- `web_commerce_agents`: Swedish agentic commerce.
- `web_llms`: llms.txt adoption in Sweden.
- `web_mcp_registry`: Swedish MCP servers in the Aleva registry.
- `web_mcp_servers`: Swedish MCP, agent and API endpoints.

## FAQ

### Do I need a key?

No. Without one you get 10 cost units a minute and 200 a day per IP address.

### Can the tools change data?

No, everything is read-only.

### Do responses show where data came from?

Yes. Each response carries its source and licence and should be credited.

### How do I add it to Claude Code?

Run claude mcp add --transport http aleva https://api.aleva.se/mcp.

### Is Aleva open data free?

Yes. Aleva open data is free to use.

### How do I add Aleva open data to Claude Code?

Run this command in your terminal: claude mcp add --transport http data https://api.aleva.se/mcp

### What are the best alternatives to Aleva open data?

The closest alternatives to Aleva open data are Agent-Native Analytics, Google Ads + Meta Ads + SEO/GEO MCP, Tapetide - Indian Stock Market MCP, World Monitor and CompanyData.

## Alternatives

- [Agent-Native Analytics](https://ai-powered.com/mcp/agent-native-analytics): Agent-Native Analytics is an open-source MCP server for analytics and data.
- [Google Ads + Meta Ads + SEO/GEO MCP](https://ai-powered.com/mcp/google-ads-meta-ads-seo-geo-mcp): Google Ads + Meta Ads + SEO/GEO MCP is a freemium MCP server for marketing and seo.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.
- [World Monitor](https://ai-powered.com/mcp/world-monitor): World Monitor is a freemium MCP server for analytics and data.
- [CompanyData](https://ai-powered.com/mcp/companydata): CompanyData is a paid MCP server for analytics and data.
- [NY LLC Publication (FileMyPublication)](https://ai-powered.com/mcp/ny-llc-publication-filemypublication): NY LLC Publication (FileMyPublication) is a free MCP server for legal and government.
- [ChartAnt](https://ai-powered.com/mcp/chartant): ChartAnt is a freemium MCP server for design and media.
- [Quantivex Research](https://ai-powered.com/mcp/quantivex-research): Quantivex Research is a free MCP server for finance and payments.

---
Source: https://ai-powered.com/mcp/aleva-open-data
