Overview
freee-mcp (MCP server) to integrate with the freee API.
Role of this skill:
- Provide detailed references for the freee API
- Provide a freee-mcp usage guide and API call examples
Note: OAuth authentication must be performed by the user in their own environment.
Setup
1. OAuth authentication (run in your terminal)
npx freee-mcp configure
Log in to freee in your browser and select a company. The settings are saved to ~/.config/freee-mcp/config.json .
2. Restart and verify
After restarting Claude, check the authentication status with thefreee_auth_status tool.
Reference
API references are included in references/ . Each reference contains detailed information on parameters, request bodies, and responses.
To find the API you want,references/ search the files in the directory by keyword.
Main references:
accounting-deals.md- Dealsaccounting-expense-applications.md- Expense applicationshr-employees.md- Employee informationhr-attendances.md- Attendanceinvoice-invoices.md- Invoices
Usage
MCP tools
Authentication and company management:
freee_authenticate- OAuth authenticationfreee_auth_status- Check authentication statusfreee_clear_auth- Clear authentication informationfreee_current_user- Get logged-in user informationfreee_list_companies- List companiesfreee_set_current_company- Switch companyfreee_get_current_company- Get current company
File operations:
freee_file_upload- Upload a file to the file box (POST /api/1/receipts)
API calls:
freee_api_get- GET requestfreee_api_post- POST requestfreee_api_put- PUT requestfreee_api_delete- DELETE requestfreee_api_patch- PATCH requestfreee_api_list_paths- List of available API paths
service parameter (required):
| service | Description | Path example |
|---|---|---|
accounting |
freee Accounting (deals, account items, partners, etc.) | /api/1/deals |
hr |
freee HR & Labor (employees, attendance, etc.) | /api/v1/employees |
invoice |
freee Invoicing (invoices, quotes, delivery notes) | /invoices |
pm |
freee Time Tracking (projects, time tracking, etc.) | /projects |
sm |
freee Sales (quotes, orders, sales, etc.) | /businesses |
Basic workflow
- Check the company:
freee_get_current_companyto get the current company ID (required the first time. Once obtained within a session, it can be reused thereafter) - Check the recipe:
recipes/Read the relevant recipe in - Search the reference: As needed,
references/refer to - Call the API:
freee_api_*Use the tool (for endpoints that require company_id, use the value obtained in step 1)
Note:
company_idmust match the currently configured company. If they do not match, an error will occur- To change the company: first
freee_set_current_companyswitch with , then execute the request
Recipes
See below for use case samples and tips for common operations:
recipes/expense-application-operations.md- Expense applicationsrecipes/deal-operations.md- Transactions (income and expenses)recipes/hr-employee-operations.md- HR and labor (employees and payroll)recipes/hr-attendance-operations.md- Attendance (clock-in/clock-out, time clocking, break registration)recipes/invoice-operations.md- Invoices, quotes, and delivery notesrecipes/receipt-operations.md- File Box (uploading and managing evidence files)recipes/pm-operations.md- Labor cost management (projects and labor cost actuals)recipes/pm-workload-registration.md- Safe registration of labor costs (PM/HR integration workflow)recipes/sm-operations.md- Sales management (deals and orders)
Error handling
- Authentication error:
freee_auth_statuscheck with →freee_clear_auth→freee_authenticate - Company error:
freee_list_companies→freee_set_current_company - Details:
recipes/troubleshooting.mdsee
About API feature limitations
Problems caused by feature limitations of the freee API itself cannot be resolved with freee-mcp. For details, see recipes/troubleshooting.md .