sheetsdb-mcp-server
An MCP server that enables Claude to interact with Google Sheets via the SheetsDB API, supporting CRUD operations and smart data addition.
README
SheetsDB MCP Server
A Model Context Protocol (MCP) server that enables Claude to interact with Google Sheets through the SheetsDB API.
Features
- Smart Data Addition - Automatically detects empty vs existing sheets
- Header Management - Uses SheetsDB's
/keysendpoint for reliable header detection - CRUD Operations - Read, import, update, and delete sheet data
- Simple & Reliable - Just 6 focused tools, ~150 lines of code
Tools Available
get_keys- Get column headers from sheetsmart_add_data- Intelligently add data (import_json for empty sheets, create for existing)read_sheet- Read data from sheetimport_json- Import JSON data to empty sheetsupdate_row- Update specific rowsdelete_rows- Delete rows by criteria
Quick Start
Prerequisites
- Node.js 18+
- SheetsDB account and API endpoint
- Claude Desktop or compatible MCP client
Installation
-
Clone this repository:
git clone https://github.com/yourusername/sheetsdb-mcp-server.git cd sheetsdb-mcp-server -
Install dependencies:
npm install -
Test the server:
npm start
Local Claude Desktop Setup
Add to your claude_desktop_config.json:
{
"mcpServers": {
"sheetsdb": {
"command": "node",
"args": ["/path/to/your/sheetsdb-mcp-server/server.js"]
}
}
}
Deploy with Smithery.ai
-
Push to GitHub:
git add . git commit -m "Initial commit" git push origin main -
Deploy on Smithery.ai:
- Go to Smithery.ai
- Click "Deploy MCP with GitHub"
- Select this repository
- The
mcp-config.jsonwill be automatically detected
-
Use in Claude:
- Get your Smithery deployment URL
- Add to Claude Desktop config or use directly
Usage Examples
Adding Meal Data
User: "Add chicken dinner (340 calories, 25g protein) to my calorie tracker: https://sheetdb.io/api/v1/your-id"
Claude will:
1. Call get_keys to check headers
2. Call smart_add_data with proper mapping
3. Either create headers (first time) or add to existing sheet
Reading Data
User: "Show me my last 5 meals"
Claude: [Uses read_sheet with limit=5]
Updating Entries
User: "Update yesterday's breakfast calories to 350"
Claude: [Uses update_row to find and modify the entry]
Configuration
The server expects SheetsDB endpoints in this format:
https://sheetdb.io/api/v1/YOUR_SHEET_ID
No additional configuration required - just provide the endpoint when using tools.
Security Notes
- Endpoints are validated to ensure they're legitimate SheetsDB URLs
- No API keys stored in the server (SheetsDB handles auth via URL)
- All requests go directly to SheetsDB's secure endpoints
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
License
MIT License - see LICENSE file for details
Support
- Create an issue for bugs or feature requests
- Check SheetsDB documentation for API-specific questions
- See MCP documentation for protocol details
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.