workspace-mcp 1.0.0__py3-none-any.whl → 1.0.1__py3-none-any.whl
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.
- core/server.py +3 -10
- main.py +1 -1
- workspace_mcp-1.0.1.dist-info/METADATA +419 -0
- {workspace_mcp-1.0.0.dist-info → workspace_mcp-1.0.1.dist-info}/RECORD +8 -8
- workspace_mcp-1.0.0.dist-info/METADATA +0 -29
- {workspace_mcp-1.0.0.dist-info → workspace_mcp-1.0.1.dist-info}/WHEEL +0 -0
- {workspace_mcp-1.0.0.dist-info → workspace_mcp-1.0.1.dist-info}/entry_points.txt +0 -0
- {workspace_mcp-1.0.0.dist-info → workspace_mcp-1.0.1.dist-info}/licenses/LICENSE +0 -0
- {workspace_mcp-1.0.0.dist-info → workspace_mcp-1.0.1.dist-info}/top_level.txt +0 -0
core/server.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import logging
|
2
2
|
import os
|
3
|
-
from typing import
|
3
|
+
from typing import Optional
|
4
4
|
from importlib import metadata
|
5
5
|
|
6
6
|
from fastapi import Header
|
@@ -86,18 +86,17 @@ async def health_check(request: Request):
|
|
86
86
|
"""Health check endpoint for container orchestration."""
|
87
87
|
from fastapi.responses import JSONResponse
|
88
88
|
try:
|
89
|
-
version = metadata.version("
|
89
|
+
version = metadata.version("workspace-mcp")
|
90
90
|
except metadata.PackageNotFoundError:
|
91
91
|
version = "dev"
|
92
92
|
return JSONResponse({
|
93
93
|
"status": "healthy",
|
94
|
-
"service": "
|
94
|
+
"service": "workspace-mcp",
|
95
95
|
"version": version,
|
96
96
|
"transport": _current_transport_mode
|
97
97
|
})
|
98
98
|
|
99
99
|
|
100
|
-
# Register OAuth callback as a custom route
|
101
100
|
@server.custom_route("/oauth2callback", methods=["GET"])
|
102
101
|
async def oauth2_callback(request: Request) -> HTMLResponse:
|
103
102
|
"""
|
@@ -105,8 +104,6 @@ async def oauth2_callback(request: Request) -> HTMLResponse:
|
|
105
104
|
This endpoint exchanges the authorization code for credentials and saves them.
|
106
105
|
It then displays a success or error page to the user.
|
107
106
|
"""
|
108
|
-
# State is used by google-auth-library for CSRF protection and should be present.
|
109
|
-
# We don't need to track it ourselves in this simplified flow.
|
110
107
|
state = request.query_params.get("state")
|
111
108
|
code = request.query_params.get("code")
|
112
109
|
error = request.query_params.get("error")
|
@@ -122,7 +119,6 @@ async def oauth2_callback(request: Request) -> HTMLResponse:
|
|
122
119
|
return create_error_response(error_message)
|
123
120
|
|
124
121
|
try:
|
125
|
-
# Use the centralized CONFIG_CLIENT_SECRETS_PATH
|
126
122
|
client_secrets_path = CONFIG_CLIENT_SECRETS_PATH
|
127
123
|
if not os.path.exists(client_secrets_path):
|
128
124
|
logger.error(f"OAuth client secrets file not found at {client_secrets_path}")
|
@@ -207,13 +203,10 @@ async def start_google_auth(
|
|
207
203
|
if not ensure_oauth_callback_available(_current_transport_mode, WORKSPACE_MCP_PORT, WORKSPACE_MCP_BASE_URI):
|
208
204
|
raise Exception("Failed to start OAuth callback server. Please try again.")
|
209
205
|
|
210
|
-
# Use the centralized start_auth_flow from auth.google_auth
|
211
206
|
auth_result = await start_auth_flow(
|
212
207
|
mcp_session_id=mcp_session_id,
|
213
208
|
user_google_email=user_google_email,
|
214
209
|
service_name=service_name,
|
215
210
|
redirect_uri=redirect_uri
|
216
211
|
)
|
217
|
-
|
218
|
-
# auth_result is now a plain string, not a CallToolResult
|
219
212
|
return auth_result
|
main.py
CHANGED
@@ -57,7 +57,7 @@ def main():
|
|
57
57
|
print("=" * 35)
|
58
58
|
print("📋 Server Information:")
|
59
59
|
try:
|
60
|
-
version = metadata.version("
|
60
|
+
version = metadata.version("workspace-mcp")
|
61
61
|
except metadata.PackageNotFoundError:
|
62
62
|
version = "dev"
|
63
63
|
print(f" 📦 Version: {version}")
|
@@ -0,0 +1,419 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: workspace-mcp
|
3
|
+
Version: 1.0.1
|
4
|
+
Summary: Comprehensive, highly performant Google Workspace Streamable HTTP & SSE MCP Server for Calendar, Gmail, Docs, Sheets, Slides & Drive
|
5
|
+
Author-email: Taylor Wilsdon <taylor@taylorwilsdon.com>
|
6
|
+
License: MIT
|
7
|
+
Project-URL: Homepage, https://workspacemcp.com
|
8
|
+
Project-URL: Repository, https://github.com/taylorwilsdon/google_workspace_mcp
|
9
|
+
Project-URL: Documentation, https://github.com/taylorwilsdon/google_workspace_mcp#readme
|
10
|
+
Project-URL: Issues, https://github.com/taylorwilsdon/google_workspace_mcp/issues
|
11
|
+
Project-URL: Changelog, https://github.com/taylorwilsdon/google_workspace_mcp/releases
|
12
|
+
Keywords: mcp,google,workspace,llm,ai,claude,model,context,protocol,server
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
14
|
+
Classifier: Environment :: Console
|
15
|
+
Classifier: Intended Audience :: Developers
|
16
|
+
Classifier: License :: OSI Approved :: MIT License
|
17
|
+
Classifier: Natural Language :: English
|
18
|
+
Classifier: Operating System :: OS Independent
|
19
|
+
Classifier: Programming Language :: Python
|
20
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
21
|
+
Classifier: Programming Language :: Python :: 3.11
|
22
|
+
Classifier: Programming Language :: Python :: 3.12
|
23
|
+
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
|
24
|
+
Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
|
25
|
+
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
|
26
|
+
Classifier: Topic :: Communications :: Chat
|
27
|
+
Classifier: Topic :: Office/Business
|
28
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
29
|
+
Classifier: Typing :: Typed
|
30
|
+
Requires-Python: >=3.11
|
31
|
+
Description-Content-Type: text/markdown
|
32
|
+
License-File: LICENSE
|
33
|
+
Requires-Dist: fastapi>=0.115.12
|
34
|
+
Requires-Dist: fastmcp>=2.3.3
|
35
|
+
Requires-Dist: google-api-python-client>=2.168.0
|
36
|
+
Requires-Dist: google-auth-httplib2>=0.2.0
|
37
|
+
Requires-Dist: google-auth-oauthlib>=1.2.2
|
38
|
+
Requires-Dist: httpx>=0.28.1
|
39
|
+
Requires-Dist: tomlkit
|
40
|
+
Dynamic: license-file
|
41
|
+
|
42
|
+
<div align="center">
|
43
|
+
|
44
|
+
# Google Workspace MCP Server <img src="https://github.com/user-attachments/assets/b89524e4-6e6e-49e6-ba77-00d6df0c6e5c" width="80" align="right" />
|
45
|
+
|
46
|
+
[](https://opensource.org/licenses/MIT)
|
47
|
+
[](https://www.python.org/downloads/)
|
48
|
+
[](https://pypi.org/project/workspace-mcp/)
|
49
|
+
[](https://github.com/astral-sh/uv)
|
50
|
+
[](https://workspacemcp.com)
|
51
|
+
|
52
|
+
**The world's most feature-complete Google Workspace MCP server**
|
53
|
+
|
54
|
+
*Connect MCP Clients, AI assistants and developer tools to Google Calendar, Drive, Gmail, Docs, Sheets, Slides, Forms, and Chat*
|
55
|
+
|
56
|
+
</div>
|
57
|
+
|
58
|
+
<div align="center">
|
59
|
+
<a href="https://glama.ai/mcp/servers/@taylorwilsdon/google_workspace_mcp">
|
60
|
+
<img width="195" src="https://glama.ai/mcp/servers/@taylorwilsdon/google_workspace_mcp/badge" alt="Google Workspace Server MCP server" align="center"/>
|
61
|
+
</a>
|
62
|
+
<a href="https://www.pulsemcp.com/servers/taylorwilsdon-google-workspace">
|
63
|
+
<img width="456" src="https://github.com/user-attachments/assets/0794ef1a-dc1c-447d-9661-9c704d7acc9d" align="center"/>
|
64
|
+
</a>
|
65
|
+
</div>
|
66
|
+
|
67
|
+
---
|
68
|
+
|
69
|
+
|
70
|
+
**See it in action:**
|
71
|
+
<div align="center">
|
72
|
+
<video width="832" src="https://github.com/user-attachments/assets/a342ebb4-1319-4060-a974-39d202329710"></video>
|
73
|
+
</div>
|
74
|
+
|
75
|
+
---
|
76
|
+
|
77
|
+
|
78
|
+
## 🌐 Overview
|
79
|
+
|
80
|
+
A production-ready MCP server that integrates all major Google Workspace services with AI assistants. Built with FastMCP for optimal performance, featuring advanced authentication handling, service caching, and streamlined development patterns.
|
81
|
+
|
82
|
+
## ✨ Features
|
83
|
+
|
84
|
+
- **🔐 Advanced OAuth 2.0**: Secure authentication with automatic token refresh, transport-aware callback handling, session management, and centralized scope management
|
85
|
+
- **📅 Google Calendar**: Full calendar management with event CRUD operations
|
86
|
+
- **📁 Google Drive**: File operations with native Microsoft Office format support (.docx, .xlsx)
|
87
|
+
- **📧 Gmail**: Complete email management with search, send, and draft capabilities
|
88
|
+
- **📄 Google Docs**: Document operations including content extraction and creation
|
89
|
+
- **📊 Google Sheets**: Comprehensive spreadsheet management with flexible cell operations
|
90
|
+
- **🖼️ Google Slides**: Presentation management with slide creation, updates, and content manipulation
|
91
|
+
- **📝 Google Forms**: Form creation, retrieval, publish settings, and response management
|
92
|
+
- **💬 Google Chat**: Space management and messaging capabilities
|
93
|
+
- **🔄 Multiple Transports**: HTTP with SSE fallback, OpenAPI compatibility via `mcpo`
|
94
|
+
- **⚡ High Performance**: Service caching, thread-safe sessions, FastMCP integration
|
95
|
+
- **🧩 Developer Friendly**: Minimal boilerplate, automatic service injection, centralized configuration
|
96
|
+
|
97
|
+
---
|
98
|
+
|
99
|
+
## 🚀 Quick Start
|
100
|
+
|
101
|
+
### Simplest Start (uvx - Recommended)
|
102
|
+
|
103
|
+
Run instantly without installation:
|
104
|
+
|
105
|
+
```bash
|
106
|
+
# Start the server with all Google Workspace tools
|
107
|
+
uvx workspace-mcp
|
108
|
+
|
109
|
+
# Start with specific tools only
|
110
|
+
uvx workspace-mcp --tools gmail drive calendar
|
111
|
+
|
112
|
+
# Start in HTTP mode for debugging
|
113
|
+
uvx workspace-mcp --transport streamable-http
|
114
|
+
```
|
115
|
+
|
116
|
+
*Requires Python 3.11+ and [uvx](https://github.com/astral-sh/uv). The package is available on [PyPI](https://pypi.org/project/workspace-mcp).*
|
117
|
+
|
118
|
+
### Development Installation
|
119
|
+
|
120
|
+
For development or customization:
|
121
|
+
|
122
|
+
```bash
|
123
|
+
git clone https://github.com/taylorwilsdon/google_workspace_mcp.git
|
124
|
+
cd google_workspace_mcp
|
125
|
+
uv run main.py
|
126
|
+
```
|
127
|
+
|
128
|
+
### Prerequisites
|
129
|
+
|
130
|
+
- **Python 3.11+**
|
131
|
+
- **[uvx](https://github.com/astral-sh/uv)** (for instant installation) or [uv](https://github.com/astral-sh/uv) (for development)
|
132
|
+
- **Google Cloud Project** with OAuth 2.0 credentials
|
133
|
+
|
134
|
+
### Configuration
|
135
|
+
|
136
|
+
1. **Google Cloud Setup**:
|
137
|
+
- Create OAuth 2.0 credentials (web application) in [Google Cloud Console](https://console.cloud.google.com/)
|
138
|
+
- Enable APIs: Calendar, Drive, Gmail, Docs, Sheets, Slides, Forms, Chat
|
139
|
+
- Download credentials as `client_secret.json` in project root
|
140
|
+
- Add redirect URI: `http://localhost:8000/oauth2callback`
|
141
|
+
|
142
|
+
2. **Environment**:
|
143
|
+
```bash
|
144
|
+
export OAUTHLIB_INSECURE_TRANSPORT=1 # Development only
|
145
|
+
```
|
146
|
+
|
147
|
+
3. **Server Configuration**:
|
148
|
+
The server's base URL and port can be customized using environment variables:
|
149
|
+
- `WORKSPACE_MCP_BASE_URI`: Sets the base URI for the server (default: http://localhost). This affects the server_url used for Gemini native function calling and the OAUTH_REDIRECT_URI.
|
150
|
+
- `WORKSPACE_MCP_PORT`: Sets the port the server listens on (default: 8000). This affects the server_url, port, and OAUTH_REDIRECT_URI.
|
151
|
+
|
152
|
+
### Start the Server
|
153
|
+
|
154
|
+
```bash
|
155
|
+
# Default (stdio mode for MCP clients)
|
156
|
+
uv run main.py
|
157
|
+
|
158
|
+
# HTTP mode (for web interfaces and debugging)
|
159
|
+
uv run main.py --transport streamable-http
|
160
|
+
|
161
|
+
# Single-user mode (simplified authentication)
|
162
|
+
uv run main.py --single-user
|
163
|
+
|
164
|
+
# Selective tool registration (only register specific tools)
|
165
|
+
uv run main.py --tools gmail drive calendar
|
166
|
+
uv run main.py --tools sheets docs
|
167
|
+
uv run main.py --single-user --tools gmail # Can combine with other flags
|
168
|
+
|
169
|
+
# Docker
|
170
|
+
docker build -t workspace-mcp .
|
171
|
+
docker run -p 8000:8000 -v $(pwd):/app workspace-mcp --transport streamable-http
|
172
|
+
```
|
173
|
+
|
174
|
+
**Available Tools for `--tools` flag**: `gmail`, `drive`, `calendar`, `docs`, `sheets`, `forms`, `chat`
|
175
|
+
|
176
|
+
### Connect to Claude Desktop
|
177
|
+
|
178
|
+
The server supports two transport modes:
|
179
|
+
|
180
|
+
#### Stdio Mode (Default - Recommended for Claude Desktop)
|
181
|
+
**Option 1: Auto-install (Recommended)**
|
182
|
+
```bash
|
183
|
+
python install_claude.py
|
184
|
+
```
|
185
|
+
|
186
|
+
**Option 2: Manual Configuration**
|
187
|
+
1. Open Claude Desktop Settings → Developer → Edit Config
|
188
|
+
2. This creates/opens the config file at:
|
189
|
+
- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
|
190
|
+
- **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
|
191
|
+
3. Add the server configuration:
|
192
|
+
|
193
|
+
```json
|
194
|
+
{
|
195
|
+
"mcpServers": {
|
196
|
+
"google_workspace": {
|
197
|
+
"command": "uvx",
|
198
|
+
"args": ["workspace-mcp"]
|
199
|
+
}
|
200
|
+
}
|
201
|
+
}
|
202
|
+
```
|
203
|
+
|
204
|
+
**Alternative (Development Installation)**:
|
205
|
+
```json
|
206
|
+
{
|
207
|
+
"mcpServers": {
|
208
|
+
"google_workspace": {
|
209
|
+
"command": "uv",
|
210
|
+
"args": ["run", "main.py"],
|
211
|
+
"cwd": "/path/to/google_workspace_mcp"
|
212
|
+
}
|
213
|
+
}
|
214
|
+
}
|
215
|
+
```
|
216
|
+
|
217
|
+
#### HTTP Mode (For debugging or web interfaces)
|
218
|
+
If you need to use HTTP mode with Claude Desktop:
|
219
|
+
|
220
|
+
```json
|
221
|
+
{
|
222
|
+
"mcpServers": {
|
223
|
+
"google_workspace": {
|
224
|
+
"command": "npx",
|
225
|
+
"args": ["mcp-remote", "http://localhost:8000/mcp"]
|
226
|
+
}
|
227
|
+
}
|
228
|
+
}
|
229
|
+
```
|
230
|
+
|
231
|
+
*Note: Make sure to start the server with `--transport streamable-http` when using HTTP mode.*
|
232
|
+
|
233
|
+
### First-Time Authentication
|
234
|
+
|
235
|
+
The server features **transport-aware OAuth callback handling**:
|
236
|
+
|
237
|
+
- **Stdio Mode**: Automatically starts a minimal HTTP server on port 8000 for OAuth callbacks
|
238
|
+
- **HTTP Mode**: Uses the existing FastAPI server for OAuth callbacks
|
239
|
+
- **Same OAuth Flow**: Both modes use `http://localhost:8000/oauth2callback` for consistency
|
240
|
+
|
241
|
+
When calling a tool:
|
242
|
+
1. Server returns authorization URL
|
243
|
+
2. Open URL in browser and authorize
|
244
|
+
3. Server handles OAuth callback automatically (on port 8000 in both modes)
|
245
|
+
4. Retry the original request
|
246
|
+
|
247
|
+
---
|
248
|
+
|
249
|
+
## 🧰 Available Tools
|
250
|
+
|
251
|
+
> **Note**: All tools support automatic authentication via `@require_google_service()` decorators with 30-minute service caching.
|
252
|
+
|
253
|
+
### 📅 Google Calendar ([`calendar_tools.py`](gcalendar/calendar_tools.py))
|
254
|
+
|
255
|
+
| Tool | Description |
|
256
|
+
|------|-------------|
|
257
|
+
| `list_calendars` | List accessible calendars |
|
258
|
+
| `get_events` | Retrieve events with time range filtering |
|
259
|
+
| `create_event` | Create events (all-day or timed) |
|
260
|
+
| `modify_event` | Update existing events |
|
261
|
+
| `delete_event` | Remove events |
|
262
|
+
|
263
|
+
### 📁 Google Drive ([`drive_tools.py`](gdrive/drive_tools.py))
|
264
|
+
|
265
|
+
| Tool | Description |
|
266
|
+
|------|-------------|
|
267
|
+
| `search_drive_files` | Search files with query syntax |
|
268
|
+
| `get_drive_file_content` | Read file content (supports Office formats) |
|
269
|
+
| `list_drive_items` | List folder contents |
|
270
|
+
| `create_drive_file` | Create new files |
|
271
|
+
|
272
|
+
### 📧 Gmail ([`gmail_tools.py`](gmail/gmail_tools.py))
|
273
|
+
|
274
|
+
| Tool | Description |
|
275
|
+
|------|-------------|
|
276
|
+
| `search_gmail_messages` | Search with Gmail operators |
|
277
|
+
| `get_gmail_message_content` | Retrieve message content |
|
278
|
+
| `send_gmail_message` | Send emails |
|
279
|
+
| `draft_gmail_message` | Create drafts |
|
280
|
+
|
281
|
+
### 📝 Google Docs ([`docs_tools.py`](gdocs/docs_tools.py))
|
282
|
+
|
283
|
+
| Tool | Description |
|
284
|
+
|------|-------------|
|
285
|
+
| `search_docs` | Find documents by name |
|
286
|
+
| `get_doc_content` | Extract document text |
|
287
|
+
| `list_docs_in_folder` | List docs in folder |
|
288
|
+
| `create_doc` | Create new documents |
|
289
|
+
|
290
|
+
### 📊 Google Sheets ([`sheets_tools.py`](gsheets/sheets_tools.py))
|
291
|
+
|
292
|
+
| Tool | Description |
|
293
|
+
|------|-------------|
|
294
|
+
| `list_spreadsheets` | List accessible spreadsheets |
|
295
|
+
| `get_spreadsheet_info` | Get spreadsheet metadata |
|
296
|
+
| `read_sheet_values` | Read cell ranges |
|
297
|
+
| `modify_sheet_values` | Write/update/clear cells |
|
298
|
+
| `create_spreadsheet` | Create new spreadsheets |
|
299
|
+
| `create_sheet` | Add sheets to existing files |
|
300
|
+
|
301
|
+
### 📝 Google Forms ([`forms_tools.py`](gforms/forms_tools.py))
|
302
|
+
|
303
|
+
| Tool | Description |
|
304
|
+
|------|-------------|
|
305
|
+
| `create_form` | Create new forms with title and description |
|
306
|
+
| `get_form` | Retrieve form details, questions, and URLs |
|
307
|
+
| `set_publish_settings` | Configure form template and authentication settings |
|
308
|
+
| `get_form_response` | Get individual form response details |
|
309
|
+
| `list_form_responses` | List all responses to a form with pagination |
|
310
|
+
|
311
|
+
### 💬 Google Chat ([`chat_tools.py`](gchat/chat_tools.py))
|
312
|
+
|
313
|
+
| Tool | Description |
|
314
|
+
|------|-------------|
|
315
|
+
| `list_spaces` | List chat spaces/rooms |
|
316
|
+
| `get_messages` | Retrieve space messages |
|
317
|
+
| `send_message` | Send messages to spaces |
|
318
|
+
| `search_messages` | Search across chat history |
|
319
|
+
|
320
|
+
---
|
321
|
+
|
322
|
+
## 🛠️ Development
|
323
|
+
|
324
|
+
### Project Structure
|
325
|
+
|
326
|
+
```
|
327
|
+
google_workspace_mcp/
|
328
|
+
├── auth/ # Authentication system with decorators
|
329
|
+
├── core/ # MCP server and utilities
|
330
|
+
├── g{service}/ # Service-specific tools
|
331
|
+
├── main.py # Server entry point
|
332
|
+
├── client_secret.json # OAuth credentials (not committed)
|
333
|
+
└── pyproject.toml # Dependencies
|
334
|
+
```
|
335
|
+
|
336
|
+
### Adding New Tools
|
337
|
+
|
338
|
+
```python
|
339
|
+
from auth.service_decorator import require_google_service
|
340
|
+
|
341
|
+
@require_google_service("drive", "drive_read") # Service + scope group
|
342
|
+
async def your_new_tool(service, param1: str, param2: int = 10):
|
343
|
+
"""Tool description"""
|
344
|
+
# service is automatically injected and cached
|
345
|
+
result = service.files().list().execute()
|
346
|
+
return result # Return native Python objects
|
347
|
+
```
|
348
|
+
|
349
|
+
### Architecture Highlights
|
350
|
+
|
351
|
+
- **Service Caching**: 30-minute TTL reduces authentication overhead
|
352
|
+
- **Scope Management**: Centralized in `SCOPE_GROUPS` for easy maintenance
|
353
|
+
- **Error Handling**: Native exceptions instead of manual error construction
|
354
|
+
- **Multi-Service Support**: `@require_multiple_services()` for complex tools
|
355
|
+
|
356
|
+
---
|
357
|
+
|
358
|
+
## 🔒 Security
|
359
|
+
|
360
|
+
- **Credentials**: Never commit `client_secret.json` or `.credentials/` directory
|
361
|
+
- **OAuth Callback**: Uses `http://localhost:8000/oauth2callback` for development (requires `OAUTHLIB_INSECURE_TRANSPORT=1`)
|
362
|
+
- **Transport-Aware Callbacks**: Stdio mode starts a minimal HTTP server only for OAuth, ensuring callbacks work in all modes
|
363
|
+
- **Production**: Use HTTPS for callback URIs and configure accordingly
|
364
|
+
- **Network Exposure**: Consider authentication when using `mcpo` over networks
|
365
|
+
- **Scope Minimization**: Tools request only necessary permissions
|
366
|
+
|
367
|
+
---
|
368
|
+
|
369
|
+
## 🌐 Integration with Open WebUI
|
370
|
+
|
371
|
+
To use this server as a tool provider within Open WebUI:
|
372
|
+
|
373
|
+
### 1. Create MCPO Configuration
|
374
|
+
|
375
|
+
Create a file named `config.json` with the following structure to have `mcpo` make the streamable HTTP endpoint available as an OpenAPI spec tool:
|
376
|
+
|
377
|
+
```json
|
378
|
+
{
|
379
|
+
"mcpServers": {
|
380
|
+
"google_workspace": {
|
381
|
+
"type": "streamablehttp",
|
382
|
+
"url": "http://localhost:8000/mcp"
|
383
|
+
}
|
384
|
+
}
|
385
|
+
}
|
386
|
+
```
|
387
|
+
|
388
|
+
### 2. Start the MCPO Server
|
389
|
+
|
390
|
+
```bash
|
391
|
+
mcpo --port 8001 --config config.json --api-key "your-optional-secret-key"
|
392
|
+
```
|
393
|
+
|
394
|
+
This command starts the `mcpo` proxy, serving your active (assuming port 8000) Google Workspace MCP on port 8001.
|
395
|
+
|
396
|
+
### 3. Configure Open WebUI
|
397
|
+
|
398
|
+
1. Navigate to your Open WebUI settings
|
399
|
+
2. Go to **"Connections"** → **"Tools"**
|
400
|
+
3. Click **"Add Tool"**
|
401
|
+
4. Enter the **Server URL**: `http://localhost:8001/google_workspace` (matching the mcpo base URL and server name from config.json)
|
402
|
+
5. If you used an `--api-key` with mcpo, enter it as the **API Key**
|
403
|
+
6. Save the configuration
|
404
|
+
|
405
|
+
The Google Workspace tools should now be available when interacting with models in Open WebUI.
|
406
|
+
|
407
|
+
---
|
408
|
+
|
409
|
+
## 📄 License
|
410
|
+
|
411
|
+
MIT License - see `LICENSE` file for details.
|
412
|
+
|
413
|
+
---
|
414
|
+
|
415
|
+
<div align="center">
|
416
|
+
<img width="810" alt="Gmail Integration" src="https://github.com/user-attachments/assets/656cea40-1f66-40c1-b94c-5a2c900c969d" />
|
417
|
+
<img width="810" alt="Calendar Management" src="https://github.com/user-attachments/assets/d3c2a834-fcca-4dc5-8990-6d6dc1d96048" />
|
418
|
+
<img width="842" alt="Batch Emails" src="https://github.com/user-attachments/assets/0876c789-7bcc-4414-a144-6c3f0aaffc06" />
|
419
|
+
</div>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
main.py,sha256=
|
1
|
+
main.py,sha256=XyaLV966wM6yOa5eOfTBdOMnOh0p9P4jJjdBVTUFYp8,6812
|
2
2
|
auth/__init__.py,sha256=gPCU3GE-SLy91S3D3CbX-XfKBm6hteK_VSPKx7yjT5s,42
|
3
3
|
auth/google_auth.py,sha256=OdKFI7kW-R0peZutv9VXCnDvxH5jAtbeFYiXK9sxqjQ,25998
|
4
4
|
auth/oauth_callback_server.py,sha256=-vaaLO9f7oz6QsHUXjRFHjlEleFm0Y9ccBB33YX22wQ,9177
|
@@ -6,7 +6,7 @@ auth/oauth_responses.py,sha256=qbirSB4d7mBRKcJKqGLrJxRAPaLHqObf9t-VMAq6UKA,7020
|
|
6
6
|
auth/scopes.py,sha256=kMRdFN0wLyipFkp7IitTHs-M6zhZD-oieVd7fylueBc,3320
|
7
7
|
auth/service_decorator.py,sha256=jux1Fboa_ncau_5XcGekSpuD1USPvmIpDu9hNBA15Vk,15267
|
8
8
|
core/__init__.py,sha256=AHVKdPl6v4lUFm2R-KuGuAgEmCyfxseMeLGtntMcqCs,43
|
9
|
-
core/server.py,sha256=
|
9
|
+
core/server.py,sha256=WqAIIiH6X4ZsvgTiMc1NRsMNjUpfmXGdkMn-zbbyCds,9440
|
10
10
|
core/utils.py,sha256=Xsc2E0LSQl-tjcC95CtnmNFTJi8K8iwJvTUIjbRtu4o,8830
|
11
11
|
gcalendar/__init__.py,sha256=D5fSdAwbeomoaj7XAdxSnIy-NVKNkpExs67175bOtfc,46
|
12
12
|
gcalendar/calendar_tools.py,sha256=ptS_iyi6JBPhstbdPnRD5ruZtKzkAEbfaimiPabYLTo,20982
|
@@ -24,9 +24,9 @@ gsheets/__init__.py,sha256=jFfhD52w_EOVw6N5guf_dIc9eP2khW_eS9UAPJg_K3k,446
|
|
24
24
|
gsheets/sheets_tools.py,sha256=mZU7kf3kRRhjz406rDBlVtwNMAjye2F81W1cveXlBFY,14481
|
25
25
|
gslides/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
26
26
|
gslides/slides_tools.py,sha256=NAkApdjkX7GtZRksy7fLmjmbsa1khkeAJKNN6NZe0t8,11846
|
27
|
-
workspace_mcp-1.0.
|
28
|
-
workspace_mcp-1.0.
|
29
|
-
workspace_mcp-1.0.
|
30
|
-
workspace_mcp-1.0.
|
31
|
-
workspace_mcp-1.0.
|
32
|
-
workspace_mcp-1.0.
|
27
|
+
workspace_mcp-1.0.1.dist-info/licenses/LICENSE,sha256=bB8L7rIyRy5o-WHxGgvRuY8hUTzNu4h3DTkvyV8XFJo,1070
|
28
|
+
workspace_mcp-1.0.1.dist-info/METADATA,sha256=7xOYlcGo0RdTYPheXxdYDkFzeY4ijbPXzUrXVWmvjOc,15178
|
29
|
+
workspace_mcp-1.0.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
30
|
+
workspace_mcp-1.0.1.dist-info/entry_points.txt,sha256=kPiEfOTuf-ptDM0Rf2OlyrFudGW7hCZGg4MCn2Foxs4,44
|
31
|
+
workspace_mcp-1.0.1.dist-info/top_level.txt,sha256=Y8mAkTitLNE2zZEJ-DbqR9R7Cs1V1MMf-UploVdOvlw,73
|
32
|
+
workspace_mcp-1.0.1.dist-info/RECORD,,
|
@@ -1,29 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.4
|
2
|
-
Name: workspace-mcp
|
3
|
-
Version: 1.0.0
|
4
|
-
Summary: Comprehensive, highly performant Google Workspace Streamable HTTP & SSE MCP Server for Calendar, Gmail, Docs, Sheets, Slides & Drive
|
5
|
-
Author-email: Taylor Wilsdon <taylor@taylorwilsdon.com>
|
6
|
-
License-Expression: MIT
|
7
|
-
Keywords: mcp,google,workspace,llm,ai,claude,model,context,protocol,server
|
8
|
-
Classifier: Development Status :: 4 - Beta
|
9
|
-
Classifier: Environment :: Console
|
10
|
-
Classifier: Intended Audience :: Developers
|
11
|
-
Classifier: Natural Language :: English
|
12
|
-
Classifier: Operating System :: OS Independent
|
13
|
-
Classifier: Programming Language :: Python
|
14
|
-
Classifier: Programming Language :: Python :: 3 :: Only
|
15
|
-
Classifier: Programming Language :: Python :: 3.11
|
16
|
-
Classifier: Programming Language :: Python :: 3.12
|
17
|
-
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
|
18
|
-
Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
|
19
|
-
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
|
20
|
-
Classifier: Typing :: Typed
|
21
|
-
Requires-Python: >=3.11
|
22
|
-
License-File: LICENSE
|
23
|
-
Requires-Dist: fastapi>=0.115.12
|
24
|
-
Requires-Dist: fastmcp>=2.3.3
|
25
|
-
Requires-Dist: google-api-python-client>=2.168.0
|
26
|
-
Requires-Dist: google-auth-httplib2>=0.2.0
|
27
|
-
Requires-Dist: google-auth-oauthlib>=1.2.2
|
28
|
-
Requires-Dist: httpx>=0.28.1
|
29
|
-
Dynamic: license-file
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|