agentweb-mcp 1.0.0 → 1.1.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/README.md +102 -96
- package/dist/index.js +132 -1
- package/dist/index.js.map +1 -1
- package/package.json +13 -2
package/README.md
CHANGED
|
@@ -1,47 +1,58 @@
|
|
|
1
1
|
# AgentWeb MCP Server
|
|
2
2
|
|
|
3
|
-
MCP (Model Context Protocol) server for [AgentWeb.live](https://agentweb.live) — a free business directory API with
|
|
3
|
+
MCP (Model Context Protocol) server for [AgentWeb.live](https://agentweb.live) — a free, agent-first business directory API with **12M+ businesses across 231 countries**.
|
|
4
|
+
|
|
5
|
+
> 🆕 **v1.1.0** — adds two-way write tools so agents can contribute new businesses, enrich existing ones, and report bad data. AgentWeb is now a self-healing network, not a one-way feed.
|
|
4
6
|
|
|
5
7
|
## What It Does
|
|
6
8
|
|
|
7
|
-
This MCP server
|
|
8
|
-
- Search for businesses by name, category, or location
|
|
9
|
-
- Get detailed business information (phone, email, hours, address, website)
|
|
10
|
-
- Access data from 11M+ businesses in 195 countries
|
|
9
|
+
This MCP server gives any Claude Desktop / Cursor / Continue / LangChain / OpenAI-Agents-SDK / etc. AI agent six tools:
|
|
11
10
|
|
|
12
|
-
|
|
11
|
+
### Read tools
|
|
12
|
+
- **`search_businesses`** — text + geo search (lat/lng + radius, city, country, category) across 12M+ records
|
|
13
|
+
- **`get_business`** — full details for any business by ID
|
|
14
|
+
- **`agentweb_health`** — service status + live counts + community contribution stats
|
|
15
|
+
- **`agentweb_leaderboard`** — top contributing AI agents to the network
|
|
16
|
+
|
|
17
|
+
### Write tools 🆕
|
|
18
|
+
- **`contribute_business`** — add a new business *or* enrich an existing one with phone, email, hours, address, etc. The directory deduplicates automatically by name+location and phone — your agent doesn't have to think about it.
|
|
19
|
+
- **`report_business`** — flag a business as closed, wrong info, or spam. Three or more "closed" reports automatically lower the trust score so other agents see it as unreliable. **Self-healing data quality loop, powered by agents.**
|
|
13
20
|
|
|
14
|
-
|
|
21
|
+
## Why use it
|
|
22
|
+
|
|
23
|
+
- **Free for AI agents.** Free signup, no credit card. Generous rate limits for personal/dev use.
|
|
24
|
+
- **Designed for LLMs.** Clean JSON, predictable schema, structured everywhere. No HTML scraping required.
|
|
25
|
+
- **Open data foundation.** Built on [OpenStreetMap](https://www.openstreetmap.org/) (ODbL-licensed) plus direct schema.org JSON-LD scraping of business websites — no Google Places dependency, no legal grey areas.
|
|
26
|
+
- **Two-way network.** Your agents can both *read* and *write back* — every contribution improves the directory for every other agent.
|
|
27
|
+
|
|
28
|
+
## Installation
|
|
15
29
|
|
|
16
|
-
|
|
30
|
+
### Quick start with npx (no install)
|
|
17
31
|
|
|
18
32
|
```bash
|
|
19
|
-
npx agentweb-mcp
|
|
33
|
+
npx -y agentweb-mcp
|
|
20
34
|
```
|
|
21
35
|
|
|
22
|
-
### Or
|
|
36
|
+
### Or install globally
|
|
23
37
|
|
|
24
38
|
```bash
|
|
25
39
|
npm install -g agentweb-mcp
|
|
26
|
-
agentweb-mcp
|
|
27
40
|
```
|
|
28
41
|
|
|
29
|
-
##
|
|
30
|
-
|
|
31
|
-
You need a free API key from AgentWeb:
|
|
42
|
+
## Get a free API key
|
|
32
43
|
|
|
33
44
|
1. Visit [https://agentweb.live/#signup](https://agentweb.live/#signup)
|
|
34
|
-
2. Sign up
|
|
35
|
-
3. Your
|
|
45
|
+
2. Sign up (email + name)
|
|
46
|
+
3. Your key arrives in seconds (`aw_live_...`)
|
|
36
47
|
|
|
37
48
|
## Configuration
|
|
38
49
|
|
|
39
50
|
### Claude Desktop
|
|
40
51
|
|
|
41
|
-
Add
|
|
52
|
+
Add to `claude_desktop_config.json`:
|
|
42
53
|
|
|
43
|
-
**macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
44
|
-
**Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
|
|
54
|
+
- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
55
|
+
- **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
|
|
45
56
|
|
|
46
57
|
```json
|
|
47
58
|
{
|
|
@@ -57,9 +68,9 @@ Add this to your `claude_desktop_config.json`:
|
|
|
57
68
|
}
|
|
58
69
|
```
|
|
59
70
|
|
|
60
|
-
### Cursor / Windsurf
|
|
71
|
+
### Cursor / Windsurf / Continue
|
|
61
72
|
|
|
62
|
-
|
|
73
|
+
Same config block — these clients all read the same MCP format:
|
|
63
74
|
|
|
64
75
|
```json
|
|
65
76
|
{
|
|
@@ -75,115 +86,110 @@ Add to your MCP settings file:
|
|
|
75
86
|
}
|
|
76
87
|
```
|
|
77
88
|
|
|
78
|
-
|
|
89
|
+
## Available tools
|
|
79
90
|
|
|
80
|
-
|
|
81
|
-
{
|
|
82
|
-
"mcpServers": {
|
|
83
|
-
"agentweb": {
|
|
84
|
-
"command": "npx",
|
|
85
|
-
"args": ["-y", "agentweb-mcp", "aw_live_your_key_here"]
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
```
|
|
91
|
+
### `search_businesses`
|
|
90
92
|
|
|
91
|
-
|
|
93
|
+
Search across 12M+ businesses by text query, category, city, country, or geographic radius.
|
|
92
94
|
|
|
93
|
-
|
|
95
|
+
**Parameters** (all optional, but at least one of `q`, `category`, `city`, or `lat+lng+radius_km` is required):
|
|
96
|
+
- `q` — text search query
|
|
97
|
+
- `category` — e.g. `"restaurant"`, `"dentist"`, `"hotel"`
|
|
98
|
+
- `city` — city name
|
|
99
|
+
- `country` — ISO 3166-1 alpha-2, e.g. `"US"`, `"DE"`
|
|
100
|
+
- `lat`, `lng`, `radius_km` — geographic search
|
|
101
|
+
- `limit` — max results (default 10, max 50)
|
|
102
|
+
- `offset` — pagination
|
|
94
103
|
|
|
95
|
-
|
|
104
|
+
**Try:** *"Find vegan restaurants near 51.51, -0.13 within 2 km"*
|
|
105
|
+
|
|
106
|
+
### `get_business`
|
|
107
|
+
|
|
108
|
+
Get full details for a business by its UUID.
|
|
96
109
|
|
|
97
110
|
**Parameters:**
|
|
98
|
-
- `
|
|
99
|
-
- `category` (string, optional): Business category (e.g., "restaurant", "hotel")
|
|
100
|
-
- `city` (string, optional): City name for location filter
|
|
101
|
-
- `country` (string, optional): Country code (ISO 3166-1 alpha-2, e.g., "US", "GB")
|
|
102
|
-
- `lat` (number, optional): Latitude for geographic search
|
|
103
|
-
- `lng` (number, optional): Longitude for geographic search
|
|
104
|
-
- `radius_km` (number, optional): Search radius in kilometers (use with lat/lng)
|
|
105
|
-
- `limit` (number, optional): Max results to return (default: 10, max: 50)
|
|
106
|
-
- `offset` (number, optional): Number of results to skip for pagination
|
|
111
|
+
- `id` — business UUID returned by `search_businesses`
|
|
107
112
|
|
|
108
|
-
|
|
113
|
+
### `agentweb_health`
|
|
109
114
|
|
|
110
|
-
|
|
111
|
-
- "Find pizza restaurants in New York"
|
|
112
|
-
- "Search for hotels near latitude 40.7128, longitude -74.0060 within 5km"
|
|
113
|
-
- "List all cafes in London, GB"
|
|
115
|
+
Service health, total business count, country count, and community contribution stats.
|
|
114
116
|
|
|
115
|
-
###
|
|
117
|
+
### `contribute_business` 🆕
|
|
116
118
|
|
|
117
|
-
|
|
119
|
+
Submit a new business or enrich an existing one. The directory auto-deduplicates by name+coordinates (within 100m) and by phone number, so your agent doesn't need to check first.
|
|
118
120
|
|
|
119
121
|
**Parameters:**
|
|
120
|
-
- `
|
|
122
|
+
- `name` *(required)* — business name
|
|
123
|
+
- `phone`, `website`, `email`, `category`, `country_code` — optional fields
|
|
124
|
+
- `lat`, `lng` — coordinates (recommended for accurate dedup)
|
|
125
|
+
- `address` — `{street, city, postcode, country, full}`
|
|
126
|
+
- `hours` — opening hours object
|
|
121
127
|
|
|
122
|
-
**
|
|
123
|
-
- "Get details for business ID abc123"
|
|
128
|
+
**Try:** *"This pizza place I just visited isn't in AgentWeb yet — add it for me"*
|
|
124
129
|
|
|
125
|
-
###
|
|
130
|
+
### `report_business` 🆕
|
|
126
131
|
|
|
127
|
-
|
|
132
|
+
Flag a business as closed, having wrong info, or being spam. 3+ "closed" reports automatically lower the trust confidence score.
|
|
128
133
|
|
|
129
|
-
**Parameters:**
|
|
134
|
+
**Parameters:**
|
|
135
|
+
- `business_id` *(required)* — UUID of the business
|
|
136
|
+
- `report_type` *(required)* — one of: `closed`, `wrong_phone`, `wrong_address`, `wrong_hours`, `spam`, `duplicate`, `other`
|
|
137
|
+
- `details` — optional free-text explanation
|
|
130
138
|
|
|
131
|
-
**
|
|
139
|
+
**Try:** *"That dentist closed last year — report it"*
|
|
132
140
|
|
|
133
|
-
|
|
141
|
+
### `agentweb_leaderboard` 🆕
|
|
134
142
|
|
|
135
|
-
|
|
143
|
+
Top contributing AI agents to AgentWeb. See which agents are most actively improving the network.
|
|
136
144
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
```
|
|
145
|
+
**Parameters:**
|
|
146
|
+
- `limit` — number of contributors to return (default 10, max 50)
|
|
140
147
|
|
|
141
|
-
|
|
142
|
-
Search for dentists near me in Chicago
|
|
143
|
-
```
|
|
148
|
+
## Example agent workflows
|
|
144
149
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
```
|
|
150
|
+
**Personal assistant agent:**
|
|
151
|
+
> "Find me three coffee shops within walking distance of Tivoli that open before 8am."
|
|
148
152
|
|
|
149
|
-
|
|
153
|
+
**Research agent:**
|
|
154
|
+
> "Search for all dentists in Berlin Mitte, then for each one check the website and report any that 404 as `closed`."
|
|
150
155
|
|
|
151
|
-
|
|
156
|
+
**Local business directory agent:**
|
|
157
|
+
> "I scraped this site listing 200 restaurants in Lisbon. For each one, contribute it to AgentWeb with the phone and hours."
|
|
152
158
|
|
|
153
|
-
|
|
154
|
-
git clone <repository>
|
|
155
|
-
cd agentweb-mcp
|
|
156
|
-
npm install
|
|
157
|
-
npm run build
|
|
158
|
-
```
|
|
159
|
+
## Data sources
|
|
159
160
|
|
|
160
|
-
|
|
161
|
+
| Source | License | Refresh |
|
|
162
|
+
|---|---|---|
|
|
163
|
+
| OpenStreetMap (Overpass API) | [ODbL](https://www.openstreetmap.org/copyright) | Weekly per country |
|
|
164
|
+
| schema.org JSON-LD direct from business websites | As published by site owner | Continuous |
|
|
165
|
+
| Agent contributions (`/v1/contribute`) | CC-BY 4.0 | Real-time |
|
|
161
166
|
|
|
162
|
-
|
|
163
|
-
npm run dev
|
|
164
|
-
```
|
|
167
|
+
No Google Places, no Foursquare, no scraping of paid APIs.
|
|
165
168
|
|
|
166
|
-
|
|
169
|
+
## Discovery / well-known endpoints
|
|
167
170
|
|
|
168
|
-
|
|
169
|
-
agentweb
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
├── tsconfig.json
|
|
175
|
-
└── README.md
|
|
176
|
-
```
|
|
171
|
+
- OpenAPI spec: https://api.agentweb.live/openapi.json
|
|
172
|
+
- API docs: https://api.agentweb.live/docs
|
|
173
|
+
- Capabilities: https://api.agentweb.live/v1/capabilities
|
|
174
|
+
- AI plugin manifest: https://agentweb.live/.well-known/ai-plugin.json
|
|
175
|
+
- MCP manifest: https://agentweb.live/.well-known/mcp.json
|
|
176
|
+
- AI directives: https://agentweb.live/ai.txt
|
|
177
177
|
|
|
178
|
-
##
|
|
178
|
+
## Development
|
|
179
179
|
|
|
180
|
-
|
|
180
|
+
```bash
|
|
181
|
+
git clone https://github.com/zerabic/agentweb-mcp.git
|
|
182
|
+
cd agentweb-mcp
|
|
183
|
+
npm install
|
|
184
|
+
npm run build
|
|
185
|
+
```
|
|
181
186
|
|
|
182
187
|
## Support
|
|
183
188
|
|
|
184
|
-
- **
|
|
185
|
-
- **
|
|
186
|
-
- **
|
|
189
|
+
- **Get an API key:** https://agentweb.live/#signup
|
|
190
|
+
- **API docs:** https://api.agentweb.live/docs
|
|
191
|
+
- **Issues:** https://github.com/zerabic/agentweb-mcp/issues
|
|
192
|
+
- **Email:** ms.olsen@outlook.com
|
|
187
193
|
|
|
188
194
|
## License
|
|
189
195
|
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ class AgentWebServer {
|
|
|
10
10
|
this.config = config;
|
|
11
11
|
this.server = new Server({
|
|
12
12
|
name: "agentweb-mcp",
|
|
13
|
-
version: "1.
|
|
13
|
+
version: "1.1.0",
|
|
14
14
|
}, {
|
|
15
15
|
capabilities: {
|
|
16
16
|
tools: {},
|
|
@@ -105,6 +105,84 @@ class AgentWebServer {
|
|
|
105
105
|
properties: {},
|
|
106
106
|
},
|
|
107
107
|
},
|
|
108
|
+
{
|
|
109
|
+
name: "contribute_business",
|
|
110
|
+
description: "Contribute a new business to AgentWeb, OR enrich an existing business with missing data " +
|
|
111
|
+
"(phone, email, website, hours, address, etc). The directory deduplicates automatically: if a " +
|
|
112
|
+
"business with the same name already exists at the given coordinates (within 100m), or if a " +
|
|
113
|
+
"matching phone number is found, your data will be merged into the existing record. Otherwise " +
|
|
114
|
+
"a new business is created. Use this whenever you find structured business data that AgentWeb " +
|
|
115
|
+
"doesn't have yet — every contribution improves the network for all agents.",
|
|
116
|
+
inputSchema: {
|
|
117
|
+
type: "object",
|
|
118
|
+
properties: {
|
|
119
|
+
name: { type: "string", description: "Business name (required, min 2 chars)" },
|
|
120
|
+
phone: { type: "string", description: "Phone number (any format; will be cleaned)" },
|
|
121
|
+
website: { type: "string", description: "Business website URL" },
|
|
122
|
+
email: { type: "string", description: "Business email address" },
|
|
123
|
+
category: { type: "string", description: "Business category, e.g. 'restaurant', 'dentist', 'hotel'" },
|
|
124
|
+
country_code: { type: "string", description: "ISO 3166-1 alpha-2 country code, e.g. 'US', 'DE'" },
|
|
125
|
+
lat: { type: "number", description: "Latitude (recommended for accurate dedup)" },
|
|
126
|
+
lng: { type: "number", description: "Longitude (recommended for accurate dedup)" },
|
|
127
|
+
address: {
|
|
128
|
+
type: "object",
|
|
129
|
+
description: "Address fields: { street, city, postcode, country, full }",
|
|
130
|
+
properties: {
|
|
131
|
+
street: { type: "string" },
|
|
132
|
+
city: { type: "string" },
|
|
133
|
+
postcode: { type: "string" },
|
|
134
|
+
country: { type: "string" },
|
|
135
|
+
full: { type: "string" },
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
hours: {
|
|
139
|
+
type: "object",
|
|
140
|
+
description: "Opening hours in flexible format (e.g. { monday: '09:00-17:00', ... })",
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
required: ["name"],
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
name: "report_business",
|
|
148
|
+
description: "Report a business in AgentWeb as closed, having wrong info, or being spam. Used to flag " +
|
|
149
|
+
"data-quality issues so AgentWeb can correct them. Three or more 'closed' reports automatically " +
|
|
150
|
+
"lower the business's confidence score so other agents see it as unreliable. Use this whenever " +
|
|
151
|
+
"you discover that a business is permanently closed, has the wrong phone, wrong address, " +
|
|
152
|
+
"wrong hours, is a spam listing, or is a duplicate of another business.",
|
|
153
|
+
inputSchema: {
|
|
154
|
+
type: "object",
|
|
155
|
+
properties: {
|
|
156
|
+
business_id: { type: "string", description: "The unique business ID from AgentWeb (required)" },
|
|
157
|
+
report_type: {
|
|
158
|
+
type: "string",
|
|
159
|
+
description: "Type of issue",
|
|
160
|
+
enum: ["closed", "wrong_phone", "wrong_address", "wrong_hours", "spam", "duplicate", "other"],
|
|
161
|
+
},
|
|
162
|
+
details: {
|
|
163
|
+
type: "string",
|
|
164
|
+
description: "Optional free-text explanation of what's wrong, max 500 chars",
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
required: ["business_id", "report_type"],
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
name: "agentweb_leaderboard",
|
|
172
|
+
description: "Get the public leaderboard of top contributing AI agents to AgentWeb (most creates, " +
|
|
173
|
+
"enrichments, and reports). Useful for showing which agents are most actively improving " +
|
|
174
|
+
"the network. Returns top contributors plus aggregate counts.",
|
|
175
|
+
inputSchema: {
|
|
176
|
+
type: "object",
|
|
177
|
+
properties: {
|
|
178
|
+
limit: {
|
|
179
|
+
type: "number",
|
|
180
|
+
description: "Number of top contributors to return (default: 10, max: 50)",
|
|
181
|
+
default: 10,
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
},
|
|
108
186
|
];
|
|
109
187
|
}
|
|
110
188
|
async makeApiRequest(endpoint, params = {}) {
|
|
@@ -124,6 +202,20 @@ class AgentWebServer {
|
|
|
124
202
|
}
|
|
125
203
|
return await response.json();
|
|
126
204
|
}
|
|
205
|
+
async makeApiPost(endpoint, body) {
|
|
206
|
+
const url = new URL(`${API_BASE_URL}${endpoint}`);
|
|
207
|
+
url.searchParams.append("api_key", this.config.apiKey);
|
|
208
|
+
const response = await fetch(url.toString(), {
|
|
209
|
+
method: "POST",
|
|
210
|
+
headers: { "Content-Type": "application/json" },
|
|
211
|
+
body: JSON.stringify(body),
|
|
212
|
+
});
|
|
213
|
+
if (!response.ok) {
|
|
214
|
+
const errorText = await response.text();
|
|
215
|
+
throw new Error(`AgentWeb API error (${response.status}): ${errorText}`);
|
|
216
|
+
}
|
|
217
|
+
return await response.json();
|
|
218
|
+
}
|
|
127
219
|
async handleToolCall(request) {
|
|
128
220
|
const { name, arguments: args } = request.params;
|
|
129
221
|
try {
|
|
@@ -164,6 +256,45 @@ class AgentWebServer {
|
|
|
164
256
|
],
|
|
165
257
|
};
|
|
166
258
|
}
|
|
259
|
+
case "contribute_business": {
|
|
260
|
+
if (!args.name) {
|
|
261
|
+
throw new Error("Business name is required");
|
|
262
|
+
}
|
|
263
|
+
const data = await this.makeApiPost("/v1/contribute", args);
|
|
264
|
+
return {
|
|
265
|
+
content: [
|
|
266
|
+
{
|
|
267
|
+
type: "text",
|
|
268
|
+
text: JSON.stringify(data, null, 2),
|
|
269
|
+
},
|
|
270
|
+
],
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
case "report_business": {
|
|
274
|
+
if (!args.business_id || !args.report_type) {
|
|
275
|
+
throw new Error("business_id and report_type are required");
|
|
276
|
+
}
|
|
277
|
+
const data = await this.makeApiPost("/v1/report", args);
|
|
278
|
+
return {
|
|
279
|
+
content: [
|
|
280
|
+
{
|
|
281
|
+
type: "text",
|
|
282
|
+
text: JSON.stringify(data, null, 2),
|
|
283
|
+
},
|
|
284
|
+
],
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
case "agentweb_leaderboard": {
|
|
288
|
+
const data = await this.makeApiRequest("/v1/leaderboard/contributors", { limit: args.limit ?? 10 });
|
|
289
|
+
return {
|
|
290
|
+
content: [
|
|
291
|
+
{
|
|
292
|
+
type: "text",
|
|
293
|
+
text: JSON.stringify(data, null, 2),
|
|
294
|
+
},
|
|
295
|
+
],
|
|
296
|
+
};
|
|
297
|
+
}
|
|
167
298
|
default:
|
|
168
299
|
throw new Error(`Unknown tool: ${name}`);
|
|
169
300
|
}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +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,GAEvB,MAAM,oCAAoC,CAAC;AAE5C,MAAM,YAAY,GAAG,2BAA2B,CAAC;AAMjD,MAAM,cAAc;IACV,MAAM,CAAS;IACf,MAAM,CAAiB;IAE/B,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,IAAI,MAAM,CACtB;YACE,IAAI,EAAE,cAAc;YACpB,OAAO,EAAE,OAAO;SACjB,EACD;YACE,YAAY,EAAE;gBACZ,KAAK,EAAE,EAAE;aACV;SACF,CACF,CAAC;QAEF,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,IAAI,CAAC,kBAAkB,EAAE,CAAC;IAC5B,CAAC;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
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/zerabic/agentweb-mcp.git"
|
|
8
|
+
},
|
|
9
|
+
"description": "MCP server for AgentWeb.live — read + write business directory API for AI agents. 12M+ businesses across 231 countries.",
|
|
5
10
|
"main": "dist/index.js",
|
|
6
11
|
"type": "module",
|
|
7
12
|
"bin": {
|
|
8
13
|
"agentweb-mcp": "./dist/index.js"
|
|
9
14
|
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist/",
|
|
17
|
+
"README.md",
|
|
18
|
+
"LICENSE",
|
|
19
|
+
"package.json"
|
|
20
|
+
],
|
|
10
21
|
"scripts": {
|
|
11
22
|
"build": "tsc",
|
|
12
23
|
"prepare": "npm run build",
|