Skip to main content
Glama
README.md
> [!IMPORTANT]
> ## πŸ“¦ This project is now archived
>
> Float has released their own [first-class MCP server](https://www.float.com/whats-new/float-mcp-ask-float-in-chatgpt-or-claude), and we're archiving this community project in favor of it. Float has the resources and direct API access to continue this work far better than we can.
>
> A huge thank you to the community for the contributions, feedback, and support β€” and to the Float team for embracing MCP natively. πŸ™Œ
>
> **πŸ‘‰ Use Float's official MCP server going forward:** [float.com/whats-new/float-mcp-ask-float-in-chatgpt-or-claude](https://www.float.com/whats-new/float-mcp-ask-float-in-chatgpt-or-claude)

---

# Float MCP Server

[![MIT License](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![TypeScript](https://img.shields.io/badge/TypeScript-007ACC?logo=typescript&logoColor=white)](https://www.typescriptlang.org/)
[![MCP](https://img.shields.io/badge/MCP-Compatible-blue.svg)](https://modelcontextprotocol.io/)

A comprehensive **Model Context Protocol (MCP) server** that provides seamless integration with [Float.com](https://float.com) - the resource management and project planning platform. This server exposes Float's complete API as MCP tools, enabling AI assistants like Claude to interact with Float for project management, resource allocation, time tracking, and team coordination.

<a href="https://glama.ai/mcp/servers/@asachs01/float-mcp">
  <img width="380" height="200" src="https://glama.ai/mcp/servers/@asachs01/float-mcp/badge" alt="float-mcp MCP server" />
</a>

## 🌟 Features

### **Complete Float API Coverage**

- **πŸ‘₯ People Management** - Full CRUD operations for team members
- **πŸ“ Project Management** - Projects, phases, tasks, and milestones
- **⏱️ Time Tracking** - Logged time, timesheets, and billable hours
- **πŸ“Š Resource Allocation** - Team member assignments and scheduling
- **🎯 Task Management** - Project tasks, dependencies, and workflows
- **🏒 Organization** - Departments, roles, accounts, and permissions
- **πŸ“… Time Off** - PTO requests, approvals, and holiday management
- **πŸ“ˆ Reports** - Time reports, utilization, and project analytics

### **Advanced Features**

- **πŸ”„ Rate Limiting** - Built-in API rate limiting with exponential backoff
- **πŸ›‘οΈ Type Safety** - Full TypeScript support with Zod schema validation
- **πŸ“ Comprehensive Logging** - Detailed logging for debugging and monitoring
- **⚑ Performance** - Optimized for fast response times and efficient API usage
- **πŸ§ͺ Testing** - Comprehensive integration test suite
- **🐳 Docker Support** - Ready-to-deploy Docker container

## πŸš€ Quick Start

### **Prerequisites**

- Node.js 22.0.0 or later
- Float.com account with API access
- Valid Float API key

### **1. Installation Options**

#### **A. DXT Extension (Recommended)**

For DXT-compatible environments, download the latest DXT package:

**[πŸ“¦ Download Float MCP Extension (.dxt)](https://github.com/asachs01/float-mcp/releases/latest)**

Install the `.dxt` file through your DXT-compatible application.

#### **B. Manual Installation**

```bash
# Using npm
npm install

# Using yarn
yarn install
```

### **2. Configuration**

Create a `.env` file in the project root:

```env
# Float API Configuration
FLOAT_API_KEY=your_float_api_key_here
FLOAT_API_BASE_URL=https://api.float.com/v3

# Optional: Enable debug logging
LOG_LEVEL=info
```

### **3. Build & Run**

```bash
# Build the project
npm run build

# Start the MCP server
npm start

# For development with auto-reload
npm run dev
```

### **4. MCP Client Integration**

#### **For DXT Installation**

After installing the DXT extension, configure your Float API key in the extension settings. The extension will handle the MCP server configuration automatically.

#### **For Manual Installation**

Add to your MCP client configuration (e.g., Claude Desktop):

```json
{
  "mcpServers": {
    "float-mcp": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "-e",
        "FLOAT_API_KEY=YOURAPIKEY",
        "-e",
        "LOG_LEVEL=debug",
        "ghcr.io/asachs01/float-mcp:latest"
      ]
    }
  }
}
```

## πŸš€ Available Tools

The Float MCP server provides **4 optimized decision-tree tools** that efficiently replace 246+ granular tools while maintaining complete functionality:

## **πŸ”§ Optimized Tools (Recommended)**

### **1. manage-entity** - Core Entity Management
Consolidates all CRUD operations for core entities with decision tree routing:

```typescript
manageEntity({
  entity_type: "people" | "projects" | "tasks" | "clients" | "departments" | "roles" | "accounts" | "statuses",
  operation: "list" | "get" | "create" | "update" | "delete" | "get-current-account" | "bulk-update-account-permissions",
  // ... entity-specific parameters
})
```

**Replaces:** All CRUD tools for people, departments, roles, accounts, projects, tasks, clients, and statuses (~120 tools)

### **2. manage-project-workflow** - Project Operations  
Handles all project-specific workflow operations:

```typescript
manageProjectWorkflow({
  workflow_type: "phases" | "milestones" | "project-tasks" | "allocations", 
  operation: "list" | "get" | "create" | "update" | "delete" | "complete" | "archive" | "bulk-create" | "reorder",
  // ... workflow-specific parameters
})
```

**Replaces:** Project phases, milestones, project tasks, allocations, dependencies, bulk operations (~60 tools)

### **3. manage-time-tracking** - Time Management
Manages all time-related operations with comprehensive reporting:

```typescript
manageTimeTracking({
  tracking_type: "logged-time" | "timeoff" | "public-holidays" | "team-holidays",
  operation: "list" | "get" | "create" | "update" | "delete" | "approve" | "reject" | "bulk-create",
  report_type?: "person-summary" | "project-summary" | "timesheet" | "billable-analysis",
  // ... time-specific parameters  
})
```

**Replaces:** Logged time, time off, holidays, approvals, timesheets, summaries (~45 tools)

### **4. generate-report** - Analytics & Reporting
Comprehensive reporting and analytics engine:

```typescript  
generateReport({
  report_type: "time-report" | "project-report" | "people-utilization-report" | "capacity-report" | "budget-report",
  // Advanced filtering and grouping options
  group_by?: "person" | "project" | "client" | "department" | "date" | "week" | "month",
  include_details?: boolean,
  // ... extensive reporting parameters
})
```

**Replaces:** All reporting tools with advanced analytics, grouping, filtering (~20 tools)

## **πŸ“Š Optimization Benefits**

- **πŸ”₯ Massive Efficiency**: 246+ tools β†’ 4 optimized tools (98.4% reduction)  
- **🧠 AI-Friendly**: Decision tree parameters instead of tool proliferation
- **⚑ Better Performance**: Consolidated API calls and reduced overhead
- **πŸ”’ Full Compatibility**: Zero functionality loss, complete backward compatibility
- **πŸ› οΈ Easier Maintenance**: Centralized logic with consistent patterns

## **πŸ”„ Legacy Tools (Backward Compatibility)**

All original 246+ granular tools remain available for backward compatibility:

### **Reporting & Analytics**

- **Reports**: `get-time-report`, `get-project-report`, `get-people-utilization-report`
- **Analytics**: `get-person-logged-time-summary`, `get-project-logged-time-summary`

## πŸ”§ Configuration

### **Environment Variables**

| Variable             | Description                                      | Required | Default                    |
| -------------------- | ------------------------------------------------ | -------- | -------------------------- |
| `FLOAT_API_KEY`      | Your Float API key                        | βœ… Yes   | -                          |
| `FLOAT_API_BASE_URL` | Float API base URL                               | ❌ No    | `https://api.float.com/v3` |
| `LOG_LEVEL`          | Logging level (`error`, `warn`, `info`, `debug`) | ❌ No    | `info`                     |
| `MAX_RETRIES`        | Maximum API retry attempts                       | ❌ No    | `3`                        |
| `REQUEST_TIMEOUT`    | API request timeout (ms)                         | ❌ No    | `30000`                    |

### **Getting a Float API Key**

1. Log in to your Float account
2. Go to **Settings** > **API** > **Personal Access Tokens**
3. Click **Generate New Token**
4. Copy the API key
5. Add it to your `.env` file

## πŸ“– Usage Examples

### **Basic Operations**

```typescript
// List all projects
const projects = await listProjects({});

// Get a specific project
const project = await getProject({ project_id: 12345 });

// Create a new person
const person = await createPerson({
  name: 'John Doe',
  email: 'john@example.com',
  department_id: 1,
});

// Schedule an allocation
const allocation = await createAllocation({
  project_id: 12345,
  people_id: 67890,
  start_date: '2024-01-15',
  end_date: '2024-01-31',
  hours: 8,
});
```

### **Advanced Workflows**

```typescript
// Get team utilization report
const utilization = await getPeopleUtilizationReport({
  start_date: '2024-01-01',
  end_date: '2024-12-31',
});

// Bulk create project tasks
const tasks = await bulkCreateProjectTasks({
  project_id: 12345,
  tasks: [
    { name: 'Design Phase', start_date: '2024-01-01' },
    { name: 'Development Phase', start_date: '2024-01-15' },
  ],
});

// Process time off request
await createTimeOff({
  people_ids: [67890],
  timeoff_type_id: 1,
  start_date: '2024-02-01',
  end_date: '2024-02-05',
  status: 1, // Pending approval
});

await approveTimeOff({
  timeoff_id: 123,
  approved_by: 456,
  notes: 'Approved for vacation',
});
```

## πŸ§ͺ Testing

### **Running Tests**

```bash
# Run all tests
npm test

# Run integration tests (requires API key)
npm run test:integration

# Run tests with coverage
npm run test:coverage

# Run specific test suites
npm run test:integration:mock  # Mock API responses
npm run test:integration:real  # Real API calls (use with caution)
```

### **Test Configuration**

For integration tests with real API calls:

```env
# .env.test
FLOAT_API_KEY=flt_your_test_api_key
TEST_REAL_API=true
TEST_MOCK_MODE=false
```

## 🐳 Docker Support

### **Using Docker**

```bash
# Build the image
docker build -t float-mcp .

# Run the container
docker run -d \
  --name float-mcp \
  -e FLOAT_API_KEY=your_float_api_key_here \
  -p 3000:3000 \
  float-mcp
```

### **Docker Compose**

```yaml
version: '3.8'
services:
  float-mcp:
    build: .
    environment:
      - FLOAT_API_KEY=your_float_api_key_here
      - LOG_LEVEL=info
    ports:
      - '3000:3000'
    restart: unless-stopped
```

## πŸ” Troubleshooting

### **Common Issues**

**API Key Issues**

```bash
Error: Unauthorized (401)
# Solution: Check your API key format and validity
```

**Rate Limiting**

```bash
Error: Too Many Requests (429)
# Solution: The server automatically handles rate limiting with exponential backoff
```

**Connection Issues**

```bash
Error: Network timeout
# Solution: Check your internet connection and Float API status
```

### **Debug Mode**

Enable detailed logging:

```env
LOG_LEVEL=debug
```

This will show all API requests/responses and internal operations.

## 🀝 Contributing

We welcome contributions! Please see our [Contributing Guidelines](docs/guides/CONTRIBUTING.md) for details.

### **Development Setup**

```bash
# Clone the repository
git clone https://github.com/asachs01/float-mcp.git
cd float-mcp

# Install dependencies
npm install

# Set up environment
cp .env.example .env
# Edit .env with your Float API key

# Run in development mode
npm run dev
```

### **Code Quality**

```bash
# Run linting
npm run lint

# Format code
npm run format

# Type checking
npm run typecheck
```

## πŸ“„ Documentation

- **[API Documentation](docs/api/API_DOCUMENTATION.md)** - Complete API reference
- **[Tool Reference](docs/api/TOOL_REFERENCE.md)** - Detailed tool documentation
- **[Usage Guide](docs/guides/API_USAGE_GUIDE.md)** - Usage patterns and examples
- **[Integration Testing](docs/testing/INTEGRATION_TESTING.md)** - Testing guide
- **[Claude Integration](docs/guides/CLAUDE_INTEGRATION_GUIDE.md)** - Claude Desktop setup

## πŸ“Š Project Status

- βœ… **Complete Float API Coverage** - All Float v3 endpoints implemented
- βœ… **Production Ready** - Full error handling, rate limiting, and logging
- βœ… **Well Tested** - Comprehensive integration test suite
- βœ… **Type Safe** - Full TypeScript with Zod validation
- βœ… **Docker Ready** - Production-ready containerization
- βœ… **MCP Compatible** - Full Model Context Protocol compliance

## πŸ—ΊοΈ Roadmap

- [ ] **Float API v4 Support** - When released by Float
- [ ] **Enhanced Caching** - Optional Redis caching layer
- [ ] **Webhook Support** - Real-time Float event notifications
- [ ] **Bulk Operations** - Enhanced bulk import/export tools
- [ ] **Custom Reports** - Advanced reporting and analytics
- [ ] **Multi-tenant Support** - Multiple Float account support

## πŸ“ License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## πŸ™‹ Support

- **πŸ“– Documentation**: See the [docs](docs/) directory
- **πŸ› Bug Reports**: [GitHub Issues](https://github.com/asachs01/float-mcp/issues)
- **πŸ’¬ Discussions**: [GitHub Discussions](https://github.com/asachs01/float-mcp/discussions)

## 🏷️ Tags

`float` `mcp` `model-context-protocol` `project-management` `resource-management` `time-tracking` `typescript` `api-integration` `claude` `ai-tools`

---

**Built with ❀️ for the Float and MCP communities**

TDQS

C2.4/5.0

Scored across 136 tools

Disambiguation1/5

Massive overlap between tools: list-allocations/delete-allocation/create-allocation/update-allocation duplicate list-tasks/update-task/delete-task/create-task since allocations and tasks are the same Float API entity. Additional confusion from manage-entity and manage-project-workflow consolidated tools that overlap with nearly every CRUD tool, and duplicate timeoff/time-off-type tools.

Naming Consistency1/5

Naming is highly inconsistent: some use 'timeoff' (list-timeoff, create-timeoff) while others use 'time-off' (list-time-off-types, create-time-off-type). Conventions mix verb-object and object-verb patterns (get-project-tasks-by-project vs list-project-tasks, delete-allocation vs list-allocations). No clear consistent prefix or pattern emerges.

Tool Count1/5

With 136 tools, this is an extreme case of over-proliferation. Even accounting for Float's broad API surface, the count is excessive and would overwhelm any agent. The presence of redundant consolidated tools (manage-entity, manage-project-workflow) alongside granular CRUD tools compounds the problem.

Completeness4/5

The tool surface is quite thorough for Float's domain, covering projects, tasks, phases, milestones, time off, holidays, logged time, people, accounts, roles, departments, clients, and reports. Minor gaps exist around some specialized operations, but overall coverage is comprehensive.

Maintenance

ActivityInactive
ResponsivenessNo issues