Polvenn MCP Server

Polvenn MCP Server

A local-first MCP server for tracking beer releases on Vinmonopolet, enabling users to search new and upcoming beers, check store stock, find nearby stores, and manage watchlists.

Category
访问服务器

README

Polvenn MCP Server

A local-first MCP server for tracking beer releases on Vinmonopolet and an external release-feed API backed by your own collector/database.

npm package: @henrikogard/polvenn-mcp-server CLI command: polvenn-mcp-server

It is designed to run as a local stdio MCP server:

  • no web app
  • no telemetry
  • no cloud sync
  • data stays on your machine in SQLite

What It Does

Polvenn exposes 8 MCP tools:

Tool Description Writes data?
polvenn_search_new_beers Search Vinmonopolet's current Nyheter listing and/or your external release feed, with optional Kommende nyheter, releaseDate, and storeId filters No
polvenn_search_upcoming_beers Search Vinmonopolet's "Kommende nyheter" listing for upcoming beer releases No
polvenn_search_new_beers_near_store Search current Nyheter available in one store, using your configured home store or nearest configured location by default No
polvenn_check_store_stock Check stock for a beer at a Vinmonopolet store, using the official API when possible and Vinmonopolet's web stock locator as fallback No
polvenn_find_nearby_stores Find the closest Vinmonopolet stores to a coordinate No
polvenn_watchlist Add, remove, list, and check watch rules Yes
polvenn_configure Store API keys, home store, and home coordinates locally Yes
polvenn_validate_config Validate current config and probe upstream capabilities No

Typical use cases:

  • “Show me new imperial stouts from the last 30 days”
  • “Is article 20162402 in stock near Stavanger?”
  • “Find the nearest Vinmonopolet stores to my home”
  • “Alert me when Amundsen, Lervig, or pastry stouts show up”

If the official Vinmonopolet stock endpoint is not available, Polvenn falls back to Vinmonopolet's own web stock locator for store-level counts when possible. If neither source can verify the store, Polvenn reports store-level stock as unknown instead of incorrectly reporting zero stock or inferring "bestillingsutvalget" as a store-stock answer.

For polvenn_search_new_beers, the since filter is best-effort: Polvenn prefers external release dates when available, and otherwise falls back to Vinmonopolet's lastChanged timestamp. If you pass storeId, only Vinmonopolet-backed results that are available in that store are included.

Architecture

Any MCP client
(Codex, Claude Desktop, Inspector, others)
        │
        │ stdio
        ▼
polvenn-mcp-server
├── tools
├── zod schemas
├── Vinmonopolet service
├── External release feed client
└── SQLite storage via sql.js
        │
        ▼
~/.polvenn/polvenn.db

Project structure:

src/
├── index.ts              # MCP server entry point
├── constants.ts          # URLs, defaults, retry settings
├── types.ts              # Domain types
├── sql.js.d.ts           # Local sql.js typings
├── tools/
│   └── index.ts          # MCP tool registration and handlers
├── schemas/
│   └── tools.ts          # Zod input schemas
├── services/
│   ├── release-feed.ts   # External release feed client
│   ├── vinmonopolet.ts   # Vinmonopolet API client
│   └── watchlist.ts      # Watchlist matching logic
├── utils/
│   ├── geo.ts
│   ├── geo.test.ts
│   └── http.ts
└── db/
    └── database.ts       # SQLite persistence and config

Setup

Prerequisites

Install

npm install
npx tsc --noEmit
npm run build

Published npm package:

npm install -g @henrikogard/polvenn-mcp-server

Run

npm start

This starts the MCP server on stdio, which is what local desktop/CLI MCP clients expect.

Using It From MCP Clients

Generic stdio client setup

If your MCP client supports local stdio servers, point it at:

command: node
args: ["/absolute/path/to/polvenn-mcp-server/dist/index.js"]

If you installed the package globally from npm, you can also point the client directly at the CLI:

command: polvenn-mcp-server
args: []

Claude Desktop

Add this to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "polvenn": {
      "command": "node",
      "args": ["/absolute/path/to/polvenn-mcp-server/dist/index.js"]
    }
  }
}

After restarting Claude Desktop, configure your own collector from chat:

Configure polvenn with release feed URL https://releases.example.com.

Codex

Codex supports MCP server definitions in ~/.codex/config.toml. Add:

[mcp_servers.polvenn]
command = "node"
args = ["/absolute/path/to/polvenn-mcp-server/dist/index.js"]

Restart Codex after saving the config.

Then configure your own collector from a Codex chat:

Configure polvenn with release feed URL https://releases.example.com.

ChatGPT

As of April 7, 2026, ChatGPT apps/custom MCP integrations use remote MCP servers over SSE or streaming HTTP, not local stdio servers.

That means this repo does not plug directly into ChatGPT in its current form.

