agentweb-mcp 1.0.1 → 1.1.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.
package/README.md CHANGED
@@ -1,47 +1,92 @@
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 11M+ businesses across 195 countries.
3
+ [![npm version](https://img.shields.io/npm/v/agentweb-mcp.svg?color=10b981)](https://www.npmjs.com/package/agentweb-mcp)
4
+ [![npm downloads](https://img.shields.io/npm/dw/agentweb-mcp.svg?color=10b981)](https://www.npmjs.com/package/agentweb-mcp)
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6
+ [![MCP Compatible](https://img.shields.io/badge/MCP-Compatible-blue)](https://modelcontextprotocol.io)
7
+ [![Free for AI agents](https://img.shields.io/badge/Free%20for%20AI%20agents-0%2C-blueviolet)](https://agentweb.live)
8
+
9
+ MCP (Model Context Protocol) server for [AgentWeb.live](https://agentweb.live) — a free, agent-first business directory API with **12M+ businesses across 231 countries**.
10
+
11
+ > 🆕 **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.
12
+
13
+ ## ⚡ 60-second Quickstart
14
+
15
+ ```bash
16
+ # 1. Get a free API key (no credit card)
17
+ # → https://agentweb.live/#signup
18
+
19
+ # 2. Add this to your Claude Desktop / Cursor / Continue config
20
+ ```
21
+
22
+ ```json
23
+ {
24
+ "mcpServers": {
25
+ "agentweb": {
26
+ "command": "npx",
27
+ "args": ["-y", "agentweb-mcp"],
28
+ "env": { "AGENTWEB_API_KEY": "aw_live_your_key_here" }
29
+ }
30
+ }
31
+ }
32
+ ```
33
+
34
+ ```bash
35
+ # 3. Restart your client and ask:
36
+ # "Find a coffee shop near Tivoli Copenhagen with phone and opening hours"
37
+ #
38
+ # Done. Your agent now has access to 12M+ businesses.
39
+ ```
4
40
 
5
41
  ## What It Does
6
42
 
7
- This MCP server exposes AgentWeb's business directory API to AI assistants like Claude, enabling them to:
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
43
+ This MCP server gives any Claude Desktop / Cursor / Continue / LangChain / OpenAI-Agents-SDK / etc. AI agent six tools:
11
44
 
12
- ## Installation
45
+ ### Read tools
46
+ - **`search_businesses`** — text + geo search (lat/lng + radius, city, country, category) across 12M+ records
47
+ - **`get_business`** — full details for any business by ID
48
+ - **`agentweb_health`** — service status + live counts + community contribution stats
49
+ - **`agentweb_leaderboard`** — top contributing AI agents to the network
13
50
 
14
- ### Quick Start with npx
51
+ ### Write tools 🆕
52
+ - **`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.
53
+ - **`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.**
15
54
 
16
- The easiest way to use this server is with `npx`:
55
+ ## Why use it
56
+
57
+ - **Free for AI agents.** Free signup, no credit card. Generous rate limits for personal/dev use.
58
+ - **Designed for LLMs.** Clean JSON, predictable schema, structured everywhere. No HTML scraping required.
59
+ - **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.
60
+ - **Two-way network.** Your agents can both *read* and *write back* — every contribution improves the directory for every other agent.
61
+
62
+ ## Installation
63
+
64
+ ### Quick start with npx (no install)
17
65
 
18
66
  ```bash
19
- npx agentweb-mcp
67
+ npx -y agentweb-mcp
20
68
  ```
21
69
 
22
- ### Or Install Globally
70
+ ### Or install globally
23
71
 
24
72
  ```bash
25
73
  npm install -g agentweb-mcp
26
- agentweb-mcp
27
74
  ```
28
75
 
29
- ## Getting an API Key
30
-
31
- You need a free API key from AgentWeb:
76
+ ## Get a free API key
32
77
 
33
78
  1. Visit [https://agentweb.live/#signup](https://agentweb.live/#signup)
34
- 2. Sign up with your email and name
35
- 3. Your API key will be sent to your email (format: `aw_live_...`)
79
+ 2. Sign up (email + name)
80
+ 3. Your key arrives in seconds (`aw_live_...`)
36
81
 
37
82
  ## Configuration
38
83
 
39
84
  ### Claude Desktop
40
85
 
41
- Add this to your `claude_desktop_config.json`:
86
+ Add to `claude_desktop_config.json`:
42
87
 
43
- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
44
- **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
88
+ - **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
89
+ - **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
45
90
 
46
91
  ```json
47
92
  {
@@ -57,9 +102,9 @@ Add this to your `claude_desktop_config.json`:
57
102
  }
58
103
  ```
59
104
 
60
- ### Cursor / Windsurf
105
+ ### Cursor / Windsurf / Continue
61
106
 
62
- Add to your MCP settings file:
107
+ Same config block — these clients all read the same MCP format:
63
108
 
64
109
  ```json
65
110
  {
@@ -75,115 +120,110 @@ Add to your MCP settings file:
75
120
  }
76
121
  ```
77
122
 
78
- ### Alternative: Pass API Key as Argument
123
+ ## Available tools
79
124
 
80
- ```json
81
- {
82
- "mcpServers": {
83
- "agentweb": {
84
- "command": "npx",
85
- "args": ["-y", "agentweb-mcp", "aw_live_your_key_here"]
86
- }
87
- }
88
- }
89
- ```
125
+ ### `search_businesses`
126
+
127
+ Search across 12M+ businesses by text query, category, city, country, or geographic radius.
90
128
 
91
- ## Available Tools
129
+ **Parameters** (all optional, but at least one of `q`, `category`, `city`, or `lat+lng+radius_km` is required):
130
+ - `q` — text search query
131
+ - `category` — e.g. `"restaurant"`, `"dentist"`, `"hotel"`
132
+ - `city` — city name
133
+ - `country` — ISO 3166-1 alpha-2, e.g. `"US"`, `"DE"`
134
+ - `lat`, `lng`, `radius_km` — geographic search
135
+ - `limit` — max results (default 10, max 50)
136
+ - `offset` — pagination
92
137
 
93
- ### 1. `search_businesses`
138
+ **Try:** *"Find vegan restaurants near 51.51, -0.13 within 2 km"*
94
139
 
95
- Search for businesses in the AgentWeb directory.
140
+ ### `get_business`
141
+
142
+ Get full details for a business by its UUID.
96
143
 
97
144
  **Parameters:**
98
- - `q` (string, optional): Text search query (business name, keywords)
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
145
+ - `id` business UUID returned by `search_businesses`
107
146
 
108
- **Note**: At least one of `q`, `category`, or `lat+lng` is required.
147
+ ### `agentweb_health`
109
148
 
110
- **Example queries:**
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"
149
+ Service health, total business count, country count, and community contribution stats.
114
150
 
115
- ### 2. `get_business`
151
+ ### `contribute_business` 🆕
116
152
 
117
- Get full details for a specific business by ID.
153
+ 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
154
 
119
155
  **Parameters:**
120
- - `id` (string, required): The unique business ID from AgentWeb
156
+ - `name` *(required)* business name
157
+ - `phone`, `website`, `email`, `category`, `country_code` — optional fields
158
+ - `lat`, `lng` — coordinates (recommended for accurate dedup)
159
+ - `address` — `{street, city, postcode, country, full}`
160
+ - `hours` — opening hours object
121
161
 
122
- **Example:**
123
- - "Get details for business ID abc123"
162
+ **Try:** *"This pizza place I just visited isn't in AgentWeb yet — add it for me"*
124
163
 
125
- ### 3. `agentweb_health`
164
+ ### `report_business` 🆕
126
165
 
127
- Check the health status of the AgentWeb API.
166
+ Flag a business as closed, having wrong info, or being spam. 3+ "closed" reports automatically lower the trust confidence score.
128
167
 
129
- **Parameters:** None
168
+ **Parameters:**
169
+ - `business_id` *(required)* — UUID of the business
170
+ - `report_type` *(required)* — one of: `closed`, `wrong_phone`, `wrong_address`, `wrong_hours`, `spam`, `duplicate`, `other`
171
+ - `details` — optional free-text explanation
130
172
 
131
- **Returns:** API status, total businesses count, and countries available.
173
+ **Try:** *"That dentist closed last year report it"*
132
174
 
133
- ## Example Usage
175
+ ### `agentweb_leaderboard` 🆕
134
176
 
135
- After configuring the server, you can ask Claude:
177
+ Top contributing AI agents to AgentWeb. See which agents are most actively improving the network.
136
178
 
137
- ```
138
- Find Italian restaurants in San Francisco
139
- ```
179
+ **Parameters:**
180
+ - `limit` number of contributors to return (default 10, max 50)
140
181
 
141
- ```
142
- Search for dentists near me in Chicago
143
- ```
182
+ ## Example agent workflows
144
183
 
145
- ```
146
- Get contact information for coffee shops in Seattle
147
- ```
184
+ **Personal assistant agent:**
185
+ > "Find me three coffee shops within walking distance of Tivoli that open before 8am."
148
186
 
149
- ## Development
187
+ **Research agent:**
188
+ > "Search for all dentists in Berlin Mitte, then for each one check the website and report any that 404 as `closed`."
150
189
 
151
- ### Build from Source
190
+ **Local business directory agent:**
191
+ > "I scraped this site listing 200 restaurants in Lisbon. For each one, contribute it to AgentWeb with the phone and hours."
152
192
 
153
- ```bash
154
- git clone <repository>
155
- cd agentweb-mcp
156
- npm install
157
- npm run build
158
- ```
193
+ ## Data sources
159
194
 
160
- ### Run in Development Mode
195
+ | Source | License | Refresh |
196
+ |---|---|---|
197
+ | OpenStreetMap (Overpass API) | [ODbL](https://www.openstreetmap.org/copyright) | Weekly per country |
198
+ | schema.org JSON-LD direct from business websites | As published by site owner | Continuous |
199
+ | Agent contributions (`/v1/contribute`) | CC-BY 4.0 | Real-time |
161
200
 
162
- ```bash
163
- npm run dev
164
- ```
201
+ No Google Places, no Foursquare, no scraping of paid APIs.
165
202
 
166
- ### Project Structure
203
+ ## Discovery / well-known endpoints
167
204
 
168
- ```
169
- agentweb-mcp/
170
- ├── src/
171
- │ └── index.ts # Main MCP server implementation
172
- ├── dist/ # Compiled JavaScript (generated)
173
- ├── package.json
174
- ├── tsconfig.json
175
- └── README.md
176
- ```
205
+ - OpenAPI spec: https://api.agentweb.live/openapi.json
206
+ - API docs: https://api.agentweb.live/docs
207
+ - Capabilities: https://api.agentweb.live/v1/capabilities
208
+ - AI plugin manifest: https://agentweb.live/.well-known/ai-plugin.json
209
+ - MCP manifest: https://agentweb.live/.well-known/mcp.json
210
+ - AI directives: https://agentweb.live/ai.txt
177
211
 
178
- ## API Documentation
212
+ ## Development
179
213
 
180
- For full API documentation, visit [AgentWeb API Docs](https://agentweb.live).
214
+ ```bash
215
+ git clone https://github.com/zerabic/agentweb-mcp.git
216
+ cd agentweb-mcp
217
+ npm install
218
+ npm run build
219
+ ```
181
220
 
182
221
  ## Support
183
222
 
184
- - **API Issues**: Contact AgentWeb support
185
- - **MCP Server Issues**: Open an issue in this repository
186
- - **Get API Key**: [https://agentweb.live/#signup](https://agentweb.live/#signup)
223
+ - **Get an API key:** https://agentweb.live/#signup
224
+ - **API docs:** https://api.agentweb.live/docs
225
+ - **Issues:** https://github.com/zerabic/agentweb-mcp/issues
226
+ - **Email:** ms.olsen@outlook.com
187
227
 
188
228
  ## License
189
229
 
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.0.0",
13
+ version: "1.1.1",
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;IAEO,kBAAkB;QACxB,IAAI,CAAC,MAAM,CAAC,OAAO,GAAG,CAAC,KAAK,EAAE,EAAE;YAC9B,OAAO,CAAC,KAAK,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;QACtC,CAAC,CAAC;QAEF,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,IAAI,EAAE;YAC9B,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;YAC1B,OAAO,CAAC,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UAAU,IAAI;IACjB,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAE/D,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,CAAC,KAAK,CAAC,0DAA0D,CAAC,CAAC;QAC1E,OAAO,CAAC,KAAK,CAAC,oDAAoD,CAAC,CAAC;QACpE,OAAO,CAAC,KAAK,CACX,qDAAqD,CACtD,CAAC;QACF,OAAO,CAAC,KAAK,CAAC,kCAAkC,CAAC,CAAC;QAClD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IAED,MAAM,MAAM,GAAG,IAAI,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;IAC9C,MAAM,MAAM,CAAC,GAAG,EAAE,CAAC;AACrB,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IACrB,OAAO,CAAC,KAAK,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;IACrC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,17 +1,23 @@
1
1
  {
2
2
  "name": "agentweb-mcp",
3
- "version": "1.0.1",
3
+ "version": "1.1.1",
4
4
  "mcpName": "io.github.zerabic/agentweb",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/zerabic/agentweb-mcp.git"
8
8
  },
9
- "description": "MCP server for AgentWeb.live - Business directory API with 11M+ businesses",
9
+ "description": "MCP server for AgentWeb.live read + write business directory API for AI agents. 12M+ businesses across 231 countries.",
10
10
  "main": "dist/index.js",
11
11
  "type": "module",
12
12
  "bin": {
13
13
  "agentweb-mcp": "./dist/index.js"
14
14
  },
15
+ "files": [
16
+ "dist/",
17
+ "README.md",
18
+ "LICENSE",
19
+ "package.json"
20
+ ],
15
21
  "scripts": {
16
22
  "build": "tsc",
17
23
  "prepare": "npm run build",
@@ -22,6 +28,21 @@
22
28
  "model-context-protocol",
23
29
  "agentweb",
24
30
  "business-directory",
31
+ "directory",
32
+ "places",
33
+ "geo",
34
+ "geosearch",
35
+ "phone",
36
+ "openstreetmap",
37
+ "osm",
38
+ "local-business",
39
+ "yellow-pages",
40
+ "claude-desktop",
41
+ "cursor",
42
+ "langchain",
43
+ "ai-agent",
44
+ "agent-tools",
45
+ "free",
25
46
  "api"
26
47
  ],
27
48
  "author": "",