mite MCP Server

mite MCP Server

Model Context Protocol server for the mite time tracking API, enabling time entries, stopwatch, customers, projects, and services management through natural language.

Category
访问服务器

README

mite MCP Server

Model Context Protocol server for the mite time tracking API.

mite – Simple time tracking for teams

Prerequisites

  • Node.js 18+
  • mite account with API access enabled
  • mite API key (recommended) or email/password

Installation

npm install -g @marceloemmerich/mite-mcp

Or use directly with npx:

npx @marceloemmerich/mite-mcp

Configuration

For Development

  1. Copy .env.example to .env:

    cp .env.example .env
    
  2. Edit .env and fill in your credentials:

    MITE_ACCOUNT_NAME=your-account-name
    MITE_API_KEY=your-api-key
    

For Production

Set the following environment variables:

# Required
MITE_ACCOUNT_NAME=your-account-name

# Authentication (use one of these)
MITE_API_KEY=your-api-key  # Recommended

# OR
MITE_EMAIL=your-email@example.com
MITE_PASSWORD=your-password

Getting your mite API Key

  1. Log into your mite account
  2. Go to Settings > My User
  3. Under "API Key", click "Display API Key"
  4. Copy the key and set it as MITE_API_KEY

Available Tools

Time Entries

  • list_time_entries - List time entries with optional filters
  • get_daily_time_entries - Get time entries for today or a specific date
  • get_time_entry - Get a specific time entry by ID
  • create_time_entry - Create a new time entry
  • update_time_entry - Update an existing time entry
  • delete_time_entry - Delete a time entry

Stopwatch

  • get_stopwatch_status - Get current stopwatch status
  • start_stopwatch - Start tracking time for an entry
  • stop_stopwatch - Stop the currently running stopwatch
  • quick_start_stopwatch - Create and start tracking a new entry

Customers

  • list_customers - List active or archived customers
  • get_customer - Get a specific customer
  • create_customer - Create a new customer (admin only)
  • update_customer - Update a customer (admin only)
  • delete_customer - Delete a customer (admin only)

Projects

  • list_projects - List active or archived projects
  • get_project - Get a specific project
  • create_project - Create a new project (admin only)
  • update_project - Update a project (admin only)
  • delete_project - Delete a project (admin only)

Services

  • list_services - List active or archived services
  • get_service - Get a specific service
  • create_service - Create a new service (admin only)
  • update_service - Update a service (admin only)
  • delete_service - Delete a service (admin only)

Usage

MCP Server Modes

The mite MCP server supports two modes:

1. Stdio Mode (Default)

For use with Claude Desktop and other MCP clients that use stdio transport:

# Default stdio mode
npx @marceloemmerich/mite-mcp

# Explicitly specify stdio mode
npx @marceloemmerich/mite-mcp --stdio

2. HTTP/Streamable Mode

For web-based clients or testing environments:

# HTTP/Streamable mode on default port 3000
npx @marceloemmerich/mite-mcp --http

# HTTP/Streamable mode on custom port and host
npx @marceloemmerich/mite-mcp --http --port 8080 --host 0.0.0.0

HTTP Endpoints:

  • POST / - Handles MCP JSON-RPC requests
  • GET / - Establishes SSE stream (requires Mcp-Session-Id header)
  • DELETE / - Terminates session (requires Mcp-Session-Id header)

CLI Options

mite-mcp [options]

Options:
  -V, --version      output the version number
  --stdio            Run in stdio mode (default)
  --http             Run in HTTP/Streamable mode
  -p, --port <port>  Port for HTTP server (default: 3000)
  -h, --host <host>  Host for HTTP server (default: localhost)
  --help             display help for command

Claude Desktop Configuration

Add to your Claude Desktop configuration:

{
  "mcpServers": {
    "mite": {
      "command": "npx",
      "args": ["@marceloemmerich/mite-mcp"],
      "env": {
        "MITE_ACCOUNT_NAME": "your-account-name",
        "MITE_API_KEY": "your-api-key"
      }
    }
  }
}

For development testing with Claude Desktop, you can also use:

{
  "mcpServers": {
    "mite-dev": {
      "command": "node",
      "args": ["dist/index.js"],
      "cwd": "/path/to/mite-mcp",
      "env": {
        "MITE_ACCOUNT_NAME": "your-account-name",
        "MITE_API_KEY": "your-api-key"
      }
    }
  }
}

You can also run directly from the CLI like this:

export MITE_ACCOUNT_NAME=<YOUR-ACCOUNT-NAME> && export MITE_API_KEY=<YOUR-API-KEY> && npx @marceloemmerich/mite-mcp --http --port 3000

Development

# Clone the repository
git clone https://github.com/marceloemmerich/mite-mcp.git
cd mite-mcp

# Install dependencies
npm install

# Run in development mode (stdio)
npm run dev

# Run in HTTP/Streamable mode for testing
npm run dev -- --http --port 3000

# Run tests
npm test

# Run tests with coverage
npm run test:coverage

# Build for production
npm run build

# Lint and format code
npm run lint:fix

Testing HTTP/Streamable Mode

For testing the HTTP/Streamable server mode, you can use tools like:

# Test initialization (this will return a session ID)
curl -X POST http://localhost:3000/ \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{"roots":{"listChanged":true},"sampling":{}}},"id":1}'

# Test with session ID (replace SESSION_ID with the actual session ID from initialization)
curl -X GET http://localhost:3000/ \
  -H "Mcp-Session-Id: SESSION_ID"

Development with Claude Desktop

For local development, update your Claude Desktop config:

{
  "mcpServers": {
    "mite-dev": {
      "command": "npm",
      "args": ["run", "dev"],
      "cwd": "/path/to/mite-mcp",
      "env": {
        "MITE_ACCOUNT_NAME": "your-account-name",
        "MITE_API_KEY": "your-api-key"
      }
    }
  }
}

API Documentation

For detailed mite API documentation, visit: https://mite.de/api/

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选