@trustrails/mcp-server 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 TrustRails
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,176 @@
1
+ # TrustRails MCP Server
2
+
3
+ **Search UK electronics products** - compare prices, find deals, and discover products across multiple retailers.
4
+
5
+ Built for the [Model Context Protocol (MCP)](https://modelcontextprotocol.io)
6
+
7
+ ---
8
+
9
+ ## Quick Start
10
+
11
+ ### Installation
12
+
13
+ ```bash
14
+ npm install -g @trustrails/mcp-server
15
+ ```
16
+
17
+ ### Configuration
18
+
19
+ Add to your Claude Code config (`~/.config/claude/config.json`):
20
+
21
+ ```json
22
+ {
23
+ "mcpServers": {
24
+ "trustrails": {
25
+ "command": "trustrails-mcp",
26
+ "env": {
27
+ "TRUSTRAILS_API_KEY": "mcp-public-2026",
28
+ "TRUSTRAILS_BASE_URL": "https://www.trustrails.app"
29
+ }
30
+ }
31
+ }
32
+ }
33
+ ```
34
+
35
+ **Or** for Claude Desktop (`~/Library/Application Support/Claude/claude_desktop_config.json`):
36
+
37
+ ```json
38
+ {
39
+ "mcpServers": {
40
+ "trustrails": {
41
+ "command": "trustrails-mcp",
42
+ "env": {
43
+ "TRUSTRAILS_API_KEY": "mcp-public-2026"
44
+ }
45
+ }
46
+ }
47
+ }
48
+ ```
49
+
50
+ That's it! Restart Claude and start searching.
51
+
52
+ ---
53
+
54
+ ## What You Can Do
55
+
56
+ ### Natural Language Product Search
57
+
58
+ ```
59
+ "Find me a gaming laptop under £1000"
60
+ "Compare prices for Sony WH-1000XM5 headphones"
61
+ "Show me the cheapest 4K monitors over 27 inches"
62
+ "What HP laptops are in stock right now between £500-£700?"
63
+ ```
64
+
65
+ Claude will search across multiple UK retailers and show you:
66
+ - Real-time prices
67
+ - Stock availability
68
+ - Product specs
69
+ - Purchase links
70
+
71
+ ---
72
+
73
+ ## Available Tools
74
+
75
+ ### `search_products`
76
+
77
+ Search UK electronics across multiple retailers.
78
+
79
+ **Parameters:**
80
+ - `query` (string) - Search term (e.g., "laptop", "USB-C charger")
81
+ - `min_price` (number) - Minimum price in GBP (optional)
82
+ - `max_price` (number) - Maximum price in GBP (optional)
83
+ - `brand` (string) - Filter by brand (optional)
84
+ - `category` (string) - Filter by category (optional)
85
+
86
+ ### `get_product`
87
+
88
+ Get detailed information about a specific product by ID.
89
+
90
+ **Parameters:**
91
+ - `product_id` (string) - The product ID from search results
92
+
93
+ ---
94
+
95
+ ## Supported Retailers
96
+
97
+ Search across **26,000+ products** from:
98
+
99
+ - **AO** - Major UK electronics retailer
100
+ - **Boxed2Me** - Tech and electronics
101
+ - **Instock** - Computing and office equipment
102
+ - **Back to the Office** - Office tech and supplies
103
+
104
+ *More retailers added regularly*
105
+
106
+ ---
107
+
108
+ ## Rate Limits
109
+
110
+ - **20 requests per hour** per IP address
111
+ - Rate limit info included in response headers (`X-RateLimit-Remaining`, `X-RateLimit-Reset`)
112
+ - Limits reset every hour
113
+
114
+ Plenty for normal use - just prevents abuse.
115
+
116
+ ---
117
+
118
+ ## Environment Variables
119
+
120
+ - `TRUSTRAILS_API_KEY` - API key (use `mcp-public-2026` for shared access)
121
+ - `TRUSTRAILS_BASE_URL` - API endpoint (defaults to `https://www.trustrails.app`)
122
+
123
+ ---
124
+
125
+ ## Example Usage
126
+
127
+ **Price comparison:**
128
+ ```
129
+ "Compare prices for Sony WH-1000XM5 headphones across all retailers"
130
+ ```
131
+
132
+ **Budget shopping:**
133
+ ```
134
+ "Find the cheapest gaming laptops with at least 16GB RAM under £800"
135
+ ```
136
+
137
+ **Brand research:**
138
+ ```
139
+ "Show me all Apple products between £500 and £1000 currently in stock"
140
+ ```
141
+
142
+ **Stock checking:**
143
+ ```
144
+ "Which retailers have the HP Envy x360 in stock right now?"
145
+ ```
146
+
147
+ ---
148
+
149
+ ## Why TrustRails?
150
+
151
+ - ✅ **Real-time data** - Updated daily
152
+ - ✅ **Multiple retailers** - Compare prices in one search
153
+ - ✅ **Stock info** - See what's actually available
154
+ - ✅ **Direct purchase links** - Buy immediately
155
+ - ✅ **Zero setup** - Works out of the box with shared key
156
+
157
+ ---
158
+
159
+ ## Support & Links
160
+
161
+ - **Website:** https://www.trustrails.app
162
+ - **GitHub:** https://github.com/james-webdev/trustrails
163
+ - **Issues:** https://github.com/james-webdev/trustrails/issues
164
+ - **NPM:** https://www.npmjs.com/package/@trustrails/mcp-server
165
+
166
+ ---
167
+
168
+ ## License
169
+
170
+ MIT
171
+
172
+ ---
173
+
174
+ ## About MCP
175
+
176
+ This server implements the [Model Context Protocol](https://modelcontextprotocol.io), allowing Claude to search products directly. Learn more about building MCP servers at [modelcontextprotocol.io](https://modelcontextprotocol.io).
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
package/dist/index.js ADDED
@@ -0,0 +1,181 @@
1
+ #!/usr/bin/env node
2
+ import { Server } from "@modelcontextprotocol/sdk/server/index.js";
3
+ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
4
+ import { CallToolRequestSchema, ListToolsRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
5
+ // TrustRails API configuration
6
+ const API_KEY = process.env.TRUSTRAILS_API_KEY || "mcp-public-2026";
7
+ const BASE_URL = process.env.TRUSTRAILS_BASE_URL || "https://www.trustrails.app";
8
+ // Create server instance
9
+ const server = new Server({
10
+ name: "trustrails",
11
+ version: "0.1.0",
12
+ }, {
13
+ capabilities: {
14
+ tools: {},
15
+ },
16
+ });
17
+ /**
18
+ * Search for products across UK electronics retailers
19
+ */
20
+ async function searchProducts(params) {
21
+ const searchParams = new URLSearchParams();
22
+ if (params.query) {
23
+ searchParams.append("query", params.query);
24
+ }
25
+ if (params.min_price && params.min_price > 0) {
26
+ searchParams.append("min_price", params.min_price.toString());
27
+ }
28
+ if (params.max_price && params.max_price > 0) {
29
+ searchParams.append("max_price", params.max_price.toString());
30
+ }
31
+ if (params.brand) {
32
+ searchParams.append("brand", params.brand);
33
+ }
34
+ if (params.category) {
35
+ searchParams.append("category", params.category);
36
+ }
37
+ const url = `${BASE_URL}/api/search?${searchParams.toString()}`;
38
+ const response = await fetch(url, {
39
+ headers: {
40
+ ...(API_KEY && { "Authorization": `Bearer ${API_KEY}` }),
41
+ },
42
+ });
43
+ if (!response.ok) {
44
+ throw new Error(`Search failed: ${response.statusText}`);
45
+ }
46
+ return await response.json();
47
+ }
48
+ /**
49
+ * Get detailed information about a specific product
50
+ */
51
+ async function getProduct(productId) {
52
+ const url = `${BASE_URL}/api/product/${productId}`;
53
+ const response = await fetch(url, {
54
+ headers: {
55
+ ...(API_KEY && { "Authorization": `Bearer ${API_KEY}` }),
56
+ },
57
+ });
58
+ if (!response.ok) {
59
+ if (response.status === 404) {
60
+ throw new Error(`Product not found: ${productId}`);
61
+ }
62
+ throw new Error(`Failed to get product: ${response.statusText}`);
63
+ }
64
+ return await response.json();
65
+ }
66
+ // Handle tool listing
67
+ server.setRequestHandler(ListToolsRequestSchema, async () => {
68
+ return {
69
+ tools: [
70
+ {
71
+ name: "search_products",
72
+ description: "Search for UK electronics products across multiple retailers (AO, Boxed, etc). " +
73
+ "Returns product details including prices, availability, specs, and purchase links. " +
74
+ "Perfect for price comparison, product research, or building shopping assistants.",
75
+ inputSchema: {
76
+ type: "object",
77
+ properties: {
78
+ query: {
79
+ type: "string",
80
+ description: "Search query (e.g., 'laptop', 'USB-C charger', 'wireless headphones')",
81
+ },
82
+ min_price: {
83
+ type: "number",
84
+ description: "Minimum price filter in GBP (e.g., 100 for products over £100)",
85
+ },
86
+ max_price: {
87
+ type: "number",
88
+ description: "Maximum price filter in GBP (e.g., 500 for products under £500)",
89
+ },
90
+ brand: {
91
+ type: "string",
92
+ description: "Filter by brand name (e.g., 'Sony', 'Apple', 'HP')",
93
+ },
94
+ category: {
95
+ type: "string",
96
+ description: "Filter by product category (e.g., 'Laptops', 'Headphones', 'Monitors')",
97
+ },
98
+ },
99
+ },
100
+ },
101
+ {
102
+ name: "get_product",
103
+ description: "Get detailed information about a specific product by ID. " +
104
+ "Returns complete product details including specs, availability, pricing, and retailer information.",
105
+ inputSchema: {
106
+ type: "object",
107
+ properties: {
108
+ product_id: {
109
+ type: "string",
110
+ description: "The unique product ID",
111
+ },
112
+ },
113
+ required: ["product_id"],
114
+ },
115
+ },
116
+ ],
117
+ };
118
+ });
119
+ // Handle tool execution
120
+ server.setRequestHandler(CallToolRequestSchema, async (request) => {
121
+ try {
122
+ const { name, arguments: args } = request.params;
123
+ switch (name) {
124
+ case "search_products": {
125
+ const searchArgs = args;
126
+ const results = await searchProducts(searchArgs);
127
+ return {
128
+ content: [
129
+ {
130
+ type: "text",
131
+ text: JSON.stringify(results, null, 2),
132
+ },
133
+ ],
134
+ };
135
+ }
136
+ case "get_product": {
137
+ const { product_id } = args;
138
+ if (!product_id) {
139
+ throw new Error("product_id is required");
140
+ }
141
+ const product = await getProduct(product_id);
142
+ return {
143
+ content: [
144
+ {
145
+ type: "text",
146
+ text: JSON.stringify(product, null, 2),
147
+ },
148
+ ],
149
+ };
150
+ }
151
+ default:
152
+ throw new Error(`Unknown tool: ${name}`);
153
+ }
154
+ }
155
+ catch (error) {
156
+ const errorMessage = error instanceof Error ? error.message : String(error);
157
+ return {
158
+ content: [
159
+ {
160
+ type: "text",
161
+ text: `Error: ${errorMessage}`,
162
+ },
163
+ ],
164
+ isError: true,
165
+ };
166
+ }
167
+ });
168
+ // Start the server
169
+ async function main() {
170
+ const transport = new StdioServerTransport();
171
+ await server.connect(transport);
172
+ // Log to stderr (stdout is used for MCP protocol)
173
+ console.error("TrustRails MCP Server running");
174
+ console.error(`Base URL: ${BASE_URL}`);
175
+ console.error(`API Key: ${API_KEY ? "configured" : "not configured"}`);
176
+ }
177
+ main().catch((error) => {
178
+ console.error("Fatal error:", error);
179
+ process.exit(1);
180
+ });
181
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EACL,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,oCAAoC,CAAC;AAE5C,+BAA+B;AAC/B,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,iBAAiB,CAAC;AACpE,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,mBAAmB,IAAI,4BAA4B,CAAC;AAwCjF,yBAAyB;AACzB,MAAM,MAAM,GAAG,IA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C;IACrC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
package/package.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "@trustrails/mcp-server",
3
+ "version": "1.0.0",
4
+ "description": "MCP server for searching UK electronics products across multiple retailers",
5
+ "type": "module",
6
+ "bin": {
7
+ "trustrails-mcp": "./dist/index.js"
8
+ },
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "scripts": {
13
+ "build": "tsc && chmod +x dist/index.js",
14
+ "dev": "tsx src/index.ts",
15
+ "prepublishOnly": "npm run build"
16
+ },
17
+ "keywords": [
18
+ "mcp",
19
+ "claude",
20
+ "model-context-protocol",
21
+ "electronics",
22
+ "uk",
23
+ "shopping",
24
+ "products",
25
+ "price-comparison",
26
+ "trustrails"
27
+ ],
28
+ "author": "TrustRails",
29
+ "license": "MIT",
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "https://github.com/james-webdev/trustrails.git",
33
+ "directory": "packages/mcp-server"
34
+ },
35
+ "dependencies": {
36
+ "@modelcontextprotocol/sdk": "^1.25.1"
37
+ },
38
+ "devDependencies": {
39
+ "@types/node": "^20",
40
+ "tsx": "^4.20.5",
41
+ "typescript": "^5"
42
+ },
43
+ "engines": {
44
+ "node": ">=18"
45
+ }
46
+ }