GunsNPrices

io.github.gunsnprices由 GitHub 账号 gunsnprices 发布v0.1.1更新于 Oct 24, 2026

Parse gun and ammo titles (model, caliber, cost per round); find GunsNPrices price comparison pages

已验证STDIO仅桌面数据与分析商业与电商

概览

AI 生成的概览

本地 MCP 服务器,可把枪械与弹药商品标题解析为品牌、型号、口径和每发成本,并给出 GunsNPrices 比价页面。

可以做什么
  • 解析商品标题,提取枪械或弹药类型、品牌、型号、口径、弹匣容量、枪管长度、每盒发数与每发成本
  • 根据标题或描述识别枪械型号,可解读 Glock 零件编号,覆盖 50 个品牌
  • 把 9mm Luger、300 BLK、6.5 CM 等口径写法归一为标准名称,并返回对应弹药价格页
  • 根据价格与发数,或直接从标题计算每发成本
  • 按型号、品牌或口径查找 GunsNPrices 比价页面,优先返回最具体的页面
  • 列出支持型号识别的品牌和已知口径
适用场景
适合助手回答枪械与弹药选购问题:解读晦涩的商品标题、比较不同包装规格的每发成本,或把用户引向正确的 GunsNPrices 比价页面。也适合把枪械标题表格整理成结构化字段。
运行要求
以 npm 包 gunsnprices-mcp 通过 npx 在本地运行,需要 Node.js 18 或更高版本;另提供 Docker 镜像和 Claude Desktop 用的 MCP Bundle。无需 API 密钥或环境变量。
安装前请注意
所有工具均为只读且离线运行;服务器不获取实时价格,最低价回答只是指向 GunsNPrices 页面的链接。解析准确率较高但并非完美,依赖提取出的型号与口径前请先核对。

安装

在 SourceWeft 中

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

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

GunsNPrices MCP server

[npm] [Tests] [License] [AllMCPs Verified]

An MCP server that helps AI assistants with gun and ammo shopping questions. It reads firearm and ammunition product titles (brand, model, caliber, magazine capacity, barrel length, rounds per box), computes cost per round, and points to the GunsNPrices pages that compare current prices across 40+ US gun and ammo stores.

It runs locally and needs no API key: everything comes from the open-source gunsnprices parser and a snapshot of GunsNPrices page links. It does not fetch live prices; for "where is it cheapest" questions the assistant gets the GunsNPrices pages to send you to.

Tools

ToolWhat it does
parse_product_titleTitle → firearm or ammo, brand, model, calibers, magazine capacity, barrel length, rounds per box, cost per round, price comparison pages
identify_firearm_modelTitle or description → brand, model family, exact model (50 brands); decodes Glock part numbers
lookup_caliber9mm Luger, 300 BLK, 12ga, 6.5 CM → standard caliber name, type and its ammo price page
cost_per_roundPrice + round count (or a title to read it from) → cost per round
find_price_comparison_pagesModel, brand or caliber → GunsNPrices pages comparing current prices, most specific first
list_supportedThe 50 brands with model recognition, or the 293 known calibers

All tools are read-only and work offline.

Install

The server is the npm package gunsnprices-mcp and runs with Node.js 18 or newer.

Claude Code

bash
claude mcp add gunsnprices -- npx -y gunsnprices-mcp

Claude Desktop: add to claude_desktop_config.json (Settings → Developer → Edit Config):

json
{  "mcpServers": {    "gunsnprices": {      "command": "npx",      "args": ["-y", "gunsnprices-mcp"]    }  }}

Cursor: the same block in ~/.cursor/mcp.json.

VS Code: .vscode/mcp.json:

json
{  "servers": {    "gunsnprices": {      "type": "stdio",      "command": "npx",      "args": ["-y", "gunsnprices-mcp"]    }  }}

Claude Desktop, one click: download gunsnprices-mcp-<version>.mcpb from the latest release and open it (MCP Bundle, Node.js included with Claude Desktop).

Docker:

bash
docker build -t gunsnprices-mcp https://github.com/gunsnprices/gunsnprices-mcp.git
json
{  "mcpServers": {    "gunsnprices": { "command": "docker", "args": ["run", "-i", "--rm", "gunsnprices-mcp"] }  }}

Things to ask

  • "What exactly is a G19 GEN5 9MM 4.02 15RD FS MOS, and where can I compare prices?"
  • "Which of these 9mm listings is cheapest per round: $18.99 for 50, $289 for 1,000, $13.49 for 20?"
  • "Is 300 BLK the same as .300 AAC Blackout? Where do I compare ammo prices for it?"
  • "Clean up this spreadsheet of gun titles into brand, model, caliber and barrel length."

Example result of find_price_comparison_pages for "Glock 19":

json
{  "query": "Glock 19",  "model": { "brand": "Glock", "family": "Glock 19", "model": "Glock 19", "generation": "", "configs": [], "features": [], "source": "title" },  "gunsnprices_pages": [    { "kind": "model", "name": "Glock 19", "url": "https://gunsnprices.com/guns/glock-19" },    { "kind": "brand", "name": "All Glock models", "url": "https://gunsnprices.com/glock-models" },    { "kind": "search", "name": "GunsNPrices search: Glock 19", "url": "https://gunsnprices.com/en-search/?search=Glock%2019" }  ]}

Accuracy

The parsing is the gunsnprices library. On 63,755 listings from 40+ stores it recognizes the same model as gunsnprices.com in 99.97% of cases where the site knows the model, and gets the caliber right in 97.8% of firearm and 94.9% of ammo titles where it finds one. Details are in the library's README.

Related

License

The code is under the MIT License. The page links in src/data/ come from the GunsNPrices firearm-models dataset and are under CC BY 4.0: credit GunsNPrices (gunsnprices.com) with a link.

Questions and corrections: open an issue or write to [email protected].

来源:README.md,提交 9b04413

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

2
  1. v0.1.1最新Oct 13, 2026
  2. v0.1.0Oct 12, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分