Skip to main content
Grok BuildTimesheet
MCP server

Track Time with Grok Build

  • Paste one prompt and Grok Build adds the Timesheet server itself
  • Sign in once in the browser, no API key to copy
  • Start the timer, log work and pull reports from the terminal
Start your 30-day trial

No credit card required. Cancel anytime.

Timesheet is the time tracker that Grok Build drives through the Timesheet MCP server. Grok Build works as you, so it only reaches the projects and data your Timesheet account can see. Using Grok in the browser or Grok Bot instead? See Grok Bot and Grok. Using another coding agent? See Claude Code or Codex.

How do I connect Timesheet to Grok Build?

Grok Build is an MCP client that can run its own setup commands. Paste the prompt below and Grok adds the hosted Timesheet server to your user configuration. You sign in once with OAuth. For the Timesheet skill and CLI instead, use Option 2.

Option 1 · about a minute

Paste this into Grok Build

Grok adds the server at https://mcp.timesheet.io to ~/.grok/config.toml, so it works in every project. All Timesheet tools, OAuth sign-in.

New message to Grok Build

Connect me to Timesheet so you can track my time. 1. Run: grok mcp add --transport http timesheet https://mcp.timesheet.io 2. Tell me to run /mcps, press r to refresh, select timesheet and press i to sign in to Timesheet in the browser. 3. Then show my running timer and today's hours.

No API key needed. Grok Build opens the Timesheet sign-in in your browser and keeps the token in ~/.grok/mcp_credentials.json.

Option 2 · skill and CLI

Install the Timesheet skill and CLI

The skill tells Grok how to work with Timesheet. It uses the MCP tools when they are there and the Timesheet CLI otherwise. The skills CLI installs it into ~/.grok/skills/.

Run in your terminal
npm install -g @timesheet/cli
timesheet auth login
npx skills add timesheetIO/timesheet-plugin -a grok -g

The CLI needs Node.js 18 or later and signs in through the browser. For scripts, use timesheet auth apikey --set <key> instead.

Ask Grok Build to track time for you

You: Start the timer for Website redesign and note that I'm on the checkout flow.

Grok Build: Started the timer on Website redesign at 09:14 with the note "checkout flow". Say stop when you're done and I'll save the entry.

via Timesheet
Also try
  • What's my timer status?
  • Log 90 minutes on the API refactor for yesterday
  • How many hours did I bill this week?

Step by step

  1. 1Install Grok Build with curl -fsSL https://x.ai/cli/install.sh | bash and run grok in your project
  2. 2Paste the setup prompt, or run the commands from Option 2
  3. 3Run /mcps, select timesheet and press i to approve access to Timesheet in the browser
  4. 4Tell Grok what to start, stop or log. The entries appear in every Timesheet app right away

MCP server vs skill and CLI: what is the difference?

Both reach the same Timesheet account. The MCP server gives Grok tools directly. The skill teaches Grok the Timesheet CLI, which runs as a command in your terminal.

CapabilityMCP server (Option 1)Skill and CLI (Option 2)
How Grok gets itgrok mcp add with the server URLnpx skills add and npm install -g @timesheet/cli
Sign-inOAuth in the browser through /mcpstimesheet auth login in the browser, once
Timer, entries, projects, reportsYes, all Timesheet toolsYes, through CLI commands
Works in scripts and CIOnly with a bearer API key in --headerYes, with timesheet auth apikey --set
Best forAsking in your own wordsTerminal work and automation

Recommendation: Start with the MCP server. Add the skill too if you want Grok to know the Timesheet commands, or if you run Grok in scripts where a browser sign-in is not possible.

What can Grok Build do with Timesheet?

Grok Build already knows what you're working on. With Timesheet connected it can turn that into accurate time entries while the context is fresh.

  • Timer from the terminal

    Start, pause, resume and stop the timer by asking. Grok finds the project by name, so you don't need IDs.

  • Log finished work

    "Log two hours on the migration for this morning" becomes a time entry with the right project, times and description.

  • Hours and reports

    Ask for today's total, the week by project or billable hours, and get the numbers in the session.

  • Exports

    Generate PDF, Excel or CSV exports from your saved templates and send them by email.

  • Uses your other MCP configs

    Grok Build also reads ~/.claude.json, .cursor/mcp.json and .mcp.json. If Timesheet is already set up for Claude Code or Cursor, Grok can use it as well.

  • OAuth, no API key

    Grok signs in through your browser and works as you. Remove the server with grok mcp remove timesheet to disconnect.

How does Grok Build talk to Timesheet?

Grok Build is an MCP client: it connects to tool servers and offers their tools to the model next to its own. The Timesheet MCP server runs at mcp.timesheet.io and exposes your account as tools such as timer_start, task_create, statistics_get and export_generate.

