Hubstaff Server
FreeNot checkedA Model Context Protocol (MCP) server for Hubstaff API integration, enabling seamless time tracking, project management, and team collaboration through AI assis
About
A Model Context Protocol (MCP) server for Hubstaff API integration, enabling seamless time tracking, project management, and team collaboration through AI assistants.
README
A Model Context Protocol (MCP) server for Hubstaff API integration, enabling seamless time tracking, project management, and team collaboration through AI assistants.
Features
- Time Tracking: Create, update, and retrieve time entries
- Project Management: List and manage projects, tasks, and teams
- User Management: Get user information and organization details
- Activity Monitoring: Access screenshots, activities, and productivity data
- Reporting: Generate timesheets and activity reports
Installation
Using uv (recommended)
uv add hubstaff-mcp
Using pip
pip install hubstaff-mcp
Configuration
Before using the server, you need to obtain a Personal Access Token from Hubstaff:
- Log in to your Hubstaff account
- Go to Settings → Personal Access Tokens
- Create a new token with the required permissions
Environment Variables
Set the following environment variable:
export HUBSTAFF_REFRESH_TOKEN="your_personal_access_token_here"
Or create a .env file in your project root:
HUBSTAFF_REFRESH_TOKEN=your_personal_access_token_here
Note: The personal access token is used as a refresh token to obtain temporary access tokens for API calls. This approach provides better security by automatically handling token renewal.
Usage
Running the Server
hubstaff-mcp
Or using uv:
uv run hubstaff-mcp
Configuration with Claude Desktop
Add the following to your Claude Desktop configuration file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
Option 1: Using the installed package (Recommended)
{
"mcpServers": {
"hubstaff": {
"command": "hubstaff-mcp",
"env": {
"HUBSTAFF_REFRESH_TOKEN": "your_personal_access_token_here"
}
}
}
}
Option 2: Using uv with project directory
{
"mcpServers": {
"hubstaff": {
"command": "uv",
"args": [
"--directory",
"/path/to/your/project",
"run",
"hubstaff-mcp"
],
"env": {
"HUBSTAFF_REFRESH_TOKEN": "your_personal_access_token_here"
}
}
}
}
Option 3: Using uv run directly
{
"mcpServers": {
"hubstaff": {
"command": "uv",
"args": ["run", "hubstaff-mcp"],
"env": {
"HUBSTAFF_REFRESH_TOKEN": "your_personal_access_token_here"
}
}
}
}
Available Tools
The server provides the following tools:
Time Management
get_time_entries- Retrieve time entries with filtering optionscreate_time_entry- Create a new time entryupdate_time_entry- Update an existing time entrydelete_time_entry- Delete a time entry
Project & Task Management
get_projects- List all projectsget_project_details- Get detailed project informationget_tasks- List tasks for a projectcreate_task- Create a new taskupdate_task- Update task details
User & Organization
get_current_user- Get current user informationget_users- List organization usersget_organizations- List user organizationsget_teams- List organization teams
Activity & Monitoring
get_activities- Retrieve user activitiesget_screenshots- Get screenshots for time entriesget_timesheets- Generate timesheets
Example Queries
Once configured with Claude Desktop, you can ask:
- "Show me my time entries for this week"
- "Create a new task called 'Update documentation' in the Development project"
- "What projects am I currently working on?"
- "Get my team's activity summary for today"
- "Show me screenshots from my last work session"
Development
Setup
git clone https://github.com/yourusername/hubstaff-mcp
cd hubstaff-mcp
uv sync --dev
Running Tests
uv run pytest
Code Formatting
uv run black .
uv run ruff check .
API Coverage
This MCP server covers the following Hubstaff API endpoints:
- Time Entries
- Projects & Tasks
- Users & Organizations
- Teams
- Activities & Screenshots
- Timesheets
- Notes
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new functionality
- Run the test suite
- Submit a pull request
License
MIT License - see LICENSE file for details.
Support
For issues and questions:
- GitHub Issues: https://github.com/yourusername/hubstaff-mcp/issues
- Hubstaff API Documentation: https://developer.hubstaff.com/docs/hubstaff_v2
Install Hubstaff Server in Claude Desktop, Claude Code & Cursor
unyly install hubstaff-mcp-serverInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add hubstaff-mcp-server -- uvx hubstaff-mcpFAQ
Is Hubstaff Server MCP free?
Yes, Hubstaff Server MCP is free — one-click install via Unyly at no cost.
Does Hubstaff Server need an API key?
No, Hubstaff Server runs without API keys or environment variables.
Is Hubstaff Server hosted or self-hosted?
A hosted option is available: Unyly runs the server in the cloud, no local setup required.
How do I install Hubstaff Server in Claude Desktop, Claude Code or Cursor?
Open Hubstaff Server on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzCompare Hubstaff Server with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
