agentweb-mcp 1.4.0 → 1.6.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,278 +1,153 @@
1
- # AgentWeb MCP Server
1
+ # MCP Registry
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
+ The MCP registry provides MCP clients with a list of MCP servers, like an app store for MCP servers.
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
+ [**📤 Publish my MCP server**](docs/modelcontextprotocol-io/quickstart.mdx) | [**⚡️ Live API docs**](https://registry.modelcontextprotocol.io/docs) | [**👀 Ecosystem vision**](docs/design/ecosystem-vision.md) | 📖 **[Full documentation](./docs)**
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
+ ## Development Status
13
8
 
14
- ## 60-second Quickstart
9
+ **2025-10-24 update**: The Registry API has entered an **API freeze (v0.1)** 🎉. For the next month or more, the API will remain stable with no breaking changes, allowing integrators to confidently implement support. This freeze applies to v0.1 while development continues on v0. We'll use this period to validate the API in real-world integrations and gather feedback to shape v1 for general availability. Thank you to everyone for your contributions and patience—your involvement has been key to getting us here!
15
10
 
16
- ```bash
17
- # 1. Get a free API key (no credit card)
18
- # → https://agentweb.live/#signup
19
-
20
- # 2. Add this to your Claude Desktop / Cursor / Continue config
21
- ```
11
+ **2025-09-08 update**: The registry has launched in preview 🎉 ([announcement blog post](https://blog.modelcontextprotocol.io/posts/2025-09-08-mcp-registry-preview/)). While the system is now more stable, this is still a preview release and breaking changes or data resets may occur. A general availability (GA) release will follow later. We'd love your feedback in [GitHub discussions](https://github.com/modelcontextprotocol/registry/discussions/new?category=ideas) or in the [#registry-dev Discord](https://discord.com/channels/1358869848138059966/1369487942862504016) ([joining details here](https://modelcontextprotocol.io/community/communication)).
22
12
 
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
- }
33
- ```
34
-
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
- ```
13
+ Current key maintainers:
14
+ - **Adam Jones** (Anthropic) [@domdomegg](https://github.com/domdomegg)
15
+ - **Tadas Antanavicius** (PulseMCP) [@tadasant](https://github.com/tadasant)
16
+ - **Toby Padilla** (GitHub) [@toby](https://github.com/toby)
17
+ - **Radoslav (Rado) Dimitrov** (Stacklok) [@rdimitrov](https://github.com/rdimitrov)
41
18
 
42
- ## What It Does
19
+ ## Contributing
43
20
 
44
- This MCP server gives any Claude Desktop / Cursor / Continue / LangChain / OpenAI-Agents-SDK / Cline / etc. AI agent **eight tools**:
21
+ We use multiple channels for collaboration - see [modelcontextprotocol.io/community/communication](https://modelcontextprotocol.io/community/communication).
45
22
 
46
- ### Read tools
23
+ Often (but not always) ideas flow through this pipeline:
47
24
 
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 |
25
+ - **[Discord](https://modelcontextprotocol.io/community/communication)** - Real-time community discussions
26
+ - **[Discussions](https://github.com/modelcontextprotocol/registry/discussions)** - Propose and discuss product/technical requirements
27
+ - **[Issues](https://github.com/modelcontextprotocol/registry/issues)** - Track well-scoped technical work
28
+ - **[Pull Requests](https://github.com/modelcontextprotocol/registry/pulls)** - Contribute work towards issues
56
29
 
57
- ### Write tools
30
+ ### Quick start:
58
31
 
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.** |
32
+ #### Pre-requisites
63
33
 
64
- ## Why use it
34
+ - **Docker**
35
+ - **Go 1.24.x**
36
+ - **ko** - Container image builder for Go ([installation instructions](https://ko.build/install/))
37
+ - **golangci-lint v2.4.0**
65
38
 
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)
39
+ #### Running the server
76
40
 
77
41
  ```bash
78
- npx -y agentweb-mcp
42
+ # Start full development environment
43
+ make dev-compose
79
44
  ```
80
45
 
81
- ### Or install globally
46
+ This starts the registry at [`localhost:8080`](http://localhost:8080) with PostgreSQL. The database uses ephemeral storage and is reset each time you restart the containers, ensuring a clean state for development and testing.
82
47
 
83
- ```bash
84
- npm install -g agentweb-mcp
85
- ```
48
+ **Note:** The registry uses [ko](https://ko.build) to build container images. The `make dev-compose` command automatically builds the registry image with ko and loads it into your local Docker daemon before starting the services.
86
49
 
87
- ## Get a free API key
50
+ By default, the registry seeds from the production API with a filtered subset of servers (to keep startup fast). This ensures your local environment mirrors production behavior and all seed data passes validation. For offline development you can seed from a file without validation with `MCP_REGISTRY_SEED_FROM=data/seed.json MCP_REGISTRY_ENABLE_REGISTRY_VALIDATION=false make dev-compose`.
88
51
 
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_...`)
52
+ The setup can be configured with environment variables in [docker-compose.yml](./docker-compose.yml) - see [.env.example](./.env.example) for a reference.
92
53
 
93
- ## Configuration
54
+ <details>
55
+ <summary>Alternative: Running a pre-built Docker image</summary>
94
56
 
95
- ### Claude Desktop
57
+ Pre-built Docker images are automatically published to GitHub Container Registry:
96
58
 
97
- Add to `claude_desktop_config.json`:
59
+ ```bash
60
+ # Run latest stable release
61
+ docker run -p 8080:8080 ghcr.io/modelcontextprotocol/registry:latest
98
62
 
99
- - **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
100
- - **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
63
+ # Run latest from main branch (continuous deployment)
64
+ docker run -p 8080:8080 ghcr.io/modelcontextprotocol/registry:main
101
65
 
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
- ```
66
+ # Run specific release version
67
+ docker run -p 8080:8080 ghcr.io/modelcontextprotocol/registry:v1.0.0
115
68
 
116
- ### Cursor / Windsurf / Continue / Cline
117
-
118
- Same config block — these clients all read the same MCP format:
119
-
120
- ```json
121
- {
122
- "mcpServers": {
123
- "agentweb": {
124
- "command": "npx",
125
- "args": ["-y", "agentweb-mcp"],
126
- "env": {
127
- "AGENTWEB_API_KEY": "aw_live_your_key_here"
128
- }
129
- }
130
- }
131
- }
69
+ # Run development build from main branch
70
+ docker run -p 8080:8080 ghcr.io/modelcontextprotocol/registry:main-20250906-abc123d
132
71
  ```
133
72
 
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
73
+ **Available tags:**
74
+ - **Releases**: `latest`, `v1.0.0`, `v1.1.0`, etc.
75
+ - **Continuous**: `main` (latest main branch build)
76
+ - **Development**: `main-<date>-<sha>` (specific commit builds)
168
77
 
169
- ### `agentweb_health`
78
+ </details>
170
79
 
171
- Service health, total business count, country count, and community contribution stats.
80
+ #### Publishing a server
172
81
 
173
- ### `agentweb_capabilities` 🆕
82
+ To publish a server, we've built a simple CLI. You can use it with:
174
83
 
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.
176
-
177
- ### `agentweb_leaderboard`
178
-
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."
219
-
220
- **Self-discovery agent:**
221
- > "What can AgentWeb do?"
222
- > *Agent calls `agentweb_capabilities`, gets back the full machine-readable API description.*
84
+ ```bash
85
+ # Build the latest CLI
86
+ make publisher
223
87
 
224
- ## The substrate
88
+ # Use it!
89
+ ./bin/mcp-publisher --help
90
+ ```
225
91
 
226
- AgentWeb is the **substrate of the agent web**. Read more in the [manifesto](https://agentweb.live/manifesto).
92
+ See [the publisher guide](./docs/modelcontextprotocol-io/quickstart.mdx) for more details.
227
93
 
228
- Beyond MCP, every business is also reachable as:
94
+ #### Other commands
229
95
 
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)
96
+ ```bash
97
+ # Run lint, unit tests and integration tests
98
+ make check
99
+ ```
233
100
 
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.
101
+ There are also a few more helpful commands for development. Run `make help` to learn more, or look in [Makefile](./Makefile).
235
102
 
236
- ## Data sources
103
+ <!--
104
+ For Claude and other AI tools: Always prefer make targets over custom commands where possible.
105
+ -->
237
106
 
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 |
107
+ ## Architecture
244
108
 
245
- No Google Places, no Foursquare, no scraping of paid APIs.
109
+ ### Project Structure
246
110
 
247
- ## Discovery / well-known endpoints
111
+ ```
112
+ ├── cmd/ # Application entry points
113
+ │ └── publisher/ # Server publishing tool
114
+ ├── data/ # Seed data
115
+ ├── deploy/ # Deployment configuration (Pulumi)
116
+ ├── docs/ # Documentation
117
+ ├── internal/ # Private application code
118
+ │ ├── api/ # HTTP handlers and routing
119
+ │ ├── auth/ # Authentication (GitHub OAuth, JWT, namespace blocking)
120
+ │ ├── config/ # Configuration management
121
+ │ ├── database/ # Data persistence (PostgreSQL)
122
+ │ ├── service/ # Business logic
123
+ │ ├── telemetry/ # Metrics and monitoring
124
+ │ └── validators/ # Input validation
125
+ ├── pkg/ # Public packages
126
+ │ ├── api/ # API types and structures
127
+ │ │ └── v0/ # Version 0 API types
128
+ │ └── model/ # Data models for server.json
129
+ ├── scripts/ # Development and testing scripts
130
+ ├── tests/ # Integration tests
131
+ └── tools/ # CLI tools and utilities
132
+ └── validate-*.sh # Schema validation tools
133
+ ```
248
134
 
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
135
+ ### Authentication
260
136
 
261
- ## Development
137
+ Publishing supports multiple authentication methods:
138
+ - **GitHub OAuth** - For publishing by logging into GitHub
139
+ - **GitHub OIDC** - For publishing from GitHub Actions
140
+ - **DNS verification** - For proving ownership of a domain and its subdomains
141
+ - **HTTP verification** - For proving ownership of a domain
262
142
 
263
- ```bash
264
- git clone https://github.com/zerabic/agentweb-mcp.git
265
- cd agentweb-mcp
266
- npm install
267
- npm run build
268
- ```
143
+ The registry validates namespace ownership when publishing. E.g. to publish...:
144
+ - `io.github.domdomegg/my-cool-mcp` you must login to GitHub as `domdomegg`, or be in a GitHub Action on domdomegg's repos
145
+ - `me.adamjones/my-cool-mcp` you must prove ownership of `adamjones.me` via DNS or HTTP challenge
269
146
 
270
- ## Support
147
+ ## Community Projects
271
148
 
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
149
+ Check out [community projects](docs/community-projects.md) to explore notable registry-related work created by the community.
275
150
 
276
- ## License
151
+ ## More documentation
277
152
 
278
- MIT
153
+ See the [documentation](./docs) for more details if your question has not been answered here!
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.4.0",
50
+ version: "1.6.0",
51
51
  }, {
52
52
  capabilities: {
53
53
  tools: {},
@@ -128,13 +128,13 @@ class AgentWebServer {
128
128
  },
129
129
  {
130
130
  name: "get_business",
131
- description: "Fetch a single business by UUID. Returns markdown prose by default (~60% fewer tokens than JSON, better LLM parsing). Use this when you already have a business ID from a previous search. Set format='json' if you need structured data.",
131
+ description: "Fetch a single business by slug or UUID. Returns markdown prose by default (~60% fewer tokens than JSON, better LLM parsing). Slugs look like 'noma-copenhagen-abc12345' — human-readable, shareable URLs. Use this when you already have an identifier from a previous search. Set format='json' if you need structured data.",
132
132
  inputSchema: {
133
133
  type: "object",
134
134
  properties: {
135
135
  id: {
136
136
  type: "string",
137
- description: "The unique business ID (UUID) from AgentWeb",
137
+ description: "The business slug (e.g. 'noma-copenhagen-abc12345') or UUID from AgentWeb. Slugs are preferred — they appear in search results and are shareable.",
138
138
  },
139
139
  format: {
140
140
  type: "string",
@@ -254,6 +254,93 @@ 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
+ },
257
344
  ];
258
345
  }
259
346
  async makeApiRequest(endpoint, params = {}) {
@@ -269,7 +356,7 @@ class AgentWebServer {
269
356
  const response = await fetch(url.toString(), {
270
357
  headers: {
271
358
  "X-API-Key": this.config.apiKey,
272
- "User-Agent": "agentweb-mcp/1.4.0",
359
+ "User-Agent": "agentweb-mcp/1.6.0",
273
360
  },
274
361
  });
275
362
  if (!response.ok) {
@@ -294,7 +381,7 @@ class AgentWebServer {
294
381
  headers: {
295
382
  "X-API-Key": this.config.apiKey,
296
383
  "Accept": "text/markdown",
297
- "User-Agent": "agentweb-mcp/1.4.0",
384
+ "User-Agent": "agentweb-mcp/1.6.0",
298
385
  },
299
386
  });
300
387
  if (!response.ok) {
@@ -309,7 +396,7 @@ class AgentWebServer {
309
396
  headers: {
310
397
  "Content-Type": "application/json",
311
398
  "X-API-Key": this.config.apiKey,
312
- "User-Agent": "agentweb-mcp/1.4.0",
399
+ "User-Agent": "agentweb-mcp/1.6.0",
313
400
  },
314
401
  body: JSON.stringify(body),
315
402
  });
@@ -364,25 +451,34 @@ class AgentWebServer {
364
451
  };
365
452
  }
366
453
  case "get_business": {
367
- if (!args.id) {
368
- throw new Error("Business ID is required");
454
+ // Accept either a slug (e.g. "noma-copenhagen-abc12345") or a UUID.
455
+ // The new /v1/b/{id} endpoint transparently resolves both.
456
+ const identifier = args.id || args.slug;
457
+ if (!identifier) {
458
+ throw new Error("Business identifier is required (pass `id` as a slug or UUID)");
369
459
  }
370
- // Default to prose format. Hit /v1/r/{id}/agent.md for the markdown.
371
- // Opt into JSON with format: "json".
372
460
  const wantsJson = args.format === "json";
373
461
  if (wantsJson) {
374
462
  let data;
375
463
  try {
376
- data = await this.makeApiRequest(`/v1/r/${args.id}`);
464
+ data = await this.makeApiRequest(`/v1/b/${identifier}`);
377
465
  }
378
466
  catch (e) {
379
- data = await this.makeApiRequest(`/v1/business/${args.id}`);
467
+ // Fallback to legacy UUID endpoint
468
+ data = await this.makeApiRequest(`/v1/r/${identifier}`);
380
469
  }
381
470
  return {
382
471
  content: [{ type: "text", text: JSON.stringify(data, null, 2) }],
383
472
  };
384
473
  }
385
- const markdown = await this.makeApiRequestText(`/v1/r/${args.id}/agent.md`);
474
+ // Prose format ~60% fewer tokens, better LLM parsing
475
+ let markdown;
476
+ try {
477
+ markdown = await this.makeApiRequestText(`/v1/b/${identifier}/agent.md`);
478
+ }
479
+ catch (e) {
480
+ markdown = await this.makeApiRequestText(`/v1/r/${identifier}/agent.md`);
481
+ }
386
482
  return {
387
483
  content: [{ type: "text", text: markdown }],
388
484
  };
@@ -466,6 +562,54 @@ class AgentWebServer {
466
562
  ],
467
563
  };
468
564
  }
565
+ case "suggest": {
566
+ if (!args.q || args.q.length < 2) {
567
+ throw new Error("Query 'q' is required and must be at least 2 characters");
568
+ }
569
+ const data = await this.makeApiRequest("/v1/suggest", {
570
+ q: args.q,
571
+ type: args.type ?? "business",
572
+ country: args.country,
573
+ limit: args.limit ?? 10,
574
+ });
575
+ return {
576
+ content: [{ type: "text", text: JSON.stringify(data, null, 2) }],
577
+ };
578
+ }
579
+ case "batch_get_businesses": {
580
+ if (!args.ids) {
581
+ throw new Error("'ids' is required — comma-separated business IDs or slugs");
582
+ }
583
+ const wantsJson = args.format === "json" || args.format === "short";
584
+ if (wantsJson) {
585
+ const data = await this.makeApiRequest("/v1/batch", {
586
+ ids: args.ids,
587
+ format: args.format,
588
+ });
589
+ return {
590
+ content: [{ type: "text", text: JSON.stringify(data, null, 2) }],
591
+ };
592
+ }
593
+ const markdown = await this.makeApiRequestText("/v1/batch", {
594
+ ids: args.ids,
595
+ format: "text",
596
+ });
597
+ return {
598
+ content: [{ type: "text", text: markdown }],
599
+ };
600
+ }
601
+ case "trending_businesses": {
602
+ const data = await this.makeApiRequest("/v1/trending", {
603
+ period: args.period ?? "24h",
604
+ category: args.category,
605
+ city: args.city,
606
+ country: args.country,
607
+ limit: args.limit ?? 10,
608
+ });
609
+ return {
610
+ content: [{ type: "text", text: JSON.stringify(data, null, 2) }],
611
+ };
612
+ }
469
613
  default:
470
614
  throw new Error(`Unknown tool: ${name}`);
471
615
  }
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,MAAM,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IAC3D,IAAI,MAAM;QAAE,OAAO,MAAM,CAAC;IAE1B,MAAM,OAAO,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IAC/C,uBAAuB;IACvB,IAAI,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC;QAAE,OAAO,OAAO,CAAC;IAExD,IAAI,CAAC;QACH,IAAI,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;YACzB,MAAM,QAAQ,GAAG,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC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
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. 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).",
9
+ "description": "MCP server for AgentWeb.live — the agent-native registry. 11M+ businesses across 250+ countries. 11 tools: search, get, batch, suggest, trending, contribute, report + meta. Returns markdown prose by default (~60% fewer tokens). Free API key (1,000 reads/day, instant signup). Agent self-install via agentweb.live/install.md.",
10
10
  "main": "dist/index.js",
11
11
  "type": "module",
12
12
  "bin": {