Workspace MCP Server
Provides tools to introspect databases, query documents, run aggregations, and perform full-text search on MongoDB collections.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Workspace MCP Serverlist open tasks in sprint 23"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Workspace MCP Server
An MCP (Model Context Protocol) server that gives AI agents read-time access to workspace databases and project management APIs.
Built with FastMCP, this service acts as a universal data gateway — allowing any MCP-compatible agent (Claude Desktop, Copilot, custom orchestrators) to introspect, query, and correlate business data without writing integration code.
Architecture & Stack Rationale
Why MCP + FastMCP?
Model Context Protocol is the emerging standard for connecting LLMs to external tools and data. Instead of building one-off function calls or plugin APIs per agent, MCP provides a single, typed interface that any compliant LLM can discover and invoke at runtime.
FastMCP was chosen over raw
mcpSDK because it eliminates boilerplate: tools are plain Python functions with a decorator — no JSON-RPC wire protocol handling, no manual capability negotiation.The SSE (Server-Sent Events) transport allows long-lived connections from agents running in browsers, desktop apps, or cloud functions, and is trivially load-balanced behind Knative or any HTTP ingress.
┌──────────────────────┐ MCP/SSE ┌──────────────────────────────┐
│ AI Agent │ ◄──────────────► │ Workspace MCP Server │
│ (Claude, Copilot…) │ │ ├─ Database Tools (Mongo) │
└──────────────────────┘ │ └─ API Tools (REST) │
└──────────────────────────────┘Why MongoDB for Workspace Data?
Workspace applications produce semi-structured, schema-flexible data — project documents, task metadata, user activity logs, and configuration records. MongoDB's document model:
Handles polymorphic schemas without migrations (different document types emit different fields).
Provides native aggregation pipelines for reporting and analytics (counts, grouping, windowed stats).
Supports text indexes for full-text search across notes, descriptions, and logs.
The
analyze_databasetool gives AI agents runtime introspection — they discover collections, field types, and indexes on their own, without hardcoded schemas.
Why a Dedicated Project Management API Adapter?
The project management REST API tracks tickets, tasks, projects, and users. Rather than exposing raw HTTP to the LLM (security risk + prompt overhead), the server wraps the API with:
Managed authentication — supports both Bearer token and Basic Auth; credentials never leak into the agent conversation.
Structured error boundaries — non-2xx responses are captured and returned as strings, never as raw stack traces.
Metadata tools (
get_metadata,get_custom_fields) that let the agent self-discover valid enum values and custom field IDs — no hardcoding, no "I don't know what statuses exist."
Why Knative + Kubernetes for Deployment?
Production workloads demand zero-downtime updates and automatic scaling:
Requirement | Solution |
Scale to zero when idle | Knative Serving auto-scales down to 0 replicas |
Per-environment isolation | Kubernetes Namespace separation |
Secret rotation | Pre-deployment |
Canary rollouts | Knative revision traffic splitting |
The deploy_kn.sh script handles the full lifecycle: Docker build, image push to private registry, Kubernetes Secret upsert, and Knative Service apply — all in a single idempotent command.
Tools Overview
Database (MongoDB)
Tool | Purpose |
| Introspect databases, collections, indexes, and inferred schemas |
| Peek at documents from any collection |
| Distinct values and frequency for a field |
| Filtered queries with projection and sort |
| MongoDB aggregation pipelines |
| Document count matching a filter |
| Full-text search across documents |
Project Management API (REST)
Tool | Purpose |
| Verify API connectivity and return caller identity |
| List all accessible projects |
| Query items by structured condition |
| Full detail — linked items, references, comments |
| Discover valid priorities, statuses, categories, projects |
| Resolve users by name or email |
| List custom fields with API IDs |
Quick Start
pip install -r requirements.txt
cp .env.example .env
# Edit WORKSPACE_MONGO_URI, API_TOKEN, API_SITE_ID
python server.pyServer starts on http://0.0.0.0:8080 with SSE transport. Connect any MCP client to http://host:8080/sse.
Environment Variables
Variable | Description |
| MongoDB connection string |
| Project management API token |
| Email for Basic Auth (omit for Bearer token) |
| API instance URL |
| Site ID (preferred over auto-resolve) |
| HTTP server port (default |
Docker
docker build -t workspace-mcp .
docker run -p 8080:8080 --env-file .env workspace-mcpDeployment
export AGENT_NAME=workspace-mcp
export DEPLOYMENT_CONTEXT=workspace
bash deploy.shRequires: Docker, kubectl (with Knative Serving installed), access to a container registry, and a .env.workspace file with deployment-specific variables (registry, namespace, pull secret, credentials).
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sudenlee/workspace-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server