@cablate/mcp-google-map 0.0.15 β†’ 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -16,6 +16,7 @@ Special thanks to [@junyinnnn](https://github.com/junyinnnn) for helping add sup
16
16
  ## βœ… Testing Status
17
17
 
18
18
  **This MCP server has been tested and verified to work correctly with:**
19
+
19
20
  - Claude Desktop
20
21
  - Dive Desktop
21
22
  - MCP protocol implementations
@@ -27,14 +28,17 @@ All tools and features are confirmed functional through real-world testing.
27
28
  ### πŸ—ΊοΈ Google Maps Integration
28
29
 
29
30
  - **Location Search**
31
+
30
32
  - Search for places near a specific location with customizable radius and filters
31
33
  - Get detailed place information including ratings, opening hours, and contact details
32
34
 
33
35
  - **Geocoding Services**
36
+
34
37
  - Convert addresses to coordinates (geocoding)
35
38
  - Convert coordinates to addresses (reverse geocoding)
36
39
 
37
40
  - **Distance & Directions**
41
+
38
42
  - Calculate distances and travel times between multiple origins and destinations
39
43
  - Get detailed turn-by-turn directions between two points
40
44
  - Support for different travel modes (driving, walking, bicycling, transit)
@@ -51,43 +55,94 @@ All tools and features are confirmed functional through real-world testing.
51
55
 
52
56
  ## Installation
53
57
 
54
- ### 1. via NPM
58
+ > ⚠️ **Important Notice**: This server uses HTTP transport, not stdio. Direct npx usage in MCP Server Settings is **NOT supported**.
59
+
60
+ ### Method 1: Global Installation (Recommended)
55
61
 
56
62
  ```bash
63
+ # Install globally
57
64
  npm install -g @cablate/mcp-google-map
65
+
66
+ # Run the server
67
+ mcp-google-map --port 3000 --apikey "your_api_key_here"
68
+
69
+ # Using short options
70
+ mcp-google-map -p 3000 -k "your_api_key_here"
58
71
  ```
59
72
 
60
- ### 2. Run the Server
73
+ ### Method 2: Using npx (Quick Start)
74
+
75
+ > ⚠️ **Warning**: Cannot be used directly in MCP Server Settings with stdio mode
76
+
77
+ **Step 1: Launch HTTP Server in Terminal**
61
78
 
62
79
  ```bash
80
+ # Run in a separate terminal
81
+ npx @cablate/mcp-google-map --port 3000 --apikey "YOUR_API_KEY"
63
82
 
64
- mcp-google-map --port 3000 --apikey "your_api_key_here"
83
+ # Or with environment variable
84
+ GOOGLE_MAPS_API_KEY=YOUR_API_KEY npx @cablate/mcp-google-map
85
+ ```
65
86
 
66
- # Using short options
67
- mcp-google-map -p 3000 -k "your_api_key_here"
87
+ **Step 2: Configure MCP Client to Use HTTP**
68
88
 
69
- # Show help information
70
- mcp-google-map --help
89
+ ```json
90
+ {
91
+ "mcp-google-map": {
92
+ "transport": "http",
93
+ "url": "http://localhost:3000/mcp"
94
+ }
95
+ }
71
96
  ```
72
97
 
73
- ### 3. Server Endpoints
98
+ ### ❌ Common Mistake to Avoid
74
99
 
75
- - **Main MCP Endpoint**: `http://localhost:3000/mcp`
76
- - **Available Tools**: 8 tools including Google Maps services and echo
100
+ ```json
101
+ // This WILL NOT WORK - stdio mode not supported with npx
102
+ {
103
+ "mcp-google-map": {
104
+ "command": "npx",
105
+ "args": ["@cablate/mcp-google-map"]
106
+ }
107
+ }
108
+ ```
77
109
 
78
- ### Environment Variables
110
+ ### Server Information
79
111
 
80
- Alternatively, create a `.env` file in your working directory:
112
+ - **Endpoint**: `http://localhost:3000/mcp`
113
+ - **Transport**: HTTP (not stdio)
114
+ - **Tools**: 8 Google Maps tools available
81
115
 
82
- ```env
83
- # Required
84
- GOOGLE_MAPS_API_KEY=your_google_maps_api_key_here
116
+ ### API Key Configuration
85
117
 
86
- # Optional
87
- MCP_SERVER_PORT=3000
88
- ```
118
+ API keys can be provided in three ways (priority order):
119
+
120
+ 1. **HTTP Headers** (Highest priority)
121
+
122
+ ```json
123
+ // MCP Client config
124
+ {
125
+ "mcp-google-map": {
126
+ "transport": "streamableHttp",
127
+ "url": "http://localhost:3000/mcp",
128
+ "headers": {
129
+ "X-Google-Maps-API-Key": "YOUR_API_KEY"
130
+ }
131
+ }
132
+ }
133
+ ```
89
134
 
90
- **Note**: Command line options take precedence over environment variables.
135
+ 2. **Command Line**
136
+
137
+ ```bash
138
+ mcp-google-map --apikey YOUR_API_KEY
139
+ ```
140
+
141
+ 3. **Environment Variable** (.env file or command line)
142
+ ```env
143
+ GOOGLE_MAPS_API_KEY=your_api_key_here
144
+ MCP_SERVER_PORT=3000
145
+ ```
91
146
 
92
147
  ## Available Tools
93
148
 
@@ -192,7 +247,15 @@ If you have any questions or suggestions, feel free to reach out:
192
247
 
193
248
  ## Changelog
194
249
 
250
+ ### v0.0.15 (Latest)
251
+
252
+ - **Added HTTP Header Authentication**: Support for passing API keys via `X-Google-Maps-API-Key` header in MCP Client config
253
+ - **Fixed Concurrent User Issues**: Each session now uses its own API key without conflicts
254
+ - **Fixed npx Execution**: Resolved module bundling issues
255
+ - **Improved Documentation**: Clearer setup instructions
256
+
195
257
  ### v0.0.5
258
+
196
259
  - Added streamable HTTP transport support
197
260
  - Improved CLI interface with emoji indicators
198
261
  - Enhanced error handling and logging
@@ -200,6 +263,7 @@ If you have any questions or suggestions, feel free to reach out:
200
263
  - Updated to latest MCP SDK version
201
264
 
202
265
  ### v0.0.4
266
+
203
267
  - Initial release with basic Google Maps integration
204
268
  - Support for location search, geocoding, and directions
205
269
  - Compatible with MCP protocol
@@ -0,0 +1 @@
1
+ var r={log:(...o)=>{console.error("[INFO]",...o)},error:(...o)=>{console.error("[ERROR]",...o)}};export{r as a};