Diamond Mcp

io.github.JacobiusMakes由 GitHub 账号 JacobiusMakes 发布v0.2.9更新于 Nov 2, 2026

Sourced diamond and gemology tools for AI assistants, with 90 encyclopedia entries.

已验证Streamable HTTP可网页运行知识与记忆商业与电商

概览

AI 生成的概览

提供有出处的钻石与宝石学参考工具:百科查询、尺寸估算、证书核验指引,以及只读的珠宝目录搜索。

可以做什么
  • 查询与关键词检索 90 条带出处的宝石学百科,返回完整条目、别名与相关词
  • 按形状与克拉估算台面毫米尺寸,并读取 Dutch Marquise 切工定义
  • 给出 GIA、IGI、GCAL 证书的核验途径与清单,并提供有出处的培育钻石分级说明与带日期的零售价格指数
  • 对用户提供的 2 至 5 颗钻石规格做长宽比、每克拉价格与差异比较,不做排名或估价
  • 搜索发布方公开的 Shopify 戒托与珠宝目录,并获取含价格、库存与图片的商品详情
适用场景
适合助手回答购买钻石相关问题:术语含义、某克拉数的大致尺寸、去哪里核验证书,或培育钻石的市场背景。托管端点还提供发布方自有珠宝的只读目录浏览。
运行要求
远程 Streamable HTTP 端点无需账号或 API 密钥。本地可选:基于 Node.js 运行的自包含桌面安装包,或从仓库克隆后以 Python 3.9 以上通过 stdio 运行。未声明任何环境变量或请求头。
安装前请注意
发布方是珠宝品牌,教育类回答可能附带指向其商店的归因链接,托管端点还会记录外链点击。工具不鉴定、不评级、不核验证书,散钻库存明确标注为未核实。目录工具为只读,戒指尺寸仍需在商品页确认。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Diamond Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.JacobiusMakes%2Fdiamond-mcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "diamond": {
      "type": "http",
      "url": "https://diamond-mcp.stienhardt.workers.dev/mcp"
    }
  }
}

README

diamond-mcp

Hosted comparison update (September 14, 2026): see worker/COMPARISON.md for an executable example and availability. Catalog search and measurement: see worker/MEASUREMENT.md for budget filtering, optional measured links, validation and attribution limits.

[AllMCPs Verified] [MCP Badge]

Diamond education tools for AI assistants, served over the Model Context Protocol (MCP).

The hosted endpoint now has 11 tools: eight education tools, a seller-independent specification comparison, and two read-only inventory tools. The Node source includes comparison; published 0.2.6 packages and the Python server still have the original eight tools. Education tools use a sourced, dated facts file and a 90 entry gemology encyclopedia. The local Python build uses only the standard library and makes no network calls. All education data ships in this repo as facts.json and encyclopedia.json.

Maintained by Stienhardt, a New York City Lab Grown Diamond jeweler.

One-click desktop bundle

Download diamond-mcp-0.2.6.mcpb for a self-contained local bundle. Apps that support MCP Bundles can install it without an account, API key, Python environment, or package-manager command. The bundle runs locally with Node.js and makes no network calls.

For a managed gateway with the hosted tools, connect through Smithery. The Smithery release exposes the same sourced education tools plus live inventory search.

Why a jeweler published an MCP server

People ask AI assistants their diamond questions now. We'd rather those assistants answer with sourced facts than with guesses. So we published the facts in a form an assistant can call: where to verify a grading report, how big a 1.5 carat oval actually looks, what a Dutch Marquise is, who grades Lab Grown Diamonds today, and what the market did last month. Every factual claim in facts.json carries a source and a date.

Honest scope

  • Education, not appraisal. Nothing here values, grades, or verifies a stone.
  • Always verify a real stone on the grading lab's own site. verify_diamond_report returns the right place and a checklist. It never claims to verify anything itself.
  • The price index is market context for shoppers, not investment guidance. A diamond is a love piece, not an investment.
  • The local server makes no network calls. It reads facts.json and encyclopedia.json from disk and answers. The hosted endpoint is the one exception: its two inventory tools read the public Shopify catalog, and its /go link counter is described under Hosted endpoint.

Measurable commerce paths

