Sujan30/docs-mcp-server
If you are the rightful owner of docs-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Docs MCP Server allows AI models to create and edit Google Docs using natural language commands, leveraging the Model Context Protocol (MCP) for seamless integration.
π Docs MCP Server
Welcome to the Docs MCP Server!
This tool gives your AI the ability to create and edit Google Docs via MCP, turning natural language into powerful document workflows.
So you can do things like this:
βοΈ Core Functionalities
With this server, your AI (like Claude or GPT) can:
β
Create a new Google Doc with just a title
β
Create a new Google Doc with both title and content
β
Add more content to an existing document
β
Create google calendar events & list out the next x events with just plain text
π Getting Started
1. Clone the Repository
git clone https://github.com/your-username/docs-mcp-server.git
cd docs-mcp-server
2. Install MCP CLI
uv add "mcp[cli]"
3. Create & Activate a Virtual Environment
python3.11 -m venv venv
source venv/bin/activate
4. Install Python Dependencies
pip install -r requirements.txt
5. Set Up Google Docs API
- Go to Google Cloud Console.
- Enable the Google Docs API.
- Create OAuth credentials and choose "Desktop Application" when asked for the app type.
- Download the
credentials.json
file. - Place the file in your project folder.
- In
authentication.py
, set theCREDENTIALS_PATH
to the path of yourcredentials.json
.
6. Run the Server
python server.py
- This will open a Google OAuth window in your browser.
- Once authenticated, a
token.pickle
file will be generated. - In
authentication.py
, set theTOKEN_FILE
to the path of yourtoken.pickle
.
π Your Docs MCP server is now running!
π§ Connecting to Claude (Anthropic)
-
Ensure Claude Desktop is Installed
-
Run the MCP server install command:
mcp install server.py
- Open Claude Desktop App Settings
(Cmd +,
or click on the Cluade button in the top bar, and navigate to settings)
- Navigate to the Developer tab
You should seegoogle-docs-mcp
listed.
β οΈ If you see errors, donβt worry β continue below.
- Click "Edit Config" at the bottom left. This opens your
claude_desktop_config.json
.
- Locate your
google-docs-mcp
entry. Update theargs
to include necessary dependencies:
π§ Before:
"args": [
"run",
"--with",
"mcp[cli]",
"mcp",
"run",
"$YOUR PATH"
]
β After:
"google-docs-mcp": {
"command": "/usr/local/bin", // or wherever your Python binaries live
"args": [
"run",
"--with",
"mcp[cli]",
"--with",
"google-api-python-client",
"--with",
"google-auth",
"--with",
"google-auth-oauthlib",
"--with",
"google-auth-httplib2",
"--with",
"python-dotenv",
"mcp",
"run",
"/Users/sujannandikolsunilkumar/docs mcp/docs-mcp/server.py" #Your path will be different, don't need to change it.
]
}
- Save the file and restart Claude Desktop.
β Final Test
After restarting Claude:
-
You should be prompted to complete Google OAuth.
-
Once authorized, click on "Search & Tools" inside Claude.
-
You should see your Google Docs MCP Server listed and ready.
β¨ You Can Now Ask Claude To:
- Create a Google Doc and give it a title
- Create a Google Doc with a title and content
- Add more text to an existing Google Doc
π Need Help?
Feel free to reach out:
π§ nandikolsujan@gmail.com
π§ About MCP
This project uses Model Context Protocol (MCP) to enable LLMs to interact with tools directly through self-describing interfacesβno hardcoding needed. Claude reads and understands the tool capabilities and executes accordingly.