agentweb-mcp 1.5.0 → 1.7.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 CHANGED
@@ -1,6 +1,193 @@
1
+ The MCP project is undergoing a licensing transition from the MIT License to the Apache License, Version 2.0 ("Apache-2.0"). All new code and specification contributions to the project are licensed under Apache-2.0. Documentation contributions (excluding specifications) are licensed under CC-BY-4.0.
2
+
3
+ Contributions for which relicensing consent has been obtained are licensed under Apache-2.0. Contributions made by authors who originally licensed their work under the MIT License and who have not yet granted explicit permission to relicense remain licensed under the MIT License.
4
+
5
+ No rights beyond those granted by the applicable original license are conveyed for such contributions.
6
+
7
+ ---
8
+
9
+ Apache License
10
+ Version 2.0, January 2004
11
+ http://www.apache.org/licenses/
12
+
13
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
14
+
15
+ 1. Definitions.
16
+
17
+ "License" shall mean the terms and conditions for use, reproduction,
18
+ and distribution as defined by Sections 1 through 9 of this document.
19
+
20
+ "Licensor" shall mean the copyright owner or entity authorized by
21
+ the copyright owner that is granting the License.
22
+
23
+ "Legal Entity" shall mean the union of the acting entity and all
24
+ other entities that control, are controlled by, or are under common
25
+ control with that entity. For the purposes of this definition,
26
+ "control" means (i) the power, direct or indirect, to cause the
27
+ direction or management of such entity, whether by contract or
28
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
29
+ outstanding shares, or (iii) beneficial ownership of such entity.
30
+
31
+ "You" (or "Your") shall mean an individual or Legal Entity
32
+ exercising permissions granted by this License.
33
+
34
+ "Source" form shall mean the preferred form for making modifications,
35
+ including but not limited to software source code, documentation
36
+ source, and configuration files.
37
+
38
+ "Object" form shall mean any form resulting from mechanical
39
+ transformation or translation of a Source form, including but
40
+ not limited to compiled object code, generated documentation,
41
+ and conversions to other media types.
42
+
43
+ "Work" shall mean the work of authorship, whether in Source or
44
+ Object form, made available under the License, as indicated by a
45
+ copyright notice that is included in or attached to the work
46
+ (an example is provided in the Appendix below).
47
+
48
+ "Derivative Works" shall mean any work, whether in Source or Object
49
+ form, that is based on (or derived from) the Work and for which the
50
+ editorial revisions, annotations, elaborations, or other modifications
51
+ represent, as a whole, an original work of authorship. For the purposes
52
+ of this License, Derivative Works shall not include works that remain
53
+ separable from, or merely link (or bind by name) to the interfaces of,
54
+ the Work and Derivative Works thereof.
55
+
56
+ "Contribution" shall mean any work of authorship, including
57
+ the original version of the Work and any modifications or additions
58
+ to that Work or Derivative Works thereof, that is intentionally
59
+ submitted to the Licensor for inclusion in the Work by the copyright
60
+ owner or by an individual or Legal Entity authorized to submit on behalf
61
+ of the copyright owner. For the purposes of this definition, "submitted"
62
+ means any form of electronic, verbal, or written communication sent
63
+ to the Licensor or its representatives, including but not limited to
64
+ communication on electronic mailing lists, source code control systems,
65
+ and issue tracking systems that are managed by, or on behalf of, the
66
+ Licensor for the purpose of discussing and improving the Work, but
67
+ excluding communication that is conspicuously marked or otherwise
68
+ designated in writing by the copyright owner as "Not a Contribution."
69
+
70
+ "Contributor" shall mean Licensor and any individual or Legal Entity
71
+ on behalf of whom a Contribution has been received by Licensor and
72
+ subsequently incorporated within the Work.
73
+
74
+ 2. Grant of Copyright License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ copyright license to reproduce, prepare Derivative Works of,
78
+ publicly display, publicly perform, sublicense, and distribute the
79
+ Work and such Derivative Works in Source or Object form.
80
+
81
+ 3. Grant of Patent License. Subject to the terms and conditions of
82
+ this License, each Contributor hereby grants to You a perpetual,
83
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
84
+ (except as stated in this section) patent license to make, have made,
85
+ use, offer to sell, sell, import, and otherwise transfer the Work,
86
+ where such license applies only to those patent claims licensable
87
+ by such Contributor that are necessarily infringed by their
88
+ Contribution(s) alone or by combination of their Contribution(s)
89
+ with the Work to which such Contribution(s) was submitted. If You
90
+ institute patent litigation against any entity (including a
91
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
92
+ or a Contribution incorporated within the Work constitutes direct
93
+ or contributory patent infringement, then any patent licenses
94
+ granted to You under this License for that Work shall terminate
95
+ as of the date such litigation is filed.
96
+
97
+ 4. Redistribution. You may reproduce and distribute copies of the
98
+ Work or Derivative Works thereof in any medium, with or without
99
+ modifications, and in Source or Object form, provided that You
100
+ meet the following conditions:
101
+
102
+ (a) You must give any other recipients of the Work or
103
+ Derivative Works a copy of this License; and
104
+
105
+ (b) You must cause any modified files to carry prominent notices
106
+ stating that You changed the files; and
107
+
108
+ (c) You must retain, in the Source form of any Derivative Works
109
+ that You distribute, all copyright, patent, trademark, and
110
+ attribution notices from the Source form of the Work,
111
+ excluding those notices that do not pertain to any part of
112
+ the Derivative Works; and
113
+
114
+ (d) If the Work includes a "NOTICE" text file as part of its
115
+ distribution, then any Derivative Works that You distribute must
116
+ include a readable copy of the attribution notices contained
117
+ within such NOTICE file, excluding those notices that do not
118
+ pertain to any part of the Derivative Works, in at least one
119
+ of the following places: within a NOTICE text file distributed
120
+ as part of the Derivative Works; within the Source form or
121
+ documentation, if provided along with the Derivative Works; or,
122
+ within a display generated by the Derivative Works, if and
123
+ wherever such third-party notices normally appear. The contents
124
+ of the NOTICE file are for informational purposes only and
125
+ do not modify the License. You may add Your own attribution
126
+ notices within Derivative Works that You distribute, alongside
127
+ or as an addendum to the NOTICE text from the Work, provided
128
+ that such additional attribution notices cannot be construed
129
+ as modifying the License.
130
+
131
+ You may add Your own copyright statement to Your modifications and
132
+ may provide additional or different license terms and conditions
133
+ for use, reproduction, or distribution of Your modifications, or
134
+ for any such Derivative Works as a whole, provided Your use,
135
+ reproduction, and distribution of the Work otherwise complies with
136
+ the conditions stated in this License.
137
+
138
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
139
+ any Contribution intentionally submitted for inclusion in the Work
140
+ by You to the Licensor shall be under the terms and conditions of
141
+ this License, without any additional terms or conditions.
142
+ Notwithstanding the above, nothing herein shall supersede or modify
143
+ the terms of any separate license agreement you may have executed
144
+ with Licensor regarding such Contributions.
145
+
146
+ 6. Trademarks. This License does not grant permission to use the trade
147
+ names, trademarks, service marks, or product names of the Licensor,
148
+ except as required for reasonable and customary use in describing the
149
+ origin of the Work and reproducing the content of the NOTICE file.
150
+
151
+ 7. Disclaimer of Warranty. Unless required by applicable law or
152
+ agreed to in writing, Licensor provides the Work (and each
153
+ Contributor provides its Contributions) on an "AS IS" BASIS,
154
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
155
+ implied, including, without limitation, any warranties or conditions
156
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
157
+ PARTICULAR PURPOSE. You are solely responsible for determining the
158
+ appropriateness of using or redistributing the Work and assume any
159
+ risks associated with Your exercise of permissions under this License.
160
+
161
+ 8. Limitation of Liability. In no event and under no legal theory,
162
+ whether in tort (including negligence), contract, or otherwise,
163
+ unless required by applicable law (such as deliberate and grossly
164
+ negligent acts) or agreed to in writing, shall any Contributor be
165
+ liable to You for damages, including any direct, indirect, special,
166
+ incidental, or consequential damages of any character arising as a
167
+ result of this License or out of the use or inability to use the
168
+ Work (including but not limited to damages for loss of goodwill,
169
+ work stoppage, computer failure or malfunction, or any and all
170
+ other commercial damages or losses), even if such Contributor
171
+ has been advised of the possibility of such damages.
172
+
173
+ 9. Accepting Warranty or Additional Liability. While redistributing
174
+ the Work or Derivative Works thereof, You may choose to offer,
175
+ and charge a fee for, acceptance of support, warranty, indemnity,
176
+ or other liability obligations and/or rights consistent with this
177
+ License. However, in accepting such obligations, You may act only
178
+ on Your own behalf and on Your sole responsibility, not on behalf
179
+ of any other Contributor, and only if You agree to indemnify,
180
+ defend, and hold each Contributor harmless for any liability
181
+ incurred by, or claims asserted against, such Contributor by reason
182
+ of your accepting any such warranty or additional liability.
183
+
184
+ END OF TERMS AND CONDITIONS
185
+
186
+ ---
187
+
1
188
  MIT License
2
189
 
3
- Copyright (c) 2026 AgentWeb MCP
190
+ Copyright (c) 2024-2025 Model Context Protocol a Series of LF Projects, LLC.
4
191
 
5
192
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
193
  of this software and associated documentation files (the "Software"), to deal
@@ -19,3 +206,11 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
206
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
207
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
208
  SOFTWARE.
209
+
210
+ ---
211
+
212
+ Creative Commons Attribution 4.0 International (CC-BY-4.0)
213
+
214
+ Documentation in this project (excluding specifications) is licensed under
215
+ CC-BY-4.0. See https://creativecommons.org/licenses/by/4.0/legalcode for
216
+ the full license text.
package/README.md CHANGED
@@ -1,121 +1,25 @@
1
- # AgentWeb MCP Server
1
+ # agentweb-mcp
2
2
 
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
- [![Docker](https://img.shields.io/badge/Docker-supported-2496ED?logo=docker&logoColor=white)](https://github.com/zerabic/agentweb-mcp/blob/main/Dockerfile)
8
- [![Free for AI agents](https://img.shields.io/badge/Free%20for%20AI%20agents-0%24-blueviolet)](https://agentweb.live)
3
+ MCP server for [AgentWeb.live](https://agentweb.live) — the agent-native business directory.
9
4
 
10
- MCP (Model Context Protocol) server for [AgentWeb.live](https://agentweb.live) — **the agent-native registry**. 11M+ businesses across 233 countries. Free, structured, machine-readable. **The substrate of the agent web** a registry where businesses publish themselves directly, with no website required, designed from the ground up to be read by AI agents instead of browsers.
5
+ 11M+ businesses across 195 countries. Phone, email, hours, address, geo, social links. Returns markdown prose by default (~60% fewer tokens than JSON). Free API key, instant signup.
11
6
 
12
- > 🆕 **v1.3.1** — every API call now requires a free API key (1,000 reads/day + 120 req/min burst + unlimited writes, instant signup at https://agentweb.live/#signup). Added `agentweb_get_short` for ~80% token savings via the compact shorthand format (`/v1/r/{id}/agent.json`) and `agentweb_capabilities` for tool self-discovery. New `--save-key` flag lets you persist the key once to `~/.agentweb/key` instead of setting the env var every time.
7
+ ## Install
13
8
 
14
- ## 60-second Quickstart
9
+ **One-prompt install (recommended):**
15
10
 
16
- ```bash
17
- # 1. Get a free API key (no credit card)
18
- # → https://agentweb.live/#signup
11
+ Paste this into Claude Desktop, Cursor, Windsurf, Cline, OpenClaw, or any agent with filesystem access:
19
12
 
20
- # 2. Add this to your Claude Desktop / Cursor / Continue config
21
13
  ```
22
-
23
- ```json
24
- {
25
- "mcpServers": {
26
- "agentweb": {
27
- "command": "npx",
28
- "args": ["-y", "agentweb-mcp"],
29
- "env": { "AGENTWEB_API_KEY": "aw_live_your_key_here" }
30
- }
31
- }
32
- }
14
+ Install AgentWeb by following the instructions at https://agentweb.live/install.md
33
15
  ```
34
16
 
35
- ```bash
36
- # 3. Restart your client and ask:
37
- # "Find a coffee shop near Tivoli Copenhagen with phone and opening hours"
38
- #
39
- # Done. Your agent now has access to 11M+ businesses.
40
- ```
41
-
42
- ## What It Does
43
-
44
- This MCP server gives any Claude Desktop / Cursor / Continue / LangChain / OpenAI-Agents-SDK / Cline / etc. AI agent **eight tools**:
45
-
46
- ### Read tools
47
-
48
- | Tool | Purpose |
49
- |---|---|
50
- | `search_businesses` | Text + geo search across 11M+ records (lat/lng + radius, city, country, category) |
51
- | `get_business` | Full details for any business by ID. Now uses the canonical `/v1/r/{id}` substrate endpoint — sub-50ms global. |
52
- | `agentweb_get_short` | Compact agent-native record (~320 bytes). **~80% fewer tokens** vs `get_business` for the same business. |
53
- | `agentweb_health` | Service status + live counts + community contribution stats |
54
- | `agentweb_leaderboard` | Top contributing AI agents to the network |
55
- | `agentweb_capabilities` 🆕 | Self-introspection: list every endpoint, every tool, every data source |
56
-
57
- ### Write tools
58
-
59
- | Tool | Purpose |
60
- |---|---|
61
- | `contribute_business` | Add a new business *or* enrich an existing one (auto-dedupes by name+location and phone) |
62
- | `report_business` | Flag a business as closed, wrong info, or spam. 3+ closed reports auto-lower trust. **Self-healing data quality loop, powered by agents.** |
63
-
64
- ## Why use it
65
-
66
- - **Free.** Instant key, no credit card. 1,000 reads/day + 120 req/min burst. Unlimited writes.
67
- - **Token-efficient.** `agentweb_get_short` returns ~320 bytes per business — sub-50ms global, ~80% fewer tokens for the LLM.
68
- - **Designed for LLMs.** Clean JSON, predictable schema, single-letter compact format available. No HTML scraping required.
69
- - **Open data foundation.** Built on [OpenStreetMap](https://www.openstreetmap.org/) (ODbL) plus direct schema.org JSON-LD scraping of business websites — no Google Places dependency, no legal grey areas.
70
- - **Two-way network.** Your agents both *read* and *write back* — every contribution improves the directory for every other agent.
71
- - **Owner-claimable.** Business owners can claim and edit their listing in 30 seconds with **no website required** — agents can help the long tail of small businesses get visible.
72
-
73
- ## Installation
74
-
75
- ### Quick start with npx (no install)
76
-
77
- ```bash
78
- npx -y agentweb-mcp
79
- ```
80
-
81
- ### Or install globally
82
-
83
- ```bash
84
- npm install -g agentweb-mcp
85
- ```
86
-
87
- ## Get a free API key
88
-
89
- 1. Visit [https://agentweb.live/#signup](https://agentweb.live/#signup)
90
- 2. Sign up (email + name)
91
- 3. Your key arrives in seconds (`aw_live_...`)
92
-
93
- ## Configuration
94
-
95
- ### Claude Desktop
96
-
97
- Add to `claude_desktop_config.json`:
98
-
99
- - **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
100
- - **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
101
-
102
- ```json
103
- {
104
- "mcpServers": {
105
- "agentweb": {
106
- "command": "npx",
107
- "args": ["-y", "agentweb-mcp"],
108
- "env": {
109
- "AGENTWEB_API_KEY": "aw_live_your_key_here"
110
- }
111
- }
112
- }
113
- }
114
- ```
17
+ Your agent reads the instructions, signs you up for a free key, configures itself, and tells you when it's ready.
115
18
 
116
- ### Cursor / Windsurf / Continue / Cline
19
+ **Manual install:**
117
20
 
118
- Same config block these clients all read the same MCP format:
21
+ 1. Get a free API key at [agentweb.live/#signup](https://agentweb.live/#signup)
22
+ 2. Add to your MCP client config:
119
23
 
120
24
  ```json
121
25
  {
@@ -123,155 +27,83 @@ Same config block — these clients all read the same MCP format:
123
27
  "agentweb": {
124
28
  "command": "npx",
125
29
  "args": ["-y", "agentweb-mcp"],
126
- "env": {
127
- "AGENTWEB_API_KEY": "aw_live_your_key_here"
128
- }
30
+ "env": { "AGENTWEB_API_KEY": "aw_live_..." }
129
31
  }
130
32
  }
131
33
  }
132
34
  ```
133
35
 
134
- ## Available tools
135
-
136
- ### `search_businesses`
137
-
138
- Search across 11M+ businesses by text query, category, city, country, or geographic radius.
139
-
140
- **Parameters** (all optional, but at least one of `q`, `category`, `city`, or `lat+lng+radius_km` is required):
141
- - `q` — text search query
142
- - `category` — e.g. `"restaurant"`, `"dentist"`, `"hotel"`
143
- - `city` — city name
144
- - `country` — ISO 3166-1 alpha-2, e.g. `"US"`, `"DE"`
145
- - `lat`, `lng`, `radius_km` — geographic search
146
- - `limit` — max results (default 10, max 50)
147
- - `offset` — pagination
148
-
149
- **Try:** *"Find vegan restaurants near 51.51, -0.13 within 2 km"*
150
-
151
- ### `get_business`
152
-
153
- Get full details for a business by its UUID. Uses the canonical `/v1/r/{id}` endpoint (sub-50ms global) with fallback to the legacy `/v1/business/{id}`.
154
-
155
- **Parameters:**
156
- - `id` — business UUID returned by `search_businesses`
157
-
158
- ### `agentweb_get_short` 🆕
159
-
160
- Same business as `get_business` but in the **compact shorthand format**: ~320 bytes instead of 3-5 KB, single-letter keys (`n=name`, `p=phone`, `e=email`, `w=website`, `h=hours`, `g=[lat,lng]`, `s=social`, etc.). **~80% fewer tokens** for the LLM. Uses the same free API key as every other call.
161
-
162
- **Use this whenever you just need contact info.** Example: "Find me 10 cafes near Berlin and tell me their phones" — use `search_businesses` to get the IDs, then `agentweb_get_short` to fetch each one. The token savings add up fast.
163
-
164
- **Parameters:**
165
- - `id` — business UUID
166
-
167
- Schema is self-describing: see https://api.agentweb.live/v1/schema/short
168
-
169
- ### `agentweb_health`
170
-
171
- Service health, total business count, country count, and community contribution stats.
36
+ Config file locations:
37
+ - **Claude Desktop (Mac):** `~/Library/Application Support/Claude/claude_desktop_config.json`
38
+ - **Claude Desktop (Win):** `%APPDATA%\Claude\claude_desktop_config.json`
39
+ - **Cursor:** `~/.cursor/mcp.json`
40
+ - **Windsurf:** `~/.codeium/windsurf/mcp_config.json`
172
41
 
173
- ### `agentweb_capabilities` 🆕
42
+ 3. Restart your client.
174
43
 
175
- Returns the machine-readable description of the entire AgentWeb API: every endpoint, every tool, every data source, current live counts. Use this when you need to discover what AgentWeb can do, or when you want to introspect the substrate.
44
+ ## Tools (14)
176
45
 
177
- ### `agentweb_leaderboard`
46
+ ### Search & discovery
178
47
 
179
- Top contributing AI agents to AgentWeb. See which agents are most actively improving the network — proves the network is two-way.
180
-
181
- **Parameters:**
182
- - `limit` number of contributors to return (default 10, max 50)
183
-
184
- ### `contribute_business`
185
-
186
- 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.
187
-
188
- **Parameters:**
189
- - `name` *(required)* — business name
190
- - `phone`, `website`, `email`, `category`, `country_code` — optional fields
191
- - `lat`, `lng` — coordinates (recommended for accurate dedup)
192
- - `address` — `{street, city, postcode, country, full}`
193
- - `hours` — opening hours object
194
-
195
- **Try:** *"This pizza place I just visited isn't in AgentWeb yet — add it for me"*
196
-
197
- ### `report_business`
198
-
199
- Flag a business as closed, having wrong info, or being spam. 3+ "closed" reports automatically lower the trust confidence score.
200
-
201
- **Parameters:**
202
- - `business_id` *(required)* — UUID of the business
203
- - `report_type` *(required)* — one of: `closed`, `wrong_phone`, `wrong_address`, `wrong_hours`, `spam`, `duplicate`, `other`
204
- - `details` — optional free-text explanation
205
-
206
- **Try:** *"That dentist closed last year — report it"*
207
-
208
- ## Example agent workflows
209
-
210
- **Personal assistant agent (token-efficient):**
211
- > "Find me three coffee shops within walking distance of Tivoli that open before 8am."
212
- > *Agent calls `search_businesses` → gets 3 IDs → calls `agentweb_get_short` 3× (~320 bytes each) instead of `get_business` (3-5 KB each). ~80% token savings.*
213
-
214
- **Research agent:**
215
- > "Search for all dentists in Berlin Mitte, then for each one check the website and report any that 404 as `closed`."
216
-
217
- **Local business directory agent:**
218
- > "I scraped this site listing 200 restaurants in Lisbon. For each one, contribute it to AgentWeb with the phone and hours."
48
+ | Tool | Description |
49
+ |---|---|
50
+ | `search_businesses` | Text + geo search across 11M+ businesses. Returns prose by default. |
51
+ | `suggest` | Autocomplete for business names, cities, categories. Fast (<20ms). |
52
+ | `trending_businesses` | Most searched businesses right now. Filter by category/city/country. |
219
53
 
220
- **Self-discovery agent:**
221
- > "What can AgentWeb do?"
222
- > *Agent calls `agentweb_capabilities`, gets back the full machine-readable API description.*
54
+ ### Read
223
55
 
224
- ## The substrate
56
+ | Tool | Description |
57
+ |---|---|
58
+ | `get_business` | Fetch one business by slug or UUID. Prose or JSON. |
59
+ | `batch_get_businesses` | Fetch up to 50 businesses in one call. |
60
+ | `agentweb_get_short` | Compact shorthand format (~320 bytes, single-letter keys). |
225
61
 
226
- AgentWeb is the **substrate of the agent web**. Read more in the [manifesto](https://agentweb.live/manifesto).
62
+ ### Write (agents contribute back)
227
63
 
228
- Beyond MCP, every business is also reachable as:
64
+ | Tool | Description |
65
+ |---|---|
66
+ | `contribute_business` | Add a new business or enrich an existing one. Auto-deduplicates. |
67
+ | `report_business` | Flag closed / wrong / spam. 3+ reports lower trust score. |
229
68
 
230
- - **Canonical agent.json** at `https://api.agentweb.live/v1/r/{id}/agent.json` — compact shorthand, sub-50ms, ~320 bytes
231
- - **Human profile page** at `https://agentweb.live/r/{id}` — server-rendered HTML with embedded JSON-LD for crawlers
232
- - **Directory browse** at `https://agentweb.live/directory` — by category (15,000+) and country (233)
69
+ ### Agent Memory (unique to AgentWeb)
233
70
 
234
- Owner-claimable: any business owner can claim their listing or add a brand-new one in 30 seconds at `https://agentweb.live/claim` and `https://agentweb.live/claim/new` with no website required.
71
+ | Tool | Description |
72
+ |---|---|
73
+ | `agent_history` | Your agent's interaction history — every business it searched, viewed, or contributed to. Persists 90 days. Enables "that restaurant from last week." |
74
+ | `agent_favorites` | Implicit favorites — businesses your agent interacts with most often. |
75
+ | `agent_profile` | Agent identity: tier, contribution count, requests, memory stats. |
235
76
 
236
- ## Data sources
77
+ ### Meta
237
78
 
238
- | Source | License | Refresh |
239
- |---|---|---|
240
- | OpenStreetMap (Overpass API) | [ODbL](https://www.openstreetmap.org/copyright) | Weekly per country |
241
- | schema.org JSON-LD direct from business websites | As published by site owner | Continuous |
242
- | Agent contributions (`/v1/contribute`) | CC-BY 4.0 | Real-time |
243
- | Owner claims (`/v1/claim/new`) | CC-BY 4.0 | Real-time |
79
+ | Tool | Description |
80
+ |---|---|
81
+ | `agentweb_health` | Service status + live counts. |
82
+ | `agentweb_capabilities` | Machine-readable API description (agent introspection). |
83
+ | `agentweb_leaderboard` | Top contributing agents. |
244
84
 
245
- No Google Places, no Foursquare, no scraping of paid APIs.
85
+ ## Example
246
86
 
247
- ## Discovery / well-known endpoints
87
+ After installing, just ask your agent:
248
88
 
249
- - Manifesto: https://agentweb.live/manifesto
250
- - Directory: https://agentweb.live/directory
251
- - OpenAPI spec: https://api.agentweb.live/openapi.json
252
- - API docs: https://api.agentweb.live/docs
253
- - Capabilities: https://api.agentweb.live/v1/capabilities
254
- - Shorthand schema: https://api.agentweb.live/v1/schema/short
255
- - Sitemap: https://agentweb.live/sitemap.xml
256
- - AI plugin manifest: https://agentweb.live/.well-known/ai-plugin.json
257
- - MCP manifest: https://agentweb.live/.well-known/mcp.json
258
- - AI directives: https://agentweb.live/ai.txt
259
- - LLM-friendly summary: https://agentweb.live/llms.txt
89
+ - "Find Italian restaurants in Rome that are open right now"
90
+ - "What's the phone number of Blue Bottle Coffee in San Francisco?"
91
+ - "List 10 hotels in Tokyo with their websites"
92
+ - "Find bakeries in Paris open on Sunday mornings"
260
93
 
261
- ## Development
94
+ ## Free tier
262
95
 
263
- ```bash
264
- git clone https://github.com/zerabic/agentweb-mcp.git
265
- cd agentweb-mcp
266
- npm install
267
- npm run build
268
- ```
96
+ - 1,000 reads/day + 120 req/min burst
97
+ - Unlimited writes (contribute + report)
98
+ - Rate limit bonuses: 10+ contributions = 5,000/day, 100+ = 20,000/day
99
+ - No credit card, no verification, no expiration
269
100
 
270
- ## Support
101
+ ## Links
271
102
 
272
- - **Get an API key:** https://agentweb.live/#signup
273
- - **API docs:** https://api.agentweb.live/docs
274
- - **Issues / contact:** https://github.com/zerabic/agentweb-mcp/issues
103
+ - **Website:** [agentweb.live](https://agentweb.live)
104
+ - **API docs:** [api.agentweb.live/docs](https://api.agentweb.live/docs)
105
+ - **Agent install instructions:** [agentweb.live/install.md](https://agentweb.live/install.md)
106
+ - **GitHub:** [github.com/zerabic/agentweb-mcp](https://github.com/zerabic/agentweb-mcp)
275
107
 
276
108
  ## License
277
109
 
package/dist/index.js CHANGED
@@ -47,7 +47,7 @@ class AgentWebServer {
47
47
  this.config = config;
48
48
  this.server = new Server({
49
49
  name: "agentweb-mcp",
50
- version: "1.5.0",
50
+ version: "1.7.0",
51
51
  }, {
52
52
  capabilities: {
53
53
  tools: {},
@@ -254,6 +254,138 @@ class AgentWebServer {
254
254
  },
255
255
  },
256
256
  },
257
+ {
258
+ name: "suggest",
259
+ description: "Autocomplete / type-ahead for business names, cities, or categories. Use this when you need to disambiguate " +
260
+ "user input before searching — e.g. the user says 'restaurants in Copen' and you want to resolve 'Copen' to " +
261
+ "'Copenhagen'. Returns up to 15 suggestions sorted by relevance. Fast (<20ms).",
262
+ inputSchema: {
263
+ type: "object",
264
+ properties: {
265
+ q: {
266
+ type: "string",
267
+ description: "Query prefix, min 2 characters (e.g. 'nom', 'copenh', 'dent')",
268
+ },
269
+ type: {
270
+ type: "string",
271
+ enum: ["business", "city", "category"],
272
+ description: "What to autocomplete: 'business' (names), 'city' (city names), 'category' (business categories). Default: 'business'.",
273
+ default: "business",
274
+ },
275
+ country: {
276
+ type: "string",
277
+ description: "Optional ISO country code to narrow suggestions (e.g. 'DK', 'US')",
278
+ },
279
+ limit: {
280
+ type: "number",
281
+ description: "Max suggestions to return (default: 10, max: 15)",
282
+ default: 10,
283
+ },
284
+ },
285
+ required: ["q"],
286
+ },
287
+ },
288
+ {
289
+ name: "batch_get_businesses",
290
+ description: "Fetch up to 50 businesses in a single call by IDs or slugs. Saves N round-trips when you have " +
291
+ "multiple business identifiers from a previous search. Returns all businesses in one response. " +
292
+ "Supports prose (markdown), JSON, and shorthand formats.",
293
+ inputSchema: {
294
+ type: "object",
295
+ properties: {
296
+ ids: {
297
+ type: "string",
298
+ description: "Comma-separated business IDs or slugs (max 50). e.g. 'noma-copenhagen-abc12345,blue-bottle-sf-def67890'",
299
+ },
300
+ format: {
301
+ type: "string",
302
+ enum: ["text", "json", "short"],
303
+ description: "Response format. 'text' (default) returns markdown prose. 'json' returns structured JSON. 'short' returns compact shorthand.",
304
+ default: "text",
305
+ },
306
+ },
307
+ required: ["ids"],
308
+ },
309
+ },
310
+ {
311
+ name: "trending_businesses",
312
+ description: "Get the most searched/popular businesses on AgentWeb right now. Useful for discovery — " +
313
+ "shows what other agents are looking up. Filter by category, city, or country. " +
314
+ "Rankings are based on search frequency (Wilson Lower Bound scoring).",
315
+ inputSchema: {
316
+ type: "object",
317
+ properties: {
318
+ period: {
319
+ type: "string",
320
+ enum: ["24h", "7d", "alltime"],
321
+ description: "Time period for trending. Default: '24h'.",
322
+ default: "24h",
323
+ },
324
+ category: {
325
+ type: "string",
326
+ description: "Optional category filter (e.g. 'restaurant', 'hotel')",
327
+ },
328
+ city: {
329
+ type: "string",
330
+ description: "Optional city filter",
331
+ },
332
+ country: {
333
+ type: "string",
334
+ description: "Optional ISO country code filter",
335
+ },
336
+ limit: {
337
+ type: "number",
338
+ description: "Max results (default: 10, max: 50)",
339
+ default: 10,
340
+ },
341
+ },
342
+ },
343
+ },
344
+ {
345
+ name: "agent_history",
346
+ description: "Retrieve this agent's interaction history — every business it searched for, viewed, or contributed to. " +
347
+ "AgentWeb remembers what your agent has done, enabling context like 'that restaurant from last week'. " +
348
+ "History persists for 90 days, up to 500 interactions. Use this to recall past lookups without re-searching.",
349
+ inputSchema: {
350
+ type: "object",
351
+ properties: {
352
+ limit: {
353
+ type: "number",
354
+ description: "Max entries to return (default: 50, max: 500)",
355
+ default: 50,
356
+ },
357
+ offset: {
358
+ type: "number",
359
+ description: "Skip N entries for pagination (default: 0)",
360
+ default: 0,
361
+ },
362
+ },
363
+ },
364
+ },
365
+ {
366
+ name: "agent_favorites",
367
+ description: "Get this agent's implicit favorites — businesses it has interacted with more than once. " +
368
+ "Sorted by interaction frequency. Useful for 'my usual places' or repeat lookups.",
369
+ inputSchema: {
370
+ type: "object",
371
+ properties: {
372
+ limit: {
373
+ type: "number",
374
+ description: "Max favorites to return (default: 20, max: 100)",
375
+ default: 20,
376
+ },
377
+ },
378
+ },
379
+ },
380
+ {
381
+ name: "agent_profile",
382
+ description: "Get this agent's identity and stats: API key info, tier, contribution count, request totals, " +
383
+ "and how many interactions are remembered. Useful for 'how am I doing on AgentWeb?' or checking quota.",
384
+ inputSchema: {
385
+ type: "object",
386
+ properties: {},
387
+ },
388
+ },
257
389
  ];
258
390
  }
259
391
  async makeApiRequest(endpoint, params = {}) {
@@ -269,7 +401,7 @@ class AgentWebServer {
269
401
  const response = await fetch(url.toString(), {
270
402
  headers: {
271
403
  "X-API-Key": this.config.apiKey,
272
- "User-Agent": "agentweb-mcp/1.5.0",
404
+ "User-Agent": "agentweb-mcp/1.7.0",
273
405
  },
274
406
  });
275
407
  if (!response.ok) {
@@ -294,7 +426,7 @@ class AgentWebServer {
294
426
  headers: {
295
427
  "X-API-Key": this.config.apiKey,
296
428
  "Accept": "text/markdown",
297
- "User-Agent": "agentweb-mcp/1.5.0",
429
+ "User-Agent": "agentweb-mcp/1.7.0",
298
430
  },
299
431
  });
300
432
  if (!response.ok) {
@@ -309,7 +441,7 @@ class AgentWebServer {
309
441
  headers: {
310
442
  "Content-Type": "application/json",
311
443
  "X-API-Key": this.config.apiKey,
312
- "User-Agent": "agentweb-mcp/1.5.0",
444
+ "User-Agent": "agentweb-mcp/1.7.0",
313
445
  },
314
446
  body: JSON.stringify(body),
315
447
  });
@@ -475,6 +607,77 @@ class AgentWebServer {
475
607
  ],
476
608
  };
477
609
  }
610
+ case "suggest": {
611
+ if (!args.q || args.q.length < 2) {
612
+ throw new Error("Query 'q' is required and must be at least 2 characters");
613
+ }
614
+ const data = await this.makeApiRequest("/v1/suggest", {
615
+ q: args.q,
616
+ type: args.type ?? "business",
617
+ country: args.country,
618
+ limit: args.limit ?? 10,
619
+ });
620
+ return {
621
+ content: [{ type: "text", text: JSON.stringify(data, null, 2) }],
622
+ };
623
+ }
624
+ case "batch_get_businesses": {
625
+ if (!args.ids) {
626
+ throw new Error("'ids' is required — comma-separated business IDs or slugs");
627
+ }
628
+ const wantsJson = args.format === "json" || args.format === "short";
629
+ if (wantsJson) {
630
+ const data = await this.makeApiRequest("/v1/batch", {
631
+ ids: args.ids,
632
+ format: args.format,
633
+ });
634
+ return {
635
+ content: [{ type: "text", text: JSON.stringify(data, null, 2) }],
636
+ };
637
+ }
638
+ const markdown = await this.makeApiRequestText("/v1/batch", {
639
+ ids: args.ids,
640
+ format: "text",
641
+ });
642
+ return {
643
+ content: [{ type: "text", text: markdown }],
644
+ };
645
+ }
646
+ case "trending_businesses": {
647
+ const data = await this.makeApiRequest("/v1/trending", {
648
+ period: args.period ?? "24h",
649
+ category: args.category,
650
+ city: args.city,
651
+ country: args.country,
652
+ limit: args.limit ?? 10,
653
+ });
654
+ return {
655
+ content: [{ type: "text", text: JSON.stringify(data, null, 2) }],
656
+ };
657
+ }
658
+ case "agent_history": {
659
+ const data = await this.makeApiRequest("/v1/agent/history", {
660
+ limit: args.limit ?? 50,
661
+ offset: args.offset ?? 0,
662
+ });
663
+ return {
664
+ content: [{ type: "text", text: JSON.stringify(data, null, 2) }],
665
+ };
666
+ }
667
+ case "agent_favorites": {
668
+ const data = await this.makeApiRequest("/v1/agent/favorites", {
669
+ limit: args.limit ?? 20,
670
+ });
671
+ return {
672
+ content: [{ type: "text", text: JSON.stringify(data, null, 2) }],
673
+ };
674
+ }
675
+ case "agent_profile": {
676
+ const data = await this.makeApiRequest("/v1/agent/profile");
677
+ return {
678
+ content: [{ type: "text", text: JSON.stringify(data, null, 2) }],
679
+ };
680
+ }
478
681
  default:
479
682
  throw new Error(`Unknown tool: ${name}`);
480
683
  }
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;AAC5C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AACxE,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAErC,MAAM,YAAY,GAAG,2BAA2B,CAAC;AACjD,MAAM,UAAU,GAAG,+BAA+B,CAAC;AACnD,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;AAMrD,8EAA8E;AAC9E,SAAS,UAAU;IACjB,MAAM,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}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "agentweb-mcp",
3
- "version": "1.5.0",
3
+ "version": "1.7.0",
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 — the agent-native registry. 11M+ businesses across 233 countries, each with a canonical slug URL. Returns markdown prose by default (~60% fewer tokens than JSON, better LLM parsing). Free API key (1,000 reads/day, instant signup, no credit card). Contribution-tier rate limit bonuses (5x/20x/100x).",
9
+ "description": "MCP server for AgentWeb.live — the agent-native registry. 11M+ businesses, 195 countries. 14 tools: search, get, batch, suggest, trending, contribute, report, agent memory (history/favorites/profile) + meta. Prose format (~60% fewer tokens). Free API key. Agent self-install via agentweb.live/install.md.",
10
10
  "main": "dist/index.js",
11
11
  "type": "module",
12
12
  "bin": {