mcp-timely
A read-only MCP server for querying Timely time tracking data, providing tools for project overviews, time spent summaries, and work log entries.
README
mcp-timely
MCP server for Timely time tracking — built for asking questions, not wrapping endpoints. Three read-only tools, each answered in a single upstream call with Timely doing the aggregation server-side, so an LLM never pages through raw entries to sum hours (and never gets the sum wrong).
| Tool | The question it answers |
|---|---|
projects_overview |
What's on my plate? — projects with client, logged hours, budget burn, unbilled amounts |
time_spent |
Where did my time go? — date-range rollups grouped by project, client, label, or day, with billable split |
work_log |
What did I actually do? — individual entries with notes for a range; standup/diary/invoicing material |
Scope is deliberate: read-only, and always scoped to the authorized user. There are no write tools and no user/team parameters.
Setup
-
Create a Timely OAuth app at
https://app.timelyapp.com/<account>/oauth_applicationswith callback URLurn:ietf:wg:oauth:2.0:oob. -
Configure
cp .env.example .env # fill in TIMELY_CLIENT_ID and TIMELY_CLIENT_SECRET -
Authorize (once)
uv sync uv run mcp-timely authOpen the printed URL, authorize, paste the code. Tokens land in
TIMELY_TOKEN_FILE(defaulttimely_tokens.json) and refresh themselves from then on. -
Add to Claude Code
claude mcp add timely -- uv run --directory /path/to/mcp-timely mcp-timely
Token handling
Timely rotates refresh tokens on every refresh and its access tokens carry no expiry. The session layer uses the access token until a 401, then refreshes once — persisting the new pair atomically before continuing — and retries the request once. The token file is the only state; keep it on a persistent volume in Docker. Re-authorization is only needed if the grant is revoked.
HTTP deployment
Set TRANSPORT=http and MCP_API_KEY (the server refuses to start
unauthenticated HTTP). Serves streamable-http on /mcp, liveness on
/health. See compose.yaml.
Development
uv run pytest # unit tests (in-memory MCP client, no network)
uv run ruff check .
Releases
Every push to main that touches non-doc files releases automatically: tests
and a security audit run, the patch version bumps, a vX.Y.Z tag lands, and a
multi-arch image is published to ghcr.io/caseyro/mcp-timely. Consequences:
- Don't edit
versioninpyproject.tomlby hand — CI owns it. - Add
[skip ci]to a commit message to skip a release. - Rebase PRs on
mainbefore merging so the auto-bump commit doesn't race yours. - Markdown-only and test-only changes don't trigger a release.
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.