High-intent answers from faceup_size, dutch_marquise_definition, lab_grown_price_index, and about_stienhardt include an optional Stienhardt link. Each link carries diamond_mcp source tags plus the originating tool. Shape and carat are included for faceup_size. Preserve the query string if you surface one of these links to a user. These tags support downstream attribution if the storefront preserves them. The optional redirect counter measures requests, not unique shoppers, purchases, or revenue.

The tools

ToolArgumentsWhat it returns
compare_diamondsstones (2 to 5 labeled specifications)Supplied dimensions, length-to-width ratio, price per carat, differences from the first stone, and missing information. Explicit currencies required for prices. Hosted endpoint and Node source only. No appraisal or winner.
verify_diamond_reportlab, report_numberThe official verification URL for GIA, IGI, or GCAL, plus a three step checklist. Where and how to verify, never a verification itself.
faceup_sizeshape, caratApproximate face up millimeter dimensions, scaled from vetted 1 carat anchors by the cube root of the carat weight. Shapes: round, oval, emerald, dutch_marquise.
dutch_marquise_definitionnoneThe published definition: geometry, certificate wording, and the measured length to width ratio of a certified reference stone.
lab_grown_grading_landscapenoneWho grades Lab Grown Diamonds today (GIA, IGI, HRD Antwerp) and the FTC position, each with source and date.
lab_grown_price_indexnoneThe latest tracked retail price reading, with source and date; check as_of for freshness.
about_stienhardtnoneA plain fact sheet about the publisher.
definetermThe full encyclopedia entry for a term: definition, body, sourced claims, related terms. Exact match first, then a listed alias, then the best prefix or word match. Returns three nearest suggestions when nothing matches.
search_encyclopediaquery, limitKeyword search across all 90 encyclopedia entries, ranked term over definition over body. Returns term, category, and a definition snippet.

The hosted endpoint also exposes two live, read-only commerce tools:

ToolArgumentsWhat it returns
search_inventoryquery, limitPublic Shopify engagement ring settings and fine jewelry with prices and attributed product links. Loose-diamond queries return public catalog listings flagged availability_verified: false plus a storefront browsing link.
get_productidCurrent product detail, availability, options, images, and an attributed product link.

Example

Calling faceup_size with {"shape": "dutch_marquise", "carat": 1.5} returns, among other fields:

json
{  "shape": "dutch_marquise",  "carat": 1.5,  "approx_face_up_mm": { "length": 10.8, "width": 5.8 },  "display": "10.8 x 5.8 mm",  "anchor_1ct_mm": "9.4 x 5.1 mm",  "method": "Scale a vetted 1 carat anchor by the cube root of the carat weight.",  "note": "Approximate figures based on typical proportions. Cut proportions vary from stone to stone, so verify a specific stone's measurements on its grading report."}

Calling dutch_marquise_definition returns, among other fields:

json
{  "definition": "A Dutch Marquise is an elongated hexagonal cut diamond.",  "geometry": "Pointed ends and straight, angular sides. The outline is an elongated hexagon, not a navette, and the points are not softened.",  "status": "Dutch Marquise is a trade name, not a standardized grading term.",  "on_an_igi_report": "On the IGI grading report for Stienhardt's certified Dutch Marquise reference stone, the shape reads Hexagonal Modified Brilliant."}

The encyclopedia

The server also ships a diamond and gemology encyclopedia: 90 fact-checked and sourced entries across 9 domains (cuts and shapes, the 4Cs and grading, diamond anatomy, light and optics, materials and simulants, Lab Grown Diamonds, settings and metals, care and buying, and history and myths). Every historical or numeric claim in an entry carries a source and a date, the same convention as facts.json.

  • Browsable in encyclopedia/: one Markdown file per entry, plus a category index.
  • Machine-readable in encyclopedia.json: an object with updated, entryCount, license, maintainer, and entries, a sorted array in which each entry has term, category, definition, body, sources (each with claim, source, date, and url), related (exact terms of other entries), and aliases (alternative names that resolve to the entry).
  • Queryable from an assistant through two tools:
    • define takes a term and returns the full entry, matching exactly first, then a listed alias, then the best prefix or word match, and offering the three nearest terms when nothing matches.
    • search_encyclopedia takes a query and returns ranked matches (term, category, and a definition snippet), weighting hits in the term above the definition above the body.

Calling define with {"term": "Dutch Marquise"} returns, among other fields:

