Basecamp MCP Server
Enables AI assistants to automate Basecamp operations including project management, cards, todos, comments, and people via MCP tools.
README
Basecamp MCP Server
A Model Context Protocol (MCP) server for complete Basecamp automation. This server allows AI assistants like Claude to interact with Basecamp projects, cards, todos, comments, and more.
Author: Varun Dubey (vapvarun) | Company: Wbcom Designs
⚠️ Important: Setup Required
If you cloned this from GitHub, you need to create your config.json file:
# 1. Copy the example config
cp config.example.json config.json
# 2. Edit config.json and add your Basecamp credentials
# (See "Getting Basecamp Credentials" section below)
Note: config.json is gitignored and will never be committed to keep your credentials safe.
Features
✅ Complete Basecamp API Coverage
- Read and comment on cards/todos
- Create, update, move, and trash cards
- Manage projects, columns, and steps
- Handle todos and checklists
- List and manage people
- Track events and activity
✅ 40+ MCP Tools Available
- Complete Basecamp API integration via MCP tools
- Full CRUD operations for all Basecamp resources
- Search and utility functions
✅ Smart Features
- Auto-detect account ID
- Extract images from comments
- Parse Basecamp URLs
- Fuzzy project search
Installation
1. Install Dependencies
cd basecamp-mcp-server
npm install
2. Build the Server
npm run build
3. Configure Basecamp Authentication
You have two options:
Option A: Environment Variables (Recommended)
export BASECAMP_ACCESS_TOKEN="your_access_token_here"
export BASECAMP_ACCOUNT_ID="your_account_id" # Optional, will auto-detect
Option B: Config File
Create a config.json file in the project root:
{
"accessToken": "your_access_token_here",
"accountId": "your_account_id"
}
Note: Use config.example.json as a template. Never commit config.json to version control.
Getting Basecamp Credentials
Step 1: Create a Basecamp App
- Go to Basecamp Integrations
- Click "Register a new app"
- Fill in the details:
- Name: Your app name (e.g., "My MCP Server")
- Company: Your company/name
- Website: Your website URL
- Redirect URI:
http://localhost:3000/callback(or your callback URL)
Step 2: Get OAuth Credentials
From your app page, note down:
- Client ID
- Client Secret
Step 3: Get an access token
Use the ready-made bootstrap in oauth/. Summary:
cp oauth/oauth-app.example.json oauth/oauth-app.jsonand fill in theclient_id,client_secret, andredirect_urifrom step 2.- Symlink
oauth/helper.php+oauth/oauth-app.jsoninto a local WordPress site'swp-content/mu-plugins/. - Visit that site's admin → Basecamp OAuth → Connect to Basecamp.
- Paste the displayed tokens into
config.json. - Remove the mu-plugin link. The helper is only needed once.
Automatic refresh (recommended). If you also provide BASECAMP_REFRESH_TOKEN,
BASECAMP_CLIENT_ID, and BASECAMP_CLIENT_SECRET (env or config.json), the
server keeps the access_token fresh itself - proactively, shortly before it
expires, and reactively on a 401 - caching the result in
.basecamp-token-cache.json. No cron and no "restart Claude Desktop" step needed.
The legacy oauth/refresh-token.sh / refresh-token.cjs / sync-token.sh scripts
are now optional (handy for first-time setup or manual recovery) and are no longer
required once the refresh credentials are configured. Walkthrough in oauth/README.md.
Using with Claude Desktop
1. Add to Claude Desktop Config
Edit your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Add the server:
{
"mcpServers": {
"basecamp": {
"command": "node",
"args": ["/absolute/path/to/basecamp-mcp-server/build/index.js"],
"env": {
"BASECAMP_ACCESS_TOKEN": "your_access_token_here",
"BASECAMP_ACCOUNT_ID": "your_account_id",
"BASECAMP_REFRESH_TOKEN": "your_refresh_token",
"BASECAMP_CLIENT_ID": "your_oauth_client_id",
"BASECAMP_CLIENT_SECRET": "your_oauth_client_secret"
}
}
}
}
2. Restart Claude Desktop
The Basecamp tools will now be available in Claude.
Available Tools
Reading & Commenting
basecamp_read- Read card/todo with comments and imagesbasecamp_comment- Post a comment to any card/todo
Project Management
basecamp_list_projects- List all projectsbasecamp_get_project- Get project detailsbasecamp_create_project- Create a new projectbasecamp_update_project- Update projectbasecamp_trash_project- Delete project
Card Operations
basecamp_list_columns- List columns in a card tablebasecamp_list_cards- List cards in a column. Auto-paginates by default — walks every page via Basecamp's Link header so a column with 200+ cards arrives in one array. Pass{single_page: true, page: N}for the old page-by-page behaviour.basecamp_list_card_ids- Compact card listing for iteration. Returns only id / title / status / app_url / timestamps / comment count / assignees / completed flag — payload ~5% oflist_cards. Right tool when you just need to walk IDs (e.g. loop over a Done column and feed each id toget_cardorlist_comments). Always auto-paginates.basecamp_get_card- Get card detailsbasecamp_create_card- Create a new cardbasecamp_update_card- Update card detailsbasecamp_move_card- Move card to different columnbasecamp_trash_card- Delete card
Card Steps (Checklists)
basecamp_list_steps- List steps on a cardbasecamp_add_step- Add a new stepbasecamp_complete_step- Mark step as donebasecamp_uncomplete_step- Mark step as not done
Todos
basecamp_get_todo- Get todo detailsbasecamp_create_todo- Create a new todobasecamp_complete_todo- Complete todobasecamp_uncomplete_todo- Uncomplete todo
People
basecamp_list_people- List all peoplebasecamp_get_person- Get person details
Events & Activity
basecamp_get_events- Get recent activity
Search & Utility
basecamp_find_project- Search projects by namebasecamp_parse_url- Parse Basecamp URL to extract IDs
Usage Examples
Example 1: Read a Card with Comments
// In Claude Desktop, you can simply ask:
// "Read this Basecamp card: https://3.basecamp.com/5798509/buckets/37594834/card_tables/cards/9010883489"
// The tool will be called automatically:
{
"tool": "basecamp_read",
"arguments": {
"url": "https://3.basecamp.com/5798509/buckets/37594834/card_tables/cards/9010883489",
"include_comments": true,
"include_images": true
}
}
Example 2: Create a Card
// "Create a card in project 37594834, column 7389123 titled 'New Feature' with description 'Implement OAuth'"
{
"tool": "basecamp_create_card",
"arguments": {
"project_id": "37594834",
"column_id": "7389123",
"title": "New Feature",
"content": "Implement OAuth authentication",
"due_on": "2024-12-31"
}
}
Example 3: Move Card to Different Column
// "Move card 9010883489 to the Done column (column 7389456)"
{
"tool": "basecamp_move_card",
"arguments": {
"project_id": "37594834",
"card_id": "9010883489",
"to_column": "7389456"
}
}
Example 4: Post a Comment
// "Post a comment to this card saying 'Work completed!'"
{
"tool": "basecamp_comment",
"arguments": {
"url": "https://3.basecamp.com/5798509/buckets/37594834/card_tables/cards/9010883489",
"comment": "Work completed! ✅"
}
}
Development
Run in Development Mode
npm run dev # Watch mode - rebuilds on changes
Test the Server
# Build first
npm run build
# Run directly
node build/index.js
# Or with explicit config
BASECAMP_ACCESS_TOKEN="your_token" node build/index.js
Debug with MCP Inspector
npx @modelcontextprotocol/inspector node build/index.js
Project Structure
basecamp-mcp-server/
├── src/
│ ├── index.ts # Entry point
│ ├── server.ts # Main MCP server implementation
│ ├── basecamp-api.ts # Basecamp API client
│ ├── tools.ts # MCP tool definitions
│ └── config.ts # Configuration loader
├── build/ # Compiled JavaScript (generated)
├── package.json
├── tsconfig.json
├── config.example.json # Example config
└── README.md
Architecture
Key Components
-
BasecampAPI (
basecamp-api.ts)- Complete Basecamp API v3 client
- Handles OAuth and all API endpoints
- Full TypeScript implementation
-
BasecampMCPServer (
server.ts)- Implements MCP protocol
- Routes tool calls to API methods
- Handles responses and errors
-
Tools (
tools.ts)- Defines all available MCP tools
- Includes input schemas and descriptions
-
Config (
config.ts)- Loads credentials from env or file
- Handles configuration management
Troubleshooting
"Basecamp credentials not found"
Make sure you've set either:
- Environment variables (
BASECAMP_ACCESS_TOKEN) - Or created a
config.jsonfile
"Failed to refresh expired token"
Your access token has expired. Get a new one via OAuth or use a refresh token.
"Invalid Basecamp URL"
Make sure the URL format is correct:
- Cards:
https://3.basecamp.com/{account}/buckets/{project}/card_tables/cards/{card_id} - Todos:
https://3.basecamp.com/{account}/buckets/{project}/todos/{todo_id}
Tools not appearing in Claude
- Check Claude Desktop config file path is correct
- Ensure the
commandpath points tobuild/index.js - Restart Claude Desktop completely
- Check Claude Desktop logs for errors
"Failed to fetch projects" / 400 Bad Request / runaway requests
If basecamp_list_projects / basecamp_find_project return empty or "Failed to
fetch projects", you are almost certainly running a stale build. Run
git pull && npm run build and restart the MCP server so the new build/
loads (a rebuild alone does not restart the already-spawned stdio process).
This symptom came from two Basecamp API-contract violations that are now fixed in
the client — keep them in mind if you touch getProjects/getAll:
- Never send
status=activeon/projects.json. Basecamp only acceptsstatus=archivedorstatus=trashed;activeis the default and is rejected as an invalid value (400 Bad Request). To list active projects, omit thestatusparameter entirely. - Never hand-build
page=Nnumbers. Follow the RFC 5988Linkheader (rel="next") until it's absent, and stop on any non-2xx response. Manually incrementingpageagainst a perpetually-400ing endpoint produces tens of thousands of failed requests (we observedpage=55940) and gets the source IP blocked by Basecamp.getAll()enforces this (Link-header walk, stops on 4xx/5xx,maxPagescap).
If your IP was blocked during such a runaway, deploy the fixed build and contact Basecamp support to request an unblock.
API Reference
Full Basecamp API documentation: https://github.com/basecamp/bc3-api
Contributing
Contributions are welcome! To contribute:
- Fork the repository
- Make changes in the appropriate files
- Build:
npm run build - Test with MCP Inspector
- Submit a pull request
For detailed guidelines, see CONTRIBUTING.md
License
GPL v2 or later
Credits & Author
Created by: Varun Dubey (vapvarun) Company: Wbcom Designs Email: varun@wbcomdesigns.com
Acknowledgments
- Basecamp API: Basecamp 3 API by 37signals
- MCP Protocol: Model Context Protocol by Anthropic
Support
For issues related to:
- MCP Server: Open an issue on GitHub
- Basecamp API: Check Basecamp API documentation
- Claude Desktop: Check Anthropic MCP documentation
Professional Support
For professional support, custom development, or enterprise solutions:
- Website: https://wbcomdesigns.com
- Email: varun@wbcomdesigns.com
Related Projects
Made with ❤️ by Varun Dubey at Wbcom Designs
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。