@trustrails/mcp-server 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/README.md +101 -47
  2. package/package.json +2 -3
package/README.md CHANGED
@@ -2,7 +2,10 @@
2
2
 
3
3
  **Search UK electronics products** - compare prices, find deals, and discover products across multiple retailers.
4
4
 
5
- Built for the [Model Context Protocol (MCP)](https://modelcontextprotocol.io)
5
+ Built for the [Model Context Protocol (MCP)](https://modelcontextprotocol.io) - works with Claude Desktop, Claude Code, and other MCP-compatible AI assistants.
6
+
7
+ [![npm version](https://badge.fury.io/js/%40trustrails%2Fmcp-server.svg)](https://www.npmjs.com/package/@trustrails/mcp-server)
8
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6
9
 
7
10
  ---
8
11
 
@@ -16,7 +19,7 @@ npm install -g @trustrails/mcp-server
16
19
 
17
20
  ### Configuration
18
21
 
19
- Add to your Claude Code config (`~/.config/claude/config.json`):
22
+ **For Claude Code** (`~/.config/claude/config.json`):
20
23
 
21
24
  ```json
22
25
  {
@@ -24,15 +27,14 @@ Add to your Claude Code config (`~/.config/claude/config.json`):
24
27
  "trustrails": {
25
28
  "command": "trustrails-mcp",
26
29
  "env": {
27
- "TRUSTRAILS_API_KEY": "mcp-public-2026",
28
- "TRUSTRAILS_BASE_URL": "https://www.trustrails.app"
30
+ "TRUSTRAILS_API_KEY": "mcp-public-2026"
29
31
  }
30
32
  }
31
33
  }
32
34
  }
33
35
  ```
34
36
 
35
- **Or** for Claude Desktop (`~/Library/Application Support/Claude/claude_desktop_config.json`):
37
+ **For Claude Desktop** (`~/Library/Application Support/Claude/claude_desktop_config.json` on macOS):
36
38
 
37
39
  ```json
38
40
  {
@@ -63,10 +65,10 @@ That's it! Restart Claude and start searching.
63
65
  ```
64
66
 
65
67
  Claude will search across multiple UK retailers and show you:
66
- - Real-time prices
67
- - Stock availability
68
- - Product specs
69
- - Purchase links
68
+ - Real-time prices & availability
69
+ - Product specs & descriptions
70
+ - Stock status
71
+ - Direct purchase links
70
72
 
71
73
  ---
72
74
 
@@ -74,14 +76,16 @@ Claude will search across multiple UK retailers and show you:
74
76
 
75
77
  ### `search_products`
76
78
 
77
- Search UK electronics across multiple retailers.
79
+ Search UK electronics across multiple retailers (AO, Boxed2Me, In Stock UK, Back to the Office).
78
80
 
79
81
  **Parameters:**
80
82
  - `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)
83
+ - `min_price` (number, optional) - Minimum price in GBP
84
+ - `max_price` (number, optional) - Maximum price in GBP
85
+ - `brand` (string, optional) - Filter by brand (e.g., "Sony", "HP", "Apple")
86
+ - `category` (string, optional) - Filter by category (e.g., "Laptops", "Headphones")
87
+
88
+ **Returns:** Up to 20 products with full details (title, price, specs, availability, purchase links)
85
89
 
86
90
  ### `get_product`
87
91
 
@@ -90,35 +94,20 @@ Get detailed information about a specific product by ID.
90
94
  **Parameters:**
91
95
  - `product_id` (string) - The product ID from search results
92
96
 
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*
97
+ **Returns:** Complete product information including specifications and retailer details
105
98
 
106
99
  ---
107
100
 
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.
101
+ ## Supported Retailers
115
102
 
116
- ---
103
+ Search across **26,000+ electronics products** from:
117
104
 
118
- ## Environment Variables
105
+ - **AO** - Major UK electronics & appliances retailer
106
+ - **Boxed2Me** - Computing & electronics specialist
107
+ - **In Stock UK** - Tech and office equipment
108
+ - **Back to the Office** - Office technology & supplies
119
109
 
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`)
110
+ *More retailers being added regularly*
122
111
 
123
112
  ---
124
113
 
@@ -144,33 +133,98 @@ Plenty for normal use - just prevents abuse.
144
133
  "Which retailers have the HP Envy x360 in stock right now?"
145
134
  ```
146
135
 
136
+ **Deal finding:**
137
+ ```
138
+ "What are the best laptop deals under £600 from any retailer?"
139
+ ```
140
+
141
+ ---
142
+
143
+ ## Rate Limits
144
+
145
+ - **20 requests per hour** per IP address
146
+ - Rate limit info included in response headers
147
+ - Limits reset every hour
148
+ - Plenty for normal shopping research - just prevents abuse
149
+
150
+ ---
151
+
152
+ ## Environment Variables
153
+
154
+ - `TRUSTRAILS_API_KEY` - API key (use `mcp-public-2026` for shared public access)
155
+ - `TRUSTRAILS_BASE_URL` - API endpoint (optional, defaults to `https://www.trustrails.app`)
156
+
147
157
  ---
148
158
 
149
159
  ## Why TrustRails?
150
160
 
151
- - ✅ **Real-time data** - Updated daily
161
+ - ✅ **Real-time data** - Product feeds updated twice daily
152
162
  - ✅ **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
163
+ - ✅ **Stock information** - See what's actually available to buy
164
+ - ✅ **Direct purchase links** - Click through to buy immediately
165
+ - ✅ **Zero setup** - Works out of the box with shared public key
166
+ - ✅ **UK-focused** - Optimized for UK electronics shopping
167
+
168
+ ---
169
+
170
+ ## Troubleshooting
171
+
172
+ **"Command not found: trustrails-mcp"**
173
+ - Make sure you installed globally: `npm install -g @trustrails/mcp-server`
174
+ - Check your global npm bin path is in $PATH: `npm bin -g`
175
+
176
+ **"Rate limit exceeded"**
177
+ - Wait an hour for limits to reset
178
+ - Check `X-RateLimit-Reset` header for exact reset time
179
+ - 20 requests/hour is plenty for normal usage
180
+
181
+ **"No results found"**
182
+ - Try broader search terms (e.g., "laptop" instead of specific model)
183
+ - Check spelling of brand names
184
+ - Try searching without filters first
185
+
186
+ ---
187
+
188
+ ## Development
189
+
190
+ ### Local Setup
191
+
192
+ ```bash
193
+ # Clone the repo
194
+ git clone https://github.com/your-username/trustrails-mcp-server
195
+ cd trustrails-mcp-server
196
+
197
+ # Install dependencies
198
+ npm install
199
+
200
+ # Run locally
201
+ npm run dev
202
+ ```
203
+
204
+ ### Testing
205
+
206
+ ```bash
207
+ # Run the MCP inspector to test tools
208
+ npx @modelcontextprotocol/inspector npm run dev
209
+ ```
156
210
 
157
211
  ---
158
212
 
159
213
  ## Support & Links
160
214
 
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
215
+ - **Website:** [trustrails.app](https://www.trustrails.app)
216
+ - **Issues:** [GitHub Issues](https://github.com/your-username/trustrails-mcp-server/issues)
217
+ - **NPM:** [@trustrails/mcp-server](https://www.npmjs.com/package/@trustrails/mcp-server)
218
+ - **MCP Registry:** [modelcontextprotocol.io/servers](https://modelcontextprotocol.io/servers)
165
219
 
166
220
  ---
167
221
 
168
222
  ## License
169
223
 
170
- MIT
224
+ MIT © TrustRails
171
225
 
172
226
  ---
173
227
 
174
228
  ## About MCP
175
229
 
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).
230
+ This server implements the [Model Context Protocol](https://modelcontextprotocol.io), a standard for connecting AI assistants to external tools and data sources. Learn more about building MCP servers at [modelcontextprotocol.io](https://modelcontextprotocol.io).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustrails/mcp-server",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "MCP server for searching UK electronics products across multiple retailers",
5
5
  "type": "module",
6
6
  "bin": {
@@ -29,8 +29,7 @@
29
29
  "license": "MIT",
30
30
  "repository": {
31
31
  "type": "git",
32
- "url": "https://github.com/james-webdev/trustrails.git",
33
- "directory": "packages/mcp-server"
32
+ "url": "https://github.com/james-webdev/trustrails-mcp-server.git"
34
33
  },
35
34
  "dependencies": {
36
35
  "@modelcontextprotocol/sdk": "^1.25.1"