Airtable MCP Server
Enables Claude to interact with Airtable through a secure OAuth 2.1 flow, supporting operations like listing bases, tables, records, and creating records.
README
Airtable MCP Server
A production-ready MCP server that implements the complete OAuth 2.1 specification with Dynamic Client Registration, designed specifically for Claude's connector requirements.
🔐 OAuth 2.1 Compliance
This server implements the full MCP Authorization specification:
- ✅ Dynamic Client Registration (RFC 7591) - Required by Claude
- ✅ OAuth 2.1 with PKCE - Secure authorization flow
- ✅ Authorization Server Metadata (RFC 8414) - Auto-discovery
- ✅ Protected Resource Metadata (RFC 9728) - Resource discovery
- ✅ Bearer Token Authentication - Secure API access
🚀 Quick Deploy to Railway
- Commit and push your changes:
git add .
git commit -m "Implement proper OAuth 2.1 MCP server with Dynamic Client Registration"
git push origin main
-
Railway will auto-deploy - just ensure these environment variables are set:
AIRTABLE_API_KEY= your Airtable API token
-
Configure Claude:
- Copy your Railway URL (e.g.,
https://airtable-mcp-server-production-6389.up.railway.app) - In Claude connector setup, use this URL
- Leave OAuth Client ID empty - Dynamic Client Registration handles this automatically
- Copy your Railway URL (e.g.,
🔧 Environment Variables
Required:
AIRTABLE_API_KEY- Your Airtable API token
Optional (Railway sets automatically):
BASE_URL- Your deployed URLPORT- Server port (default: 8000)HOST- Server host (default: 0.0.0.0)
🧪 Testing Your Server
After deployment, test the OAuth endpoints:
# Test Dynamic Client Registration
curl -X POST https://your-app.railway.app/oauth/register \
-H "Content-Type: application/json" \
-d '{"client_name": "Test Client", "redirect_uris": ["https://example.com/callback"]}'
# Check OAuth metadata
curl https://your-app.railway.app/.well-known/oauth-authorization-server
# Setup information
curl https://your-app.railway.app/setup
📋 MCP Tools Available
list_bases- List all accessible Airtable baseslist_tables- List tables in a specific baselist_records- Get records from a table with filteringcreate_record- Create new records in tables
🔗 Claude Integration
For Claude Web Interface:
- Go to Settings → Connectors
- Add custom connector with your Railway URL
- Leave OAuth Client ID empty (Dynamic Client Registration is used)
- Claude will automatically register and authenticate
For Claude Desktop:
Use the MCP connector configuration in claude_desktop_config.json:
{
"mcpServers": {
"airtable": {
"command": "npx",
"args": ["-y", "@anthropic-ai/mcp-client"],
"env": {
"MCP_SERVER_URL": "https://your-app.railway.app"
}
}
}
}
🏗️ Architecture
This server separates concerns properly:
- Authorization Server - Handles OAuth 2.1 flows
- Resource Server - Protects MCP endpoints
- Dynamic Client Registration - Auto-registers Claude clients
- Airtable Client - Secure API integration
🔒 Security Features
- PKCE (RFC 7636) - Prevents authorization code interception
- Secure token storage - Tokens expire and rotate
- Input validation - All endpoints validate requests
- HTTPS enforcement - All OAuth endpoints require HTTPS
- Scope-based access - Granular permission control
📚 MCP Specification Compliance
Built according to the official MCP specification:
🐛 Troubleshooting
Claude connector fails to add:
- Ensure your Railway app is deployed and accessible
- Check that
AIRTABLE_API_KEYis set in Railway environment - Verify the URL returns
{"status": "healthy"}at/health - Check Railway logs for any startup errors
OAuth flow issues:
- Test Dynamic Client Registration endpoint manually
- Verify OAuth metadata endpoints are accessible
- Check that
BASE_URLenvironment variable matches your actual Railway URL
🎯 What's Different Now
This implementation fixes the previous issues:
❌ Before:
- Simple API key authentication (rejected by Claude)
- No Dynamic Client Registration support
- Missing OAuth metadata endpoints
- No PKCE security
✅ Now:
- Full OAuth 2.1 compliance with Dynamic Client Registration
- Auto-discovery endpoints for Claude to find OAuth servers
- PKCE security for public clients like Claude
- Proper MCP authorization flow following the specification
📄 License
MIT License - feel free to use this as a template for your own MCP servers.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。