@trustrails/mcp-server 1.0.0 → 1.0.2
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/README.md +96 -49
- 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
|
+
[](https://www.npmjs.com/package/@trustrails/mcp-server)
|
|
8
|
+
[](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
|
-
|
|
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
|
-
**
|
|
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
|
-
-
|
|
68
|
-
-
|
|
69
|
-
-
|
|
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
|
|
79
|
+
Search UK electronics across major UK retailers including AO.
|
|
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
|
|
82
|
-
- `max_price` (number) - Maximum price in GBP
|
|
83
|
-
- `brand` (string) - Filter by brand (
|
|
84
|
-
- `category` (string) - Filter by category (
|
|
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,13 @@ 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
|
-
##
|
|
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
|
|
101
|
+
## Supported Retailers
|
|
119
102
|
|
|
120
|
-
|
|
121
|
-
- `TRUSTRAILS_BASE_URL` - API endpoint (defaults to `https://www.trustrails.app`)
|
|
103
|
+
Search across **26,000+ electronics products** from major UK retailers including **AO**, with new retailers added regularly.
|
|
122
104
|
|
|
123
105
|
---
|
|
124
106
|
|
|
@@ -144,33 +126,98 @@ Plenty for normal use - just prevents abuse.
|
|
|
144
126
|
"Which retailers have the HP Envy x360 in stock right now?"
|
|
145
127
|
```
|
|
146
128
|
|
|
129
|
+
**Deal finding:**
|
|
130
|
+
```
|
|
131
|
+
"What are the best laptop deals under £600 from any retailer?"
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
## Rate Limits
|
|
137
|
+
|
|
138
|
+
- **20 requests per hour** per IP address
|
|
139
|
+
- Rate limit info included in response headers
|
|
140
|
+
- Limits reset every hour
|
|
141
|
+
- Plenty for normal shopping research - just prevents abuse
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
## Environment Variables
|
|
146
|
+
|
|
147
|
+
- `TRUSTRAILS_API_KEY` - API key (use `mcp-public-2026` for shared public access)
|
|
148
|
+
- `TRUSTRAILS_BASE_URL` - API endpoint (optional, defaults to `https://www.trustrails.app`)
|
|
149
|
+
|
|
147
150
|
---
|
|
148
151
|
|
|
149
152
|
## Why TrustRails?
|
|
150
153
|
|
|
151
|
-
- ✅ **Real-time data** -
|
|
154
|
+
- ✅ **Real-time data** - Product feeds updated twice daily
|
|
152
155
|
- ✅ **Multiple retailers** - Compare prices in one search
|
|
153
|
-
- ✅ **Stock
|
|
154
|
-
- ✅ **Direct purchase links** -
|
|
155
|
-
- ✅ **Zero setup** - Works out of the box with shared key
|
|
156
|
+
- ✅ **Stock information** - See what's actually available to buy
|
|
157
|
+
- ✅ **Direct purchase links** - Click through to buy immediately
|
|
158
|
+
- ✅ **Zero setup** - Works out of the box with shared public key
|
|
159
|
+
- ✅ **UK-focused** - Optimized for UK electronics shopping
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
## Troubleshooting
|
|
164
|
+
|
|
165
|
+
**"Command not found: trustrails-mcp"**
|
|
166
|
+
- Make sure you installed globally: `npm install -g @trustrails/mcp-server`
|
|
167
|
+
- Check your global npm bin path is in $PATH: `npm bin -g`
|
|
168
|
+
|
|
169
|
+
**"Rate limit exceeded"**
|
|
170
|
+
- Wait an hour for limits to reset
|
|
171
|
+
- Check `X-RateLimit-Reset` header for exact reset time
|
|
172
|
+
- 20 requests/hour is plenty for normal usage
|
|
173
|
+
|
|
174
|
+
**"No results found"**
|
|
175
|
+
- Try broader search terms (e.g., "laptop" instead of specific model)
|
|
176
|
+
- Check spelling of brand names
|
|
177
|
+
- Try searching without filters first
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
## Development
|
|
182
|
+
|
|
183
|
+
### Local Setup
|
|
184
|
+
|
|
185
|
+
```bash
|
|
186
|
+
# Clone the repo
|
|
187
|
+
git clone https://github.com/your-username/trustrails-mcp-server
|
|
188
|
+
cd trustrails-mcp-server
|
|
189
|
+
|
|
190
|
+
# Install dependencies
|
|
191
|
+
npm install
|
|
192
|
+
|
|
193
|
+
# Run locally
|
|
194
|
+
npm run dev
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
### Testing
|
|
198
|
+
|
|
199
|
+
```bash
|
|
200
|
+
# Run the MCP inspector to test tools
|
|
201
|
+
npx @modelcontextprotocol/inspector npm run dev
|
|
202
|
+
```
|
|
156
203
|
|
|
157
204
|
---
|
|
158
205
|
|
|
159
206
|
## Support & Links
|
|
160
207
|
|
|
161
|
-
- **Website:** https://www.trustrails.app
|
|
162
|
-
- **
|
|
163
|
-
- **
|
|
164
|
-
- **
|
|
208
|
+
- **Website:** [trustrails.app](https://www.trustrails.app)
|
|
209
|
+
- **Issues:** [GitHub Issues](https://github.com/your-username/trustrails-mcp-server/issues)
|
|
210
|
+
- **NPM:** [@trustrails/mcp-server](https://www.npmjs.com/package/@trustrails/mcp-server)
|
|
211
|
+
- **MCP Registry:** [modelcontextprotocol.io/servers](https://modelcontextprotocol.io/servers)
|
|
165
212
|
|
|
166
213
|
---
|
|
167
214
|
|
|
168
215
|
## License
|
|
169
216
|
|
|
170
|
-
MIT
|
|
217
|
+
MIT © TrustRails
|
|
171
218
|
|
|
172
219
|
---
|
|
173
220
|
|
|
174
221
|
## About MCP
|
|
175
222
|
|
|
176
|
-
This server implements the [Model Context Protocol](https://modelcontextprotocol.io),
|
|
223
|
+
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.
|
|
3
|
+
"version": "1.0.2",
|
|
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"
|