agentweb-mcp 1.0.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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 AgentWeb MCP
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,190 @@
1
+ # AgentWeb MCP Server
2
+
3
+ MCP (Model Context Protocol) server for [AgentWeb.live](https://agentweb.live) — a free business directory API with 11M+ businesses across 195 countries.
4
+
5
+ ## What It Does
6
+
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
11
+
12
+ ## Installation
13
+
14
+ ### Quick Start with npx
15
+
16
+ The easiest way to use this server is with `npx`:
17
+
18
+ ```bash
19
+ npx agentweb-mcp
20
+ ```
21
+
22
+ ### Or Install Globally
23
+
24
+ ```bash
25
+ npm install -g agentweb-mcp
26
+ agentweb-mcp
27
+ ```
28
+
29
+ ## Getting an API Key
30
+
31
+ You need a free API key from AgentWeb:
32
+
33
+ 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_...`)
36
+
37
+ ## Configuration
38
+
39
+ ### Claude Desktop
40
+
41
+ Add this to your `claude_desktop_config.json`:
42
+
43
+ **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
44
+ **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
45
+
46
+ ```json
47
+ {
48
+ "mcpServers": {
49
+ "agentweb": {
50
+ "command": "npx",
51
+ "args": ["-y", "agentweb-mcp"],
52
+ "env": {
53
+ "AGENTWEB_API_KEY": "aw_live_your_key_here"
54
+ }
55
+ }
56
+ }
57
+ }
58
+ ```
59
+
60
+ ### Cursor / Windsurf
61
+
62
+ Add to your MCP settings file:
63
+
64
+ ```json
65
+ {
66
+ "mcpServers": {
67
+ "agentweb": {
68
+ "command": "npx",
69
+ "args": ["-y", "agentweb-mcp"],
70
+ "env": {
71
+ "AGENTWEB_API_KEY": "aw_live_your_key_here"
72
+ }
73
+ }
74
+ }
75
+ }
76
+ ```
77
+
78
+ ### Alternative: Pass API Key as Argument
79
+
80
+ ```json
81
+ {
82
+ "mcpServers": {
83
+ "agentweb": {
84
+ "command": "npx",
85
+ "args": ["-y", "agentweb-mcp", "aw_live_your_key_here"]
86
+ }
87
+ }
88
+ }
89
+ ```
90
+
91
+ ## Available Tools
92
+
93
+ ### 1. `search_businesses`
94
+
95
+ Search for businesses in the AgentWeb directory.
96
+
97
+ **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
107
+
108
+ **Note**: At least one of `q`, `category`, or `lat+lng` is required.
109
+
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"
114
+
115
+ ### 2. `get_business`
116
+
117
+ Get full details for a specific business by ID.
118
+
119
+ **Parameters:**
120
+ - `id` (string, required): The unique business ID from AgentWeb
121
+
122
+ **Example:**
123
+ - "Get details for business ID abc123"
124
+
125
+ ### 3. `agentweb_health`
126
+
127
+ Check the health status of the AgentWeb API.
128
+
129
+ **Parameters:** None
130
+
131
+ **Returns:** API status, total businesses count, and countries available.
132
+
133
+ ## Example Usage
134
+
135
+ After configuring the server, you can ask Claude:
136
+
137
+ ```
138
+ Find Italian restaurants in San Francisco
139
+ ```
140
+
141
+ ```
142
+ Search for dentists near me in Chicago
143
+ ```
144
+
145
+ ```
146
+ Get contact information for coffee shops in Seattle
147
+ ```
148
+
149
+ ## Development
150
+
151
+ ### Build from Source
152
+
153
+ ```bash
154
+ git clone <repository>
155
+ cd agentweb-mcp
156
+ npm install
157
+ npm run build
158
+ ```
159
+
160
+ ### Run in Development Mode
161
+
162
+ ```bash
163
+ npm run dev
164
+ ```
165
+
166
+ ### Project Structure
167
+
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
+ ```
177
+
178
+ ## API Documentation
179
+
180
+ For full API documentation, visit [AgentWeb API Docs](https://agentweb.live).
181
+
182
+ ## Support
183
+
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)
187
+
188
+ ## License
189
+
190
+ MIT
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
package/dist/index.js ADDED
@@ -0,0 +1,207 @@
1
+ #!/usr/bin/env node
2
+ import { Server } from "@modelcontextprotocol/sdk/server/index.js";
3
+ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
4
+ import { CallToolRequestSchema, ListToolsRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
5
+ const API_BASE_URL = "https://api.agentweb.live";
6
+ class AgentWebServer {
7
+ server;
8
+ config;
9
+ constructor(config) {
10
+ this.config = config;
11
+ this.server = new Server({
12
+ name: "agentweb-mcp",
13
+ version: "1.0.0",
14
+ }, {
15
+ capabilities: {
16
+ tools: {},
17
+ },
18
+ });
19
+ this.setupHandlers();
20
+ this.setupErrorHandling();
21
+ }
22
+ setupErrorHandling() {
23
+ this.server.onerror = (error) => {
24
+ console.error("[MCP Error]", error);
25
+ };
26
+ process.on("SIGINT", async () => {
27
+ await this.server.close();
28
+ process.exit(0);
29
+ });
30
+ }
31
+ setupHandlers() {
32
+ this.server.setRequestHandler(ListToolsRequestSchema, async () => ({
33
+ tools: this.getTools(),
34
+ }));
35
+ this.server.setRequestHandler(CallToolRequestSchema, async (request) => this.handleToolCall(request));
36
+ }
37
+ getTools() {
38
+ return [
39
+ {
40
+ name: "search_businesses",
41
+ description: "Search for businesses in the AgentWeb directory. Search by text query, category, location (city/country or lat/lng with radius). Returns business info including name, address, phone, email, website, hours, and more.",
42
+ inputSchema: {
43
+ type: "object",
44
+ properties: {
45
+ q: {
46
+ type: "string",
47
+ description: "Text search query (business name, keywords, etc.)",
48
+ },
49
+ category: {
50
+ type: "string",
51
+ description: "Business category filter (e.g., 'restaurant', 'hotel')",
52
+ },
53
+ city: {
54
+ type: "string",
55
+ description: "City name for location filter",
56
+ },
57
+ country: {
58
+ type: "string",
59
+ description: "Country code (ISO 3166-1 alpha-2, e.g., 'US', 'GB')",
60
+ },
61
+ lat: {
62
+ type: "number",
63
+ description: "Latitude for geographic search (requires lng and radius_km)",
64
+ },
65
+ lng: {
66
+ type: "number",
67
+ description: "Longitude for geographic search (requires lat and radius_km)",
68
+ },
69
+ radius_km: {
70
+ type: "number",
71
+ description: "Search radius in kilometers (used with lat/lng)",
72
+ },
73
+ limit: {
74
+ type: "number",
75
+ description: "Maximum number of results to return (default: 10, max: 50)",
76
+ default: 10,
77
+ },
78
+ offset: {
79
+ type: "number",
80
+ description: "Number of results to skip for pagination",
81
+ default: 0,
82
+ },
83
+ },
84
+ },
85
+ },
86
+ {
87
+ name: "get_business",
88
+ description: "Get full details for a specific business by its ID. Returns complete business information including all available fields.",
89
+ inputSchema: {
90
+ type: "object",
91
+ properties: {
92
+ id: {
93
+ type: "string",
94
+ description: "The unique business ID from AgentWeb",
95
+ },
96
+ },
97
+ required: ["id"],
98
+ },
99
+ },
100
+ {
101
+ name: "agentweb_health",
102
+ description: "Check the health status of the AgentWeb API, including total number of businesses and countries available.",
103
+ inputSchema: {
104
+ type: "object",
105
+ properties: {},
106
+ },
107
+ },
108
+ ];
109
+ }
110
+ async makeApiRequest(endpoint, params = {}) {
111
+ const url = new URL(`${API_BASE_URL}${endpoint}`);
112
+ // Add non-null params to query string
113
+ Object.entries(params).forEach(([key, value]) => {
114
+ if (value !== undefined && value !== null) {
115
+ url.searchParams.append(key, String(value));
116
+ }
117
+ });
118
+ // Add API key
119
+ url.searchParams.append("api_key", this.config.apiKey);
120
+ const response = await fetch(url.toString());
121
+ if (!response.ok) {
122
+ const errorText = await response.text();
123
+ throw new Error(`AgentWeb API error (${response.status}): ${errorText}`);
124
+ }
125
+ return await response.json();
126
+ }
127
+ async handleToolCall(request) {
128
+ const { name, arguments: args } = request.params;
129
+ try {
130
+ switch (name) {
131
+ case "search_businesses": {
132
+ const data = await this.makeApiRequest("/v1/search", args);
133
+ return {
134
+ content: [
135
+ {
136
+ type: "text",
137
+ text: JSON.stringify(data, null, 2),
138
+ },
139
+ ],
140
+ };
141
+ }
142
+ case "get_business": {
143
+ if (!args.id) {
144
+ throw new Error("Business ID is required");
145
+ }
146
+ const data = await this.makeApiRequest(`/v1/business/${args.id}`);
147
+ return {
148
+ content: [
149
+ {
150
+ type: "text",
151
+ text: JSON.stringify(data, null, 2),
152
+ },
153
+ ],
154
+ };
155
+ }
156
+ case "agentweb_health": {
157
+ const data = await this.makeApiRequest("/v1/health");
158
+ return {
159
+ content: [
160
+ {
161
+ type: "text",
162
+ text: JSON.stringify(data, null, 2),
163
+ },
164
+ ],
165
+ };
166
+ }
167
+ default:
168
+ throw new Error(`Unknown tool: ${name}`);
169
+ }
170
+ }
171
+ catch (error) {
172
+ const errorMessage = error instanceof Error ? error.message : String(error);
173
+ return {
174
+ content: [
175
+ {
176
+ type: "text",
177
+ text: `Error: ${errorMessage}`,
178
+ },
179
+ ],
180
+ isError: true,
181
+ };
182
+ }
183
+ }
184
+ async run() {
185
+ const transport = new StdioServerTransport();
186
+ await this.server.connect(transport);
187
+ console.error("AgentWeb MCP Server running on stdio");
188
+ }
189
+ }
190
+ // Main entry point
191
+ async function main() {
192
+ const apiKey = process.env.AGENTWEB_API_KEY || process.argv[2];
193
+ if (!apiKey) {
194
+ console.error("Error: AGENTWEB_API_KEY environment variable is required");
195
+ console.error("Get your API key at: https://agentweb.live/#signup");
196
+ console.error("\nUsage: AGENTWEB_API_KEY=your_key npx agentweb-mcp");
197
+ console.error(" or: npx agentweb-mcp your_key");
198
+ process.exit(1);
199
+ }
200
+ const server = new AgentWebServer({ apiKey });
201
+ await server.run();
202
+ }
203
+ main().catch((error) => {
204
+ console.error("Fatal error:", error);
205
+ process.exit(1);
206
+ });
207
+ //# sour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AAC;AAClB,CAAC,CAAC,CAAC"}
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "agentweb-mcp",
3
+ "version": "1.0.0",
4
+ "description": "MCP server for AgentWeb.live - Business directory API with 11M+ businesses",
5
+ "main": "dist/index.js",
6
+ "type": "module",
7
+ "bin": {
8
+ "agentweb-mcp": "./dist/index.js"
9
+ },
10
+ "scripts": {
11
+ "build": "tsc",
12
+ "prepare": "npm run build",
13
+ "dev": "tsc --watch"
14
+ },
15
+ "keywords": [
16
+ "mcp",
17
+ "model-context-protocol",
18
+ "agentweb",
19
+ "business-directory",
20
+ "api"
21
+ ],
22
+ "author": "",
23
+ "license": "MIT",
24
+ "dependencies": {
25
+ "@modelcontextprotocol/sdk": "^1.0.4"
26
+ },
27
+ "devDependencies": {
28
+ "@types/node": "^22.10.2",
29
+ "typescript": "^5.7.2"
30
+ },
31
+ "engines": {
32
+ "node": ">=18"
33
+ }
34
+ }