Optix GraphQL MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Optix GraphQL MCP Server
A specialized Model Context Protocol (MCP) server for Optix workspace management, providing 15+ business-specific tools for coworking spaces, flexible offices, and workspace booking systems.
π Features
π§ Dual-Mode Operation
The server provides 2 base tools for any GraphQL API, plus 19 Optix-specific tools when connected to Optix.
πΉ Base GraphQL Tools (Always Available)
introspect-schema- Get GraphQL schema information for any endpointquery-graphql- Execute custom GraphQL queries with variables
These tools work with any GraphQL API, not just Optix. Perfect for:
Exploring unknown GraphQL schemas
Running custom queries
Debugging API responses
Advanced use cases not covered by specialized tools
Note: While these tools can technically perform any operation, the specialized Optix tools below are faster and more AI-friendly because they:
Complete operations in 1 step vs 2-3 steps
Have clear, simple parameters
Return optimized data structures
Don't require knowledge of GraphQL syntax
π― Optix Business Tools (Auto-enabled for Optix APIs)
When the endpoint contains "optix" or "optixapp.com", 19 specialized tools are automatically loaded:
π Booking Management
optix_list_bookings- List and filter bookingsoptix_get_booking_details- Get comprehensive booking infooptix_check_availability- Check resource availability (defaults to 7 days)optix_get_upcoming_schedule- View schedule with bookings, assignments, blocksoptix_create_bookingπ - Create new bookingsoptix_update_bookingπ - Update booking time or resourceoptix_cancel_bookingπ - Cancel bookings
π₯ Member Management
optix_list_members- Browse all membersoptix_get_member- Get detailed member infooptix_search_members- Search by name, email, or phoneoptix_get_member_stats- Member statistics and breakdownsoptix_create_memberπ - Add new members/leads
π’ Resource Management
optix_list_resources- Browse rooms, desks, and spacesoptix_get_resource_details- Resource info and amenitiesoptix_get_resource_schedule- Detailed availability calendars
πΌ Plans & Organization
optix_list_plan_templates- Browse membership plansoptix_get_plan_template- Plan details and pricingoptix_get_organization_info- Workspace settingsoptix_list_locations- All locationsoptix_get_teams- Teams and organizations
π = Mutation tool (requires ALLOW_MUTATIONS=true)
Related MCP server: mcp-graphql-tools
π Quick Start
Installation
git clone https://github.com/Raulitoflying/optix-graphql-mcp.git
cd optix-graphql-mcp
npm install
npm run buildConfiguration for AI Applications
π₯οΈ Claude Desktop
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"optix": {
"command": "node",
"args": ["/absolute/path/to/optix-graphql-mcp/dist/index.js"],
"env": {
"ENDPOINT": "https://api.optixapp.com/graphql",
"HEADERS": "{\"Authorization\":\"Bearer YOUR_TOKEN\"}",
"ALLOW_MUTATIONS": "false"
}
}
}
}π Cursor
macOS/Linux: ~/.cursor/mcp_config.json
Windows: %USERPROFILE%\.cursor\mcp_config.json
{
"mcpServers": {
"optix": {
"command": "node",
"args": ["/absolute/path/to/optix-graphql-mcp/dist/index.js"],
"env": {
"ENDPOINT": "https://api.optixapp.com/graphql",
"HEADERS": "{\"Authorization\":\"Bearer YOUR_TOKEN\"}",
"ALLOW_MUTATIONS": "false"
}
}
}
}π Windsurf
Similar configuration to Cursor. Check Windsurf's documentation for config file location.
π» VS Code
Install MCP extension, then create .vscode/mcp.json:
{
"mcpServers": {
"optix": {
"command": "node",
"args": ["${workspaceFolder}/../optix-graphql-mcp/dist/index.js"],
"env": {
"ENDPOINT": "https://api.optixapp.com/graphql",
"HEADERS": "{\"Authorization\":\"Bearer YOUR_TOKEN\"}",
"ALLOW_MUTATIONS": "false"
}
}
}
}Important: Replace /absolute/path/to/optix-graphql-mcp with your actual path and YOUR_TOKEN with your Optix API token from Optix Dashboard.
Environment Variables
Variable | Required | Default | Description |
| β | - | GraphQL endpoint URL |
| β | - | HTTP headers as JSON string |
| β |
| Server name |
| β |
| Enable write operations |
| β | - | Local schema file path |
π Mutations (Optional)
Default: Read-only mode (ALLOW_MUTATIONS=false)
15+ read-only tools
Safe for production use
No data modification
Mutations enabled (ALLOW_MUTATIONS=true)
4 additional write tools
Can create/update/cancel bookings
Can create members
β οΈ Security: Only enable mutations when needed and ensure proper authentication.
π¬ Usage Examples
Using Base GraphQL Tools
Explore Any GraphQL API:
"Introspect the schema of this GraphQL endpoint"
Uses introspect-schema to discover available types, queries, and mutations.
Run Custom Queries:
"Query the GraphQL API with this custom query: { users { id name } }"
Uses query-graphql to execute any GraphQL query against the configured endpoint.
Using Optix Business Tools
Check Today's Schedule:
"Show me today's complete schedule"
Uses optix_get_upcoming_schedule
Find Available Rooms:
"Is Conference Room A available tomorrow 2-4 PM?"
Uses optix_check_availability
Search Members:
"Find all members named Sarah"
Uses optix_search_members
Create Booking (requires mutations):
"Book main conference room for John tomorrow 3-5 PM"
Searches member:
optix_search_membersFinds resource:
optix_list_resourcesChecks availability:
optix_check_availabilityCreates booking:
optix_create_booking
π§ Troubleshooting
Server not connecting?
Check the path is absolute (not relative)
Ensure
dist/index.jsexists (runnpm run build)Verify your Optix token is valid
Check config file has valid JSON syntax
Restart the AI application after config changes
Tools not appearing?
Restart the AI application completely
Check server logs for errors
Verify
ENDPOINTpoints tohttps://api.optixapp.com/graphqlEnsure Node.js is installed and accessible
Mutations not working?
Set
ALLOW_MUTATIONS=truein configVerify your Optix token has write permissions
Check mutation is enabled for your Optix account
π§ Development
Scripts
npm run dev # Development with auto-reload
npm run build # Production build
npm run start # Start production server
npm run format # Format code with Biome
npm run check # Check formattingTesting
# Test MCP stdio communication
node test-mcp-stdio.js
# Test business tools
node test-business-tools.js
node test-all-business-tools.js
# Test mutations (requires ALLOW_MUTATIONS=true)
node test-mutation-mode.js
# Test specific features
node test-pagination.js
node test-booking-fixes.jsUsing MCP Inspector
MCP Inspector is a web-based tool for interactively testing MCP servers. It's perfect for:
Testing tools before deploying
Debugging issues
Understanding tool parameters
Viewing real API responses
Setup and Run
# 1. Create your local configuration
cp run-server.sh.example run-server.sh
# 2. Edit run-server.sh and add your Optix token
# Replace YOUR_TOKEN_HERE with your actual token
# 3. Run Inspector
npx @modelcontextprotocol/inspector ./run-server.shThis will:
Start the MCP server with your configuration
Launch Inspector proxy on
http://localhost:6274Open your browser automatically
Using Inspector
Once the browser opens:
View Tools - See all 21 available tools (2 base + 19 Optix) in the left sidebar
Test a Tool - Click any tool to see its parameters
Run Tool - Fill in parameters and click "Run"
View Results - See the JSON response from API
Example Tests:
// Base GraphQL Tools
// introspect-schema - No parameters needed
{}
// query-graphql
{
"query": "{ accounts(limit: 5) { data { account_id name email } } }",
"variables": {}
}
// Optix Business Tools
// optix_list_bookings
{
"days": 7
}
// optix_search_members
{
"query": "John"
}
// optix_check_availability
{
"resourceId": "602411",
"start": "2024-10-08T14:00:00Z",
"end": "2024-10-08T16:00:00Z"
}
// optix_get_upcoming_schedule
{
"days": 1
}Tips:
Use Inspector's JSON editor for complex parameters
Check the Response tab to see full API output
Test mutations in Inspector before using in production
Inspector runs on port 6274 by default
Security Note:
run-server.shis git-ignored because it contains your API token. Never commit files with real tokens!
Project Structure
src/
βββ index.ts # Main MCP server
βββ helpers/
β βββ introspection.ts # Schema discovery
β βββ headers.ts # Auth handling
β βββ execute.ts # GraphQL execution
βββ optix/
βββ queries.ts # Query templates (15+ read + 4 mutations)
βββ tools.ts # Tool definitions
βββ types.ts # TypeScript typesπ€ Contributing
Adding New Tools
Add query to
src/optix/queries.tsDefine types in
src/optix/types.tsImplement tool in
src/optix/tools.ts:Define Zod schema with
.describe()Implement
execute()functionFor mutations, add inside
if (allowMutations)block
Update docs
Example Tool
tools.set("optix_example", {
name: "optix_example",
description: "Example tool description",
inputSchema: z.object({
param: z.string().describe("Parameter description"),
}),
execute: async (args, endpoint, headers) => {
const data = await executeGraphQL(
OPTIX_QUERIES.EXAMPLE,
{ param: args.param },
endpoint,
headers
);
return data.result;
},
});π License
MIT License - see LICENSE
Automation Mapping (Natural Language Examples)
This section explains how to translate natural language requests into automation rules.
Logic Rules
Default: multiple conditions mean AND.
Use groups for OR:
Each group is AND.
Groups are OR.
Example 1: Single condition
Natural language: "Send a message when a user books for the 1st time."
Structure:
trigger_type: NEW_BOOKING
conditions_logic: SINGLE
conditions:
- operation: EQUALS
operands:
- { type: variable, name: NTH_TIME }
- { type: value, value: 1 }
actions:
- SEND_MESSAGEExample 2: AND conditions
Natural language: "If booking source is not drop-in AND this is the 1st booking, send a message."
Structure:
trigger_type: NEW_BOOKING
conditions_logic: AND
conditions:
- operation: DIFF
operands:
- { type: variable, name: BOOKING_SOURCE }
- { type: value, value: Booking::SOURCE_DROP_IN }
- operation: EQUALS
operands:
- { type: variable, name: NTH_TIME }
- { type: value, value: 1 }
actions:
- SEND_MESSAGEExample 3: OR groups
Natural language: "If account source is User app OR Web onboarding, send an email."
Structure:
trigger_type: NEW_UNCONFIRMED_USER
conditions_groups:
- conditions:
- operation: EQUALS
operands:
- { type: variable, name: ACCOUNT_SOURCE }
- { type: value, value: User app }
- conditions:
- operation: EQUALS
operands:
- { type: variable, name: ACCOUNT_SOURCE }
- { type: value, value: Web onboarding }
actions:
- SEND_EMAILExample 4: Date modifier
Natural language: "Send a message 7 days before the oldest unpaid invoice due date."
Structure:
trigger_type: DATE
conditions_logic: SINGLE
conditions:
- operation: EQUALS
operands:
- { type: variable, name: ACCOUNT_MIN_DUE_INVOICE_DUE_DATE }
- { type: variable, name: TRIGGER_DATE, date_modifier: { value: -7, unit: DAY } }
actions:
- SEND_MESSAGEπ Acknowledgments
Built on mcp-graphql
Powered by Model Context Protocol
For Optix workspace management
Made with β€οΈ for the coworking community
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Browse OfficeRnD members, bookings, memberships, invoices and tickets, with optional write access.
Schedule, members, and bookings in your AI tools
Query your OpsLevel internal developer portal: catalog, maturity data, and tech docs.
Lets AI agents analyze API metrics, request logs, and traces, and manage apps and alerts.
Related MCP Servers
- AlicenseAqualityAmaintenanceEnables interaction with AFFiNE workspaces through GraphQL API to manage documents, search content, handle comments, and access version history. Supports comprehensive workspace operations including document publishing, comment management, and user authentication via session cookies or personal access tokens.951,429 npm334MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to execute GraphQL queries and retrieve schema information from any GraphQL endpoint.28MIT
- AlicenseAqualityDmaintenanceProvides comprehensive GraphQL introspection, filtering, and query/mutation execution with safety controls. Enables AI agents to explore and interact with GraphQL APIs through natural language.71MIT
- AlicenseAqualityDmaintenanceProvides GraphQL access to Airtable and Google Sheets data, enabling natural language queries for data exploration, schema introspection, and record management.6MIT