What happens after the prompt

  1. Grok adds the timesheet server to ~/.grok/config.toml
  2. You open /mcps and approve access to Timesheet in the browser
  3. Grok reads the Timesheet tools and your projects
  4. It turns your request into the right tool call, such as starting a timer
  5. The entry is saved to your account and syncs to every Timesheet app
Grok Build + Timesheet
# Add the server (user scope)
grok mcp add --transport http timesheet https://mcp.timesheet.io

# Or share it with the repo in .grok/config.toml
grok mcp add --transport http --scope project \
  timesheet https://mcp.timesheet.io

# ~/.grok/config.toml
[mcp_servers.timesheet]
url = "https://mcp.timesheet.io"

# Check and sign in
grok mcp list
/mcps   # select timesheet, press i

Read more in the MCP server documentation or the Grok Build MCP guide.

What can I ask Grok Build?

Anything you'd tell a colleague who keeps your timesheet. Name the project, the time and what you did.

  • Start of day

    Start where you left off

    “Start the timer for the project I worked on yesterday and tell me how long I worked on it then.”

  • From your repo

    Log the work from the commits

    “Look at my commits since 9am and log the time on Website redesign with a short description of what changed.”

  • End of week

    Review the week

    “Review my timesheet for this week. List gaps, overlaps and entries without a description.”

  • Billing

    Prepare an export

    “Export last month's billable hours for Acme as a PDF and email it to me.”

Grok Build vs Grok vs Grok Bot: which one is this?

SpaceXAI uses the Grok name for the coding agent, the chat assistant and the always-on agent. All three can use Timesheet. This page covers the coding agent.

  • Grok Build

    This page

    The coding agent for the terminal, started with grok. It runs commands, edits files and connects to MCP servers.

  • Grok

    The chat assistant on grok.com. Add Timesheet as a custom connector. See Grok Bot and Grok.

  • Grok Bot

    The always-on agent with its own cloud computer. Add Timesheet under Connect apps. See Grok Bot and Grok.

Using another coding agent? See Claude Code, Codex or Cursor.

Cost, security and troubleshooting

What does it cost?

Connecting Grok Build costs nothing extra on the Timesheet side. The MCP server and the CLI are part of the Pro plan and above. Every plan starts with a 30-day trial, no credit card required.

Compare plans →

How is access secured?

Grok Build signs in with OAuth 2.1 and PKCE. No password or API key goes into a prompt or a config file. Grok can only reach what your Timesheet account can reach. Disconnect with grok mcp remove timesheet.

Something not working?

  • No Timesheet tools: run grok mcp list. If timesheet is listed, open /mcps and press r to refresh.
  • Sign-in error: open /mcps, select timesheet and press i to sign in again. grok mcp doctor timesheet checks the configuration and the connection.
  • Tools show twice: Timesheet is also set up in ~/.claude.json, .cursor/mcp.json or .mcp.json. grok inspect shows where each server comes from. Remove one, or turn off that source with [compat.claude] mcps = false or [compat.cursor] mcps = false.
  • A feature is refused: your plan may not include it. The tool answer links to the plans.

Frequently asked questions

How do I connect Timesheet to Grok Build?

Paste the setup prompt from this page, or run grok mcp add --transport http timesheet https://mcp.timesheet.io yourself. Then open /mcps, select timesheet and sign in to Timesheet in the browser.

Do I need an API key?

No. Grok Build signs in with OAuth in your browser. For CI, add the server with --header "Authorization: Bearer ${TIMESHEET_API_KEY}" and an API key from the web app under Integrations > API Keys.

Can I run the Timesheet server locally instead?

Yes. Run grok mcp add timesheet -- npx -y @timesheet/mcp and set TIMESHEET_API_TOKEN under [mcp_servers.timesheet] in ~/.grok/config.toml. The local server needs Node.js 20 or later and an API key.

I already use Timesheet in Claude Code or Cursor. Do I need to set it up again?

Often not. Grok Build also loads MCP servers from ~/.claude.json, .cursor/mcp.json and .mcp.json. Run grok mcp list to see if timesheet is already there.

Which plan do I need?

The Pro plan or above, because the MCP server uses the Timesheet web platform. Start with a 30-day trial, no credit card required.

Can I share the setup with my team?

Yes. Add the server with --scope project and Grok writes it to .grok/config.toml in the repository. Each person still signs in with their own Timesheet account.

Can Grok Build log time for work it did in the session?

Yes. Ask it to log the time it spent with you, for example "log this session on Website redesign with a summary of what we changed". Grok creates the entry with your project and a description.

Let Grok Build keep your timesheet

One prompt, one sign-in, and your hours are tracked where you already work.

Start your 30-day trial

No credit card required. Cancel anytime.