MCP server for managing Kwork freelance marketplace
Project description
MCP server that exposes 25 tools for the Kwork freelance marketplace — browse projects, submit offers, manage orders, send messages, and more.
Built with FastMCP 3.x and pykwork.
Highlights
- Tool annotations — read-only, write, and destructive hints for safer agent interactions
- Input validation — all parameters validated before API calls
- Auto-relogin — automatic session refresh on 401 errors
- Error sanitization — internal details stay in logs, not in agent responses
- Rate limiting — built-in sliding window rate limiter
Setup
Requirements
- uv
- Kwork account (login/password or API token)
Install
When using uv no specific installation is needed. We will use uvx to directly run kwork-mcp.
Alternatively, install via pip:
pip install kwork-mcp
Or from source:
git clone https://github.com/simonether/kwork-mcp.git
cd kwork-mcp
uv sync
Configure
| Variable | Required | Default | Description |
|---|---|---|---|
KWORK_LOGIN |
yes* | — | Kwork login |
KWORK_PASSWORD |
yes* | — | Kwork password |
KWORK_TOKEN |
yes* | — | Auth token (skips login) |
KWORK_PHONE_LAST |
no | — | Last 4 digits of phone (2FA) |
KWORK_PROXY_URL |
no | — | Proxy (HTTP / SOCKS4 / SOCKS5) |
KWORK_TIMEOUT |
no | 30 |
Request timeout in seconds |
KWORK_RPS_LIMIT |
no | 2 |
Requests per second |
KWORK_BURST_LIMIT |
no | 5 |
Burst limit |
KWORK_TOKEN_FILE |
no | ~/.kwork_token |
Token persistence path |
*Either KWORK_TOKEN or both KWORK_LOGIN + KWORK_PASSWORD.
Auth priority: KWORK_TOKEN env → saved token file → fresh login.
Proxy URL formats:
KWORK_PROXY_URL=http://proxy.example.com:8080
KWORK_PROXY_URL=socks5://proxy.example.com:1080
KWORK_PROXY_URL=socks5://user:password@proxy.example.com:1080
Usage
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"kwork": {
"command": "uvx",
"args": ["kwork-mcp"],
"env": {
"KWORK_LOGIN": "your_login",
"KWORK_PASSWORD": "your_password"
}
}
}
}
Claude Code
claude mcp add kwork -e KWORK_LOGIN=your_login -e KWORK_PASSWORD=your_password -- uvx kwork-mcp
VS Code
Add to .vscode/mcp.json:
{
"mcp": {
"servers": {
"kwork": {
"command": "uvx",
"args": ["kwork-mcp"],
"env": {
"KWORK_LOGIN": "your_login",
"KWORK_PASSWORD": "your_password"
}
}
}
}
}
stdio
uvx kwork-mcp
Tools
Profile (3 tools)
| Tool | Description |
|---|---|
get_me |
Current user profile, rating, balance |
get_connects |
Connect count for exchange offers |
get_user_info |
Public user info by ID |
Projects (4 tools)
| Tool | Description |
|---|---|
list_projects |
Browse exchange projects with filters |
get_project |
Project details by ID |
search_projects |
Search by text query |
get_exchange_info |
Exchange marketplace stats |
Offers (4 tools)
| Tool | Description |
|---|---|
list_my_offers |
Your exchange offers |
get_offer |
Offer details by ID |
submit_offer |
Submit offer to a project (costs 1 connect) |
delete_offer |
Delete an offer |
Orders (3 tools)
| Tool | Description |
|---|---|
list_worker_orders |
Seller orders (all statuses) |
get_order_details |
Order details by ID |
send_order_for_approval |
Submit work for buyer review |
Dialogs (4 tools)
| Tool | Description |
|---|---|
list_dialogs |
Conversations with latest messages |
get_dialog |
Messages by username |
send_message |
Send direct message |
mark_dialog_read |
Mark as read |
Kworks (4 tools)
| Tool | Description |
|---|---|
list_my_kworks |
Your services grouped by status |
get_kwork_details |
Kwork details by ID |
start_kwork |
Activate a paused kwork |
pause_kwork |
Pause an active kwork |
Categories (2 tools)
| Tool | Description |
|---|---|
list_categories |
Full category tree |
get_favorite_categories |
User's favorite categories |
Notifications (1 tool)
| Tool | Description |
|---|---|
list_notifications |
User notifications |
Development
uv sync --dev
uv run python -m pytest tests/ -x -v --cov=kwork_mcp --cov-report=term-missing
uv run ruff check .
uv run ruff format --check .
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kwork_mcp-0.2.2.tar.gz.
File metadata
- Download URL: kwork_mcp-0.2.2.tar.gz
- Upload date:
- Size: 134.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d73873f79c6ede9f25cc0219e0550825a8996ebfcfd76958df8f213aa490e1c1
|
|
| MD5 |
263479afef5823cd4f5847d1be285348
|
|
| BLAKE2b-256 |
9dac06105c248bd1bec17dbe6a025b8a2dc504449e768f33fb727e84c15ee6d7
|
File details
Details for the file kwork_mcp-0.2.2-py3-none-any.whl.
File metadata
- Download URL: kwork_mcp-0.2.2-py3-none-any.whl
- Upload date:
- Size: 29.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37b246e067f2121447427da520a01cce0649ab38159fc19da6c0c62ae20a1590
|
|
| MD5 |
54d8ab86190b3c1e2db4dd9c4c72552b
|
|
| BLAKE2b-256 |
273c86511002907cb7e98fa4a28dc9ee91ee311eaaa9b8f419e29cb962d35688
|