<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: SommelierX</title>
    <description>The latest articles on DEV Community by SommelierX (@roger_theunissen_bfe35a55).</description>
    <link>https://dev.to/roger_theunissen_bfe35a55</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3882588%2Fdd171d7a-a17b-4ab6-a3b0-8aa70a6caafb.png</url>
      <title>DEV Community: SommelierX</title>
      <link>https://dev.to/roger_theunissen_bfe35a55</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/roger_theunissen_bfe35a55"/>
    <language>en</language>
    <item>
      <title>Building a wine pairing MCP server with deterministic scoring and x402 payments</title>
      <dc:creator>SommelierX</dc:creator>
      <pubDate>Thu, 16 Apr 2026 13:50:13 +0000</pubDate>
      <link>https://dev.to/roger_theunissen_bfe35a55/building-a-wine-pairing-mcp-server-with-deterministic-scoring-and-x402-payments-l30</link>
      <guid>https://dev.to/roger_theunissen_bfe35a55/building-a-wine-pairing-mcp-server-with-deterministic-scoring-and-x402-payments-l30</guid>
      <description>&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;p&gt;I published an MCP server that gives AI assistants (Claude, Cursor, Windsurf) access to a sommelier-grade wine pairing algorithm. It supports both API key auth and x402 USDC payments for autonomous agents.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx @sommelierx/mcp-server
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Free tier: 50 calls/day, no signup. Live on npm, Glama, and the Official MCP Registry.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this exists
&lt;/h2&gt;

&lt;p&gt;Ask Claude "what wine goes with grilled salmon?" and you get a reasonable paragraph. Ask again tomorrow and the answer changes. No score, no explanation, no consistency.&lt;/p&gt;

&lt;p&gt;That is because language models generate text. They do not calculate pairings.&lt;/p&gt;

&lt;p&gt;We built the calculation.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;p&gt;The SommelierX pairing algorithm scores 609 wine styles across 17 flavour dimensions (body, acidity, tannin, sweetness, minerality, and more). The same scoring applies to 3,000+ dishes. A matching function returns a compatibility score between 0 and 100.&lt;/p&gt;

&lt;p&gt;The server exposes 7 tools:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Input&lt;/th&gt;
&lt;th&gt;Tier&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;pair_wine_with_meal&lt;/td&gt;
&lt;td&gt;Meal name&lt;/td&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;pair_wine_with_ingredients&lt;/td&gt;
&lt;td&gt;Ingredient list&lt;/td&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;find_meals_for_wine&lt;/td&gt;
&lt;td&gt;Wine style&lt;/td&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;pair_wine_with_recipe_url&lt;/td&gt;
&lt;td&gt;Recipe URL&lt;/td&gt;
&lt;td&gt;Pro&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;group_pairing&lt;/td&gt;
&lt;td&gt;Multiple meals&lt;/td&gt;
&lt;td&gt;Pro&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;search_ingredients&lt;/td&gt;
&lt;td&gt;Query&lt;/td&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;search_meals&lt;/td&gt;
&lt;td&gt;Query&lt;/td&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  x402 payments
&lt;/h2&gt;

&lt;p&gt;The interesting part for the agent economy: the server accepts x402 payments.&lt;/p&gt;

&lt;p&gt;x402 is an HTTP protocol where the client pays per call in USDC on a blockchain (we use Base for low fees). Flow:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Agent calls the endpoint without credentials&lt;/li&gt;
&lt;li&gt;API responds 402 Payment Required with the price ($0.005 - $0.03)&lt;/li&gt;
&lt;li&gt;Agent attaches a signed USDC payment header&lt;/li&gt;
&lt;li&gt;API validates on-chain and returns the data&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;No account. No API key. No human approval. Fully autonomous.&lt;/p&gt;

&lt;h2&gt;
  
  
  Install in Claude Desktop
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"sommelierx"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"npx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"@sommelierx/mcp-server"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Restart Claude Desktop. Then ask: "What wine goes with tonight's dinner?"&lt;/p&gt;

&lt;p&gt;Same config works for Cursor, Windsurf, and any MCP-compatible client.&lt;/p&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;npm: &lt;a href="https://www.npmjs.com/package/@sommelierx/mcp-server" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/@sommelierx/mcp-server&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;5-min quickstart: &lt;a href="https://sommelierx.com/docs/quickstart" rel="noopener noreferrer"&gt;https://sommelierx.com/docs/quickstart&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Glama: &lt;a href="https://glama.ai/mcp/servers/rogertheunissenmerge-oss/mcp-server" rel="noopener noreferrer"&gt;https://glama.ai/mcp/servers/rogertheunissenmerge-oss/mcp-server&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;GitHub: &lt;a href="https://github.com/rogertheunissenmerge-oss/mcp-server" rel="noopener noreferrer"&gt;https://github.com/rogertheunissenmerge-oss/mcp-server&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Happy to answer questions about the algorithm, the x402 integration, or the MCP setup.&lt;/p&gt;

</description>
      <category>mcp</category>
    </item>
  </channel>
</rss>