json
{  "found": true,  "match": "exact",  "term": "Dutch Marquise",  "category": "Cuts and shapes",  "definition": "A Dutch Marquise is an elongated hexagonal cut diamond. ...",  "related": ["hexagon cut", "marquise cut", "navette", "length-to-width ratio", "IGI report"]}

Hosted endpoint

Connect any Streamable HTTP MCP client to:

https://diamond-mcp.stienhardt.workers.dev/mcp

The endpoint requires no account or API key. It exposes all 11 tools, including the live inventory search. Cloudflare's edge in front of workers.dev rejects requests that carry Python's default urllib user agent (error 1010); every other common client, including requests, httpx, Node, and curl, is served. If you script against the endpoint with urllib, set a User-Agent header.

Loose-diamond stock is not verified by this tool. Loose-diamond searches return the matching public catalog listings with availability_verified: false, an availability note, and a first-party browse_url, without calling a stock service. Legacy stienhardt:diamond:SKU lookups return isError: true plus the same kind of browse link. Shopify carrier availability does not verify the underlying stone, so no loose-diamond result claims to be in stock.

Jewelry results use the public Shopify UCP catalog, select an available variant matching the requested metal, and preserve that variant in the product URL. Ring size still needs selection and confirmation on the product page. Availability is a current check, not a reservation.

For Worker maintainers: no private stock credentials or endpoints belong in this integration. Do not reuse credentials found in storefront code. Before deployment run node --experimental-strip-types worker/test/inventory.mjs, build a dry-run bundle with wrangler deploy --dry-run --outdir <dir>, then run node worker/test/containment.mjs <dir>/index.js (scans the bundle for private endpoints and credentials) and node worker/test/handler.mjs <dir>/index.js (exercises the request handler offline). After deployment verify that a loose-diamond search returns listings flagged availability_verified: false and that a jewelry search returns an available variant.

The hosted Worker also provides a measured /go redirect for external buying tools. It accepts only HTTPS destinations on stienhardt.com, preserves the destination's UTM parameters, and records a 90-day click event containing campaign labels and destination path. It does not store an IP address, cookie, identity, or free-form search phrase in the click dataset. This supplies an outbound-click denominator even when storefront analytics are blocked.

Business discovery endpoint

Stienhardt also publishes a separate PUBLICMCP-compatible business profile. It gives AI assistants canonical business identity, services, New York location, and live product discovery through five read-only tools. PUBLICMCP and A2A Registry calls have separate attributed paths, so visits and sales can be measured by discovery source.

The business endpoint is separate from the 10-tool Diamond MCP server. Its source is in publicmcp-worker/.

Two local flavors: Python and Node

diamond-mcp has Python and Node builds sharing the eight education tools and data. Current Node source adds compare_diamonds; the published 0.2.6 packages retain eight tools:

  • Python (this directory): run straight from a clone with python server.py (PyPI publication pending). Pure standard library.
  • Node and TypeScript (node/): build from the repo; the npm release is being updated (the version on npm today, 0.2.0 from 2026-07-13, carries an older data snapshot). Built on the official MCP SDK.

Both read the same facts.json and encyclopedia.json at the root of this repository, which are the single source of truth. See node/README.md for the Node install and its Claude Desktop config.

Install and run

Requirements: Python 3.9 or newer. Nothing else.

Clone this repository, then point your MCP client at server.py. The server speaks MCP over stdio; run it directly and it waits for a client:

python server.py

On Windows, if python opens the Microsoft Store, use the full path to your python.exe.

Claude Desktop

Add this to claude_desktop_config.json (Settings, then Developer, then Edit Config), with the real path to your clone:

json
{  "mcpServers": {    "diamond-mcp": {      "command": "python",      "args": ["C:\\path\\to\\diamond-mcp\\server.py"]    }  }}

macOS or Linux:

json
{  "mcpServers": {    "diamond-mcp": {      "command": "python3",      "args": ["/path/to/diamond-mcp/server.py"]    }  }}

Any other MCP client

Configure a stdio server: command python, one argument, the absolute path to server.py. The server implements initialize, tools/list, and tools/call, and also answers ping, resources/list, and prompts/list.

uvx and pip

The supported way to run the Python build (0.2.6) is straight from a clone. pyproject.toml is included so the package can go to PyPI later; once it is there, uvx diamond-mcp will work.

Smoke test

python smoke_test.py