To use Polvenn with ChatGPT, you would need to:

  1. Wrap or rebuild it as a remote MCP server.
  2. Expose it over HTTPS using SSE or streaming HTTP.
  3. Add it in ChatGPT developer mode as an app/custom MCP integration.

In other words:

  • Codex and Claude Desktop can use this project directly as-is.
  • ChatGPT needs a remote deployment, not this local stdio process.

First-Time Configuration

Once connected from an MCP client, configure the local server with your keys and defaults.

External collector setup

Polvenn expects an external release collector that exposes:

GET /releases/latest

You can run your own collector from GitHub here:

Quick setup:

  1. Clone the collector repo.
  2. Run npm install.
  3. Run npm run build.
  4. Copy polvenn-release-collector.config.example.json to polvenn-release-collector.config.json.
  5. Start it with npm start.
  6. Verify http://127.0.0.1:4100/health.
  7. Verify http://127.0.0.1:4100/releases/latest?limit=3.

If you want to expose it publicly on a VPS, follow the deployment guide in the collector repo:

Once your collector is running, choose your own feed URL, for example:

releaseFeedUrl = http://127.0.0.1:4100

or:

releaseFeedUrl = https://releases.example.com

That means the local MCP server will read from:

https://releases.example.com/releases/latest?limit=...

Recommended order:

  1. Set up your own polvenn-release-collector.
  2. Verify its /health endpoint.
  3. Verify its /releases/latest?limit=3 endpoint.
  4. Start polvenn-mcp-server locally in Codex or Claude Desktop.
  5. Configure Polvenn with the hosted releaseFeedUrl.
  6. Validate the configuration from the MCP client.

Example prompts:

Configure polvenn with release feed URL https://releases.example.com.
Configure polvenn with Vinmonopolet API key <key>.
Set home location to Stavanger (58.97, 5.73).
Set home store to 170.
Validate my Polvenn configuration and tell me which integrations are working.

Example Prompts

These work well in Codex, Claude Desktop, or another MCP client:

Search for new stouts from the last 30 days.
Search for new beers available in store 116.
Search for new beers from the 1. april 2026 release.
Search for new beers and include upcoming Vinmonopolet web releases.
Show upcoming beers from Vinmonopolet.
Show upcoming sour beers from Vinmonopolet.
Show new sour beers near my store.
Check whether article 20162402 is in stock at store 170.
Find the 5 closest Vinmonopolet stores to 58.97, 5.73.
Add a watchlist rule for brewery Lervig.
Check my watchlist against the latest release in my external feed.

Watchlist Rules

The watchlist supports four rule types:

Type Matches against Example
brewery Producer name Lervig
style Beer style Imperial Stout
series Beer name Racketeers
keyword Beer name and producer barrel aged

Storage

All local state lives in:

~/.polvenn/polvenn.db

Override the data directory with:

POLVENN_DATA_DIR=/some/path

Stored data includes:

  • config values
  • watchlist rules
  • cached Vinmonopolet product lookups

API keys are stored locally and only sent to their respective upstream APIs.

Packaging

The package metadata is set up for npm publishing:

  • npm package name: @henrikogard/polvenn-mcp-server
  • installable CLI entry: polvenn-mcp-server
  • packaged files limited to dist/, README.md, and LICENSE
  • prepack builds the TypeScript output before publishing

Data Sources

Vinmonopolet API

  • Base: https://apis.vinmonopolet.no
  • Auth: Ocp-Apim-Subscription-Key
  • Used for: products, stores, stock
  • Product lookups fall back to the public product page on vinmonopolet.no when the API returns sparse article data
  • Docs: api.vinmonopolet.no

External Release Feed

  • Base: your configured releaseFeedUrl
  • Endpoint used by MCP: GET /releases/latest?limit=N
  • Expected response shape:
{
  "releases": [
    {
      "id": "2026-04-01-main",
      "title": "April 2026 main release",
      "source": "vinmonopolet-monthly",
      "publishedAt": "2026-04-01T08:00:00Z",
      "url": "https://example.com/release/2026-04-01-main",
      "items": [
        {
          "country": "Norge",
          "articleNumber": "20162402",
          "producer": "Amundsen Bryggeri",
          "name": "Example Beer",
          "style": "Imperial Stout",
          "abv": 12,
          "releaseDate": "1. april 2026"
        }
      ]
    }
  ]
}

Development

npm run dev
npx tsc --noEmit
npm run build
npm test

Test With MCP Inspector

npx @modelcontextprotocol/inspector node dist/index.js

Dependencies

Package Purpose
@modelcontextprotocol/sdk MCP server framework
sql.js SQLite in pure JavaScript
cheerio HTML parsing
zod Input validation
typescript Build tooling

Notes

  • The server is intentionally local-first and stdio-first.
  • Stock access may depend on the Vinmonopolet subscription tier you have.
  • ChatGPT support requires a remote MCP variant of this server.

License

MIT

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选