io.github.james-webdev/trustrails

编码与调试

by james-webdev

面向英国电子产品的搜索工具,可跨零售商查询商品,实时获取价格、库存与规格信息。

什么是 io.github.james-webdev/trustrails

面向英国电子产品的搜索工具,可跨零售商查询商品,实时获取价格、库存与规格信息。

README

TrustRails MCP Server

Search UK electronics products - compare prices, find deals, and discover products across multiple retailers.

Built for the Model Context Protocol (MCP) - works with Claude Desktop, Claude Code, and other MCP-compatible AI assistants.

npm version License: MIT


Quick Start

No installation needed — just add TrustRails to your Claude config.

Configuration

For Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

json
{
  "mcpServers": {
    "trustrails": {
      "command": "npx",
      "args": ["-y", "@trustrails/mcp-server"],
      "env": {
        "TRUSTRAILS_API_KEY": "mcp-public-2026"
      }
    }
  }
}

For Claude Code (~/.config/claude/config.json):

json
{
  "mcpServers": {
    "trustrails": {
      "command": "npx",
      "args": ["-y", "@trustrails/mcp-server"],
      "env": {
        "TRUSTRAILS_API_KEY": "mcp-public-2026"
      }
    }
  }
}

That's it! Restart Claude and start searching.


What You Can Do

Natural Language Product Search

Just ask Claude naturally — it will decompose your request into the right query and filters:

code
"Find me a gaming laptop under £1000"
"I need Sony noise cancelling headphones"
"What HP laptops are available between £500-£700?"
"Show me Anker chargers"

Claude will search across multiple UK retailers and show you:

  • Real-time prices & availability
  • Direct purchase links
  • Then call get_product for full specs when you need details

Available Tools

search_products

Search 26,000+ UK electronics products. Returns summary data (title, price, availability, category). For full technical specs, use get_product.

Parameters:

  • query (string) - Refinement terms after brand and category are extracted: model lines, series, variants, technology descriptors, or model numbers (e.g., "neo", "ultra", "oled", "WH-1000XM5"). Omit entirely if brand + category alone describe what's needed. Never put brand names, product family names, or prices here — use filters.
  • min_price (number, optional) - Minimum price in GBP
  • max_price (number, optional) - Maximum price in GBP
  • brand (string, optional) - Filter by brand, exact match (e.g., "Sony", "HP", "Apple")
  • category (string, optional) - Filter by category: Laptops, Desktops, Tablets, Phones, TVs, Monitors, Headphones, Speakers, Cameras, Keyboards, Mice, Printers, Networking, Storage, Gaming, Wearables, Drones, Audio, Cables & Chargers.
  • lite (boolean, optional) - Return trimmed product objects (reduces payload by ~80%). Always use for LLM integrations.
  • limit (number, optional) - Maximum products to return (default 50, max 100)
  • sort (string, optional) - Sort order: relevance (default), price_asc (cheapest first), price_desc (most expensive first). Use price_asc when comparing prices.

Returns: Up to 50 products with summary data. With lite: true, returns only essential fields (id, title, brand, price, availability, image_url, purchase_url).

get_product

Get full details for a single product. Returns complete technical specifications including specs.description (full prose spec text with processor, RAM, storage, display, ports, etc.), stock level, delivery time, and all retailer offers with per-retailer pricing. Use after search_products for detailed comparison or recommendations.

Parameters:

  • product_id (string) - The product ID from search results

Returns: Complete product with full specs (including specs.description), pricing across all retailers, and provenance information


Supported Retailers

Search across 26,000+ electronics products from major UK retailers including AO, with new retailers added regularly.


Example Usage

Budget shopping:

code
"Find gaming laptops under £800"
→ category='Laptops', query='gaming', max_price=800, sort='price_asc', lite=true

Brand search:

code
"I need Sony headphones under £200"
→ brand='Sony', category='Headphones', max_price=200, sort='price_asc', lite=true

Category browsing:

code
"Show me cheap monitors"
→ category='Monitors', max_price=200, lite=true

Detailed specs:

code
"Tell me the full specs of this laptop"
→ get_product(product_id) — returns full technical specifications

Price range:

code
"Apple products between £500 and £1000"
→ brand='Apple', min_price=500, max_price=1000, lite=true

Rate Limits

  • 50 requests per hour per IP address
  • Rate limit info included in response headers
  • Limits reset every hour