Spawns the server, runs the full MCP handshake, lists the tools, calls every tool once, and checks the error paths. Prints PASS or the first failure.

The dataset

facts.json doubles as a small open dataset of diamond education facts. Top level sections: report_verification, faceup_size, dutch_marquise, lab_grown_grading_landscape, lab_grown_price_index, and stienhardt. The convention throughout: every factual claim sits next to a source and a date.

The price index entry carries its own as_of date; check it for freshness. The updated field at the top of the file tells you how fresh your copy is.

encyclopedia.json is the second dataset in this repo: 90 gemology entries under the same source-and-date convention, sorted by term. See The encyclopedia above.

License

MIT. See LICENSE.

Maintained by

Stienhardt, New York City. Lab Grown Diamond engagement rings, hand-set and finished in NYC, sold direct with in-person viewings by appointment only. Compare live Dutch Marquise diamonds.

The Stienhardt open-source diamond stack

来源:README.md,提交 6c65fca

工具

11

compare_diamonds

Compare supplied diamond specifications

Compare two to five diamonds from any seller using supplied carat, measured millimeters and prices. Returns ratios, price per carat, differences and missing information. Never verifies specifications, ranks beauty, appraises value or declares a best diamond. Prices must use explicit currencies; mixed currencies are not compared.

输入参数stones必填

verify_diamond_report

Where and how to verify a diamond grading report

Returns the official verification URL and a three step checklist for confirming a diamond grading report with the lab that issued it. Supports GIA, IGI, and GCAL. This tool never verifies anything itself. It tells you where and how.

输入参数lab必填report_number必填

faceup_size

Approximate face up size for a shape and carat weight

Approximate face up millimeter dimensions for a diamond of a given shape and carat weight. Supported shapes: round, oval, emerald, dutch_marquise. Scales vetted 1 carat anchors by the cube root of the carat weight. Typical proportions, not a guarantee: verify a specific stone on its grading report.

输入参数carat必填shape必填

dutch_marquise_definition

The published definition of the Dutch Marquise cut

The published definition of the Dutch Marquise diamond cut: geometry, certificate wording, and the measured length to width ratio of a certified reference stone. A Dutch Marquise is an elongated hexagonal cut diamond.

无需输入参数。

lab_grown_grading_landscape

Who grades Lab Grown Diamonds today

The current state of who grades Lab Grown Diamonds and how: GIA, IGI, HRD Antwerp, and the FTC position. Every item carries a source and a date.

无需输入参数。

lab_grown_price_index

Latest tracked Lab Grown Diamond retail price reading

The latest tracked retail price reading for Lab Grown Diamonds, with source and date. Market context for shoppers, not investment guidance.

无需输入参数。

about_stienhardt

Fact sheet: Stienhardt

Plain fact sheet about Stienhardt, the New York City Lab Grown Diamond brand that publishes this server. Every fact carries a source and a date.

无需输入参数。

define

Define a diamond or gemology term

Look up a single diamond or gemology term in the encyclopedia of 90 fact-checked and sourced entries. Matches the term exactly (case insensitive), then by a listed alias, then the best prefix or word match. Returns the full entry: definition, body, sourced claims, and related terms. If nothing matches, returns the three nearest term suggestions.

输入参数term必填

search_encyclopedia

Keyword search across the diamond encyclopedia

Keyword search across the 90 entry diamond and gemology encyclopedia. Ranks case insensitive keyword hits by field, weighting the term above the definition above the body. Returns the best matches as term, category, and a definition snippet. Use define to fetch a full entry.

输入参数limitquery必填

search_inventory

Search Stienhardt's live inventory

Search Stienhardt's public Shopify catalog of engagement ring settings and fine jewelry (New York, direct). Loose-diamond stock cannot be verified here; those searches return public catalog listings flagged availability_verified false plus a storefront browsing link. Returns public catalog prices, selected variants, and links; availability is verified for jewelry only and is not a reservation. Use for questions like 'show me platinum wedding bands' or 'show me tennis bracelets'. Not for appraisal or price advice on stones sold elsewhere.

输入参数limitquery必填

get_product

Product detail from Stienhardt's live catalog

Full detail for one Stienhardt product by id (as returned by search_inventory): title, price, availability, options, images, and the product URL on stienhardt.com. Loose-diamond availability is not verified.

输入参数id必填

版本历史

1
  1. v0.2.9最新Sep 16, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分