SkillAgentSearch skills...

mcp-server

Real-time diamond pricing and market data API. Minimal MCP server for OpenFacet.

Install / Use

claude mcp add openfacet -- npx -y github:openfacet/mcp-server

If the server publishes to npm under a different name, use that package instead — check the repo README.

About this skill
🔌

MCP Server

Model Context Protocol server

Quality Score

75/100

Supported Platforms

Claude Code
Claude Desktop

Tags

Our assessment of mcp-server

mcp-server scores 75/100 on our quality scale, 3729th of 4,654 Development & Engineering skills we index.

Its MCP Server is 5.0 KB long, well organised into 16 sections with 7 code examples: a solid amount of guidance for an agent.

It has 3 GitHub stars, so there is little community track record yet; judge it on its content.

Substance
26/30
Structure
20/20
Description
12/15
Adoption
3/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated 15 days ago, so mcp-server is actively maintained.
  • No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
  • Its trust signals score 75/100, with 3 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

Safety scan

No issues found

Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.

AI review by kimi-k2.7-code on 2026-10-31. Automated pattern scan on 2026-10-31. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.

mcp-server compared with similar skills

All 4 of these similar skills score higher than mcp-server; compare them before choosing.

SkillScoreStarsUpdatedFormat
mcp-server (this skill)by openfacet75315d agoMCP Server
Agent-Reachby Panniantong100107.1k6d agoCLAUDE.md
taste-skillby Leonxlnx100106.6ktodayCLAUDE.md
headroomby headroomlabs-ai10078.4ktodayCLAUDE.md
ai-job-searchby ai-job-search-dev10068.2ktodayCLAUDE.md

Frequently asked questions

How do I install mcp-server?
Run claude mcp add openfacet -- npx -y github:openfacet/mcp-server. The install tabs above show the steps for each supported agent.
Which AI agents does mcp-server work with?
It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
Is mcp-server safe to use?
Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It declares no license and scores 75/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is mcp-server still maintained?
The repository was last updated 15 days ago, so mcp-server is actively maintained.

OpenFacet MCP Server

MCP Protocol License: MIT Node.js Version

A Model Context Protocol (MCP) implementation for the OpenFacet Diamond Pricing API. Provides transparent, real-time diamond pricing data with interpolation algorithms and market depth analytics.

Built with vanilla JavaScript and core modules only - zero external dependencies.

Features

  • Implements MCP 2026-07-28 (stateless per-request metadata, structured content, and HTTP metadata validation)
  • Tools: get_diamond_price, get_dcx_index, get_market_depth
  • Real-time interpolation over carat/color/clarity
  • DCX Index and inventory snapshot with daily refresh
  • Single-file deployable; no dependencies
  • Runtime adapters:
    • Node.js: HTTP server, CORS, configurable port
    • Cloudflare Worker: single fetch entrypoint

Project Structure

mcp-server/
├── core.js         # Shared logic, tool handlers, interpolation
├── stdio.js        # Local stdio transport
├── node.js         # Node.js HTTP server (PORT via CLI or env)
├── worker.js       # Remote Cloudflare Worker
├── test-core.js    # Vanilla JS test runner
├── mcp-version.js  # Protocol version constant
└── README.md

Usage

Requires Node.js ≥18, clone the repository:

git clone https://github.com/openfacet/mcp-server.git
cd mcp-server

Local stdio Transport

The stdio transport is the default for most MCP clients.

# Start the server
node stdio.js

Send a message (paste this JSON and press Enter):

{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_diamond_price","arguments":{"carat":1.23,"color":"G","clarity":"VS2","shape":"emerald","shape_ratio":1.58},"_meta":{"io.modelcontextprotocol/protocolVersion":"2026-07-28","io.modelcontextprotocol/clientCapabilities":{}}}}

You'll get a response like:

{"jsonrpc":"2.0","id":1,"result":{"resultType":"complete","content":[{"type":"text","text":"OpenFacet diamond price quote..."}],"structuredContent":{"shape":"emerald","per_carat_usd":4487,"total_usd":5519,"tracking_url":"https://openfacet.net/en/my-diamond/?..."}}}

Local Node.js HTTP server

Default binds to localhost:3000/. Available endpoints:

  • POST /: JSON-RPC entrypoint
  • GET /health: Server status
  • GET /.well-known/mcp.json: Discovery metadata

Remote MCP Server

Remote server for testing https://mcp.openfacet.net. Example price query:

curl -X POST https://mcp.openfacet.net/ \
  -H "Content-Type: application/json" \
  -H "MCP-Protocol-Version: 2026-07-28" \
  -H "Mcp-Method: tools/call" \
  -H "Mcp-Name: get_diamond_price" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "get_diamond_price",
      "arguments": {
        "carat": 1.23,
        "color": "G",
        "clarity": "VS2",
        "shape": "emerald",
        "shape_ratio": 1.58
      },
      "_meta": {
        "io.modelcontextprotocol/protocolVersion": "2026-07-28",
        "io.modelcontextprotocol/clientCapabilities": {}
      }
    }
  }'

Tool Summary

get_diamond_price

Returns an OpenFacet price quote using website interpolation, special-size discounts, and shape-ratio models.

Parameters:

  • carat: number (0.3–6.0)
  • color: string (D–M)
  • clarity: string (FL–I3)
  • shape: string (optional, default: "round"): round, cushion, radiant, emerald, oval, pear, marquise, or heart
  • shape_ratio: number (optional). Uses the shape model's center ratio when omitted.

Results include a shareable OpenFacet tracking URL. Ratios outside the observed model range are identified as preference-driven.

get_dcx_index

Returns composite index of diamond price trends, comparing 24-hour, 7-day, and 30-day changes. No parameters.

get_market_depth

Returns observed-offer inventory data. Optional parameter:

  • carat: number

Testing

node core-test.js
bash bundle.sh

Covers:

  • Per-request MCP metadata and structured tool results
  • Website special-size interpolation and fancy-shape ratio adjustments
  • DCX trend and market-depth parsing
  • Cloudflare Worker bundle syntax

Technical Notes

Interpolation

  • Log-space interpolation across fixed breakpoints
  • Log-space interpolation with website anchor smoothing
  • Website special-size discounts below 0.5, 0.7, 1.0, 1.5, 2.0, 3.0, and 5.0ct anchors
  • Ratio-band multipliers for supported fancy shapes

Specifications

Related Skills

View on GitHub
GitHub Stars3
CategoryDevelopment
Updated15d ago
Forks1

Languages

JavaScript

Trust signals

75/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

1 medium2 low