Environment Variables

  • TRUSTRAILS_API_KEY - API key (use mcp-public-2026 for shared public access)
  • TRUSTRAILS_BASE_URL - API endpoint (optional, defaults to https://trustrails.app)

Why TrustRails?

  • Real-time data - Product feeds updated twice daily
  • Multiple retailers - Compare prices in one search
  • Stock information - See what's actually available to buy
  • Direct purchase links - Click through to buy immediately
  • Zero setup - Works out of the box with shared public key
  • UK-focused - Optimized for UK electronics shopping

Troubleshooting

"Command not found" or server not starting

  • Make sure Node.js is installed and npx is available: npx --version
  • Try running manually: npx -y @trustrails/mcp-server
  • Using nvm? Claude Desktop doesn't inherit your shell PATH. Use the full path to node instead:
    json
    {
      "command": "/Users/YOUR_USERNAME/.nvm/versions/node/vX.X.X/bin/node",
      "args": ["/Users/YOUR_USERNAME/.nvm/versions/node/vX.X.X/lib/node_modules/@trustrails/mcp-server/dist/index.js"]
    }
    
    First run npm install -g @trustrails/mcp-server, then find your node path with which node.

"Rate limit exceeded"

  • Wait an hour for limits to reset
  • Check X-RateLimit-Reset header for exact reset time
  • 50 requests/hour is plenty for normal usage

"No results found"

  • Try broader search terms (e.g., "laptop" instead of specific model)
  • Check spelling of brand names
  • Try searching without filters first

Development

Local Setup

bash
# Clone the repo
git clone https://github.com/james-webdev/trustrails-mcp-server
cd trustrails-mcp-server

# Install dependencies
npm install

# Run locally
npm run dev

Testing

bash
# Run the MCP inspector to test tools
npx @modelcontextprotocol/inspector npm run dev

Support & Links


License

MIT © TrustRails


About MCP

This server implements the Model Context Protocol, a standard for connecting AI assistants to external tools and data sources. Learn more about building MCP servers at modelcontextprotocol.io.

常见问题

io.github.james-webdev/trustrails 是什么?

面向英国电子产品的搜索工具,可跨零售商查询商品,实时获取价格、库存与规格信息。

相关 Skills

前端设计

by anthropics

Universal
热门

面向组件、页面、海报和 Web 应用开发,按鲜明视觉方向生成可直接落地的前端代码与高质感 UI,适合做 landing page、Dashboard 或美化现有界面,避开千篇一律的 AI 审美。

想把页面做得既能上线又有设计感,就用前端设计:组件到整站都能产出,难得的是能避开千篇一律的 AI 味。

编码与调试
未扫描166.1k

网页应用测试

by anthropics

Universal
热门

用 Playwright 为本地 Web 应用编写自动化测试,支持启动开发服务器、校验前端交互、排查 UI 异常、抓取截图与浏览器日志,适合调试动态页面和回归验证。

借助 Playwright 一站式验证本地 Web 应用前端功能,调 UI 时还能同步查看日志和截图,定位问题更快。

编码与调试
未扫描166.1k

网页构建器

by anthropics

Universal
热门

面向复杂 claude.ai HTML artifact 开发,快速初始化 React + Tailwind CSS + shadcn/ui 项目并打包为单文件 HTML,适合需要状态管理、路由或多组件交互的页面。

在 claude.ai 里做复杂网页 Artifact 很省心,多组件、状态和路由都能顺手搭起来,React、Tailwind 与 shadcn/ui 组合效率高、成品也更精致。

编码与调试
未扫描166.1k

相关 MCP Server

GitHub

编辑精选

by GitHub

热门

GitHub 是 MCP 官方参考服务器,让 Claude 直接读写你的代码仓库和 Issues。

这个参考服务器解决了开发者想让 AI 安全访问 GitHub 数据的问题,适合需要自动化代码审查或 Issue 管理的团队。但注意它只是参考实现,生产环境得自己加固安全。

编码与调试
89.2k

by Context7

热门

Context7 是实时拉取最新文档和代码示例的智能助手,让你告别过时资料。

它能解决开发者查找文档时信息滞后的问题,特别适合快速上手新库或跟进更新。不过,依赖外部源可能导致偶尔的数据延迟,建议结合官方文档使用。

编码与调试
60.2k

by tldraw

热门

tldraw 是让 AI 助手直接在无限画布上绘图和协作的 MCP 服务器。

这解决了 AI 只能输出文本、无法视觉化协作的痛点——想象让 Claude 帮你画流程图或白板讨论。最适合需要快速原型设计或头脑风暴的开发者。不过,目前它只是个基础连接器,你得自己搭建画布应用才能发挥全部潜力。

编码与调试
49.6k

评论