SmartSuite MCP Server
A locally-hosted MCP server enabling AI agents to securely interact with SmartSuite data, with configurable access modes and audit logging.
README
SmartSuite MCP Server
A locally-hosted Model Context Protocol (MCP) server that gives AI coding agents and desktop assistants governed, auditable access to SmartSuite data.
Works with Claude Desktop, Claude Code, Cursor, Cline, and any other MCP-compatible client.
What this is
The SmartSuite MCP server runs on your machine and communicates with your MCP client over stdio. It proxies requests to the SmartSuite REST API using your account credentials. The server enforces access modes, validates inputs, redacts secrets from logs, and writes local audit logs for all write operations.
Installation
Option 1: npm (global)
npm install -g @smartsuite/mcp-server
Option 2: npx (no install)
npx @smartsuite/mcp-server
Option 3: Docker
docker pull smartsuite/mcp-server:latest
Quick start: Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"smartsuite": {
"type": "stdio",
"command": "smartsuite-mcp",
"args": [],
"env": {
"SMARTSUITE_ACCOUNT_ID": "your-account-id",
"SMARTSUITE_API_KEY": "your-api-key",
"SMARTSUITE_BASE_URL": "https://app.smartsuite.com/api/v1",
"SMARTSUITE_MCP_MODE": "readwrite"
}
}
}
}
Restart Claude Desktop. You should see the SmartSuite tools in the connector panel.
Quick start: Claude Code
claude mcp add smartsuite \
--env SMARTSUITE_ACCOUNT_ID=your-account-id \
--env SMARTSUITE_API_KEY=your-api-key \
--env SMARTSUITE_BASE_URL=https://app.smartsuite.com/api/v1 \
--env SMARTSUITE_MCP_MODE=readwrite \
-- smartsuite-mcp
Quick start: Docker
docker run --rm -i \
-e SMARTSUITE_ACCOUNT_ID=your-account-id \
-e SMARTSUITE_API_KEY=your-api-key \
-e SMARTSUITE_MCP_MODE=readonly \
smartsuite/mcp-server:latest
Access modes
| Mode | Read | Create/Update | Delete | Schema writes |
|---|---|---|---|---|
readonly |
✅ | ❌ | ❌ | ❌ |
readwrite |
✅ | ✅ | opt-in | opt-in |
admin |
✅ | ✅ | opt-in | opt-in |
Set with SMARTSUITE_MCP_MODE. Default is readonly.
Configuration
Required
| Variable | Description |
|---|---|
SMARTSUITE_ACCOUNT_ID |
Your SmartSuite account ID |
SMARTSUITE_API_KEY |
Your SmartSuite API key |
Optional
| Variable | Default | Description |
|---|---|---|
SMARTSUITE_BASE_URL |
https://app.smartsuite.com/api/v1 |
API base URL |
SMARTSUITE_MCP_MODE |
readonly |
Access mode: readonly, readwrite, admin |
SMARTSUITE_MAX_RECORDS |
100 |
Hard cap for list/query tools |
SMARTSUITE_MAX_BATCH_WRITES |
25 |
Max records per batch update |
SMARTSUITE_ENABLE_DELETE |
false |
Enable delete tools |
SMARTSUITE_ENABLE_SCHEMA_WRITE |
false |
Enable schema write tools |
SMARTSUITE_ENABLE_SMARTDOC_WRITE |
false |
Enable SmartDoc append tools |
SMARTSUITE_ALLOWED_SOLUTIONS |
(all) | Comma-separated solution IDs to allow |
SMARTSUITE_ALLOWED_APPLICATIONS |
(all) | Comma-separated application IDs to allow |
SMARTSUITE_DENIED_APPLICATIONS |
(none) | Comma-separated application IDs to block |
SMARTSUITE_LOG_LEVEL |
info |
Log level: debug, info, warn, error |
SMARTSUITE_LOG_FILE |
stderr | Path to write logs (default: stderr) |
SMARTSUITE_REQUEST_TIMEOUT_MS |
30000 |
HTTP request timeout in milliseconds |
SMARTSUITE_RETRY_COUNT |
2 |
Number of retries for rate limits and transient errors |
SCHEMA_CACHE_TTL_MS |
300000 |
Application schema cache TTL (5 min) |
Tool list
Discovery & Schema
| Tool | Description |
|---|---|
smartsuite_diagnostics |
Validate configuration and connectivity |
smartsuite_list_solutions |
List accessible SmartSuite solutions |
smartsuite_get_solution |
Get solution details |
smartsuite_list_applications |
List applications; pass solutionId to filter to one solution |
smartsuite_describe_application |
Full application schema with field slugs and options |
smartsuite_list_fields |
List fields for an application |
smartsuite_describe_field |
Detailed field metadata including choice options |
Records
| Tool | Mode | Description |
|---|---|---|
smartsuite_list_records |
readonly | List records with optional sort and field projection; pass ids to fetch specific records by ID |
smartsuite_get_record |
readonly | Get a record by ID |
smartsuite_search_records |
readonly | Text search across specified fields |
smartsuite_query_records |
readonly | Structured filter query |
smartsuite_create_record |
readwrite | Create a new record |
smartsuite_update_record |
readwrite | Update one record |
smartsuite_update_records |
readwrite | Batch update with dry-run support |
smartsuite_delete_records |
readwrite + enable_delete | Delete records with confirmation |
Comments
| Tool | Mode | Description |
|---|---|---|
smartsuite_list_comments |
readonly | List comments on a record |
smartsuite_create_comment |
readwrite | Add a comment to a record |
Views
| Tool | Description |
|---|---|
smartsuite_list_views |
List views for an application |
smartsuite_describe_view |
View metadata: fields, filters, sorts |
SmartDocs
| Tool | Mode | Description |
|---|---|---|
smartsuite_get_smartdoc_content |
readonly | Read a SmartDoc field as plain text and raw value |
smartsuite_append_smartdoc_content |
readwrite + enable_smartdoc_write | Append markdown to a SmartDoc field |
Security model
- Credentials never reach the LLM. API key and account ID are loaded from environment variables and never included in tool responses or logs.
- Secrets are redacted from all log output.
- Access mode is enforced server-side. Write tools return a clear error in
readonlymode. - Destructive operations require explicit opt-in (
SMARTSUITE_ENABLE_DELETE=true) and a confirmation argument. - Batch writes require dry-run acknowledgement or
confirm=true. - Application allowlists and denylists prevent access to sensitive tables.
- All write operations write a local audit log (tool, account, application, record, timestamp, success/failure). Field values are not logged by default.
See SECURITY.md for the full security model.
Troubleshooting
"config error: Missing required environment variable"
Set SMARTSUITE_ACCOUNT_ID and SMARTSUITE_API_KEY in your MCP client config.
"SmartSuite API error 401" Check that your API key is correct and not expired.
"This operation is blocked in readonly mode"
Set SMARTSUITE_MCP_MODE=readwrite to enable writes.
Tools not appearing in Claude Desktop Restart Claude Desktop after updating the config file.
Logs polluting MCP output
Ensure SMARTSUITE_LOG_FILE is set to a file path, or that no other code writes to stdout. The server only writes JSON-RPC to stdout.
Development
# Install dependencies
npm install
# Type-check
npm run typecheck
# Build
npm run build
# Run tests
npm test
# Bundle single file for Docker/MCPB
npm run bundle
Project structure
src/
index.ts Entry point
server.ts MCP server bootstrap and tool dispatch
config.ts Environment variable loader
logger.ts Structured JSON logger (stderr or file)
errors.ts Error classes and codes
auth.ts SmartSuite auth header builder
smartSuiteClient.ts SmartSuite REST API client with schema cache
tools/
registry.ts Tool definitions (names, schemas, annotations)
context.ts Shared tool context type
diagnostics.ts
solutions.ts
applications.ts
fields.ts
records.read.ts
records.write.ts
comments.ts
views.ts
smartdocs.ts
types/
config.ts Config interface
smartsuite.ts SmartSuite API types
utils/
audit.ts Audit log writer
pagination.ts Cursor encode/decode
redaction.ts Secret redaction
retry.ts Exponential backoff retry
safeJson.ts Safe JSON stringify
License
MIT
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。