Google Cloud Natural Language MCP Server
Integrates with the Google Cloud Natural Language API to provide tools for sentiment analysis, entity extraction, content classification, and syntax analysis.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Google Cloud Natural Language MCP ServerAnalyze sentiment of this: 'I am happy.'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
๐ง Google Cloud Natural Language API โ MCP Server
A Model Context Protocol (MCP) server that connects Claude to the Google Cloud Natural Language API, enabling sentiment analysis, entity extraction, content classification, and syntax analysis as native Claude tools.
๐ No
.envfile needed. Your API key is stored securely in your local Claude Desktop config โ it never touches this repo.
โจ Features
Tool | Description |
| Detects overall and per-sentence emotional tone (-1.0 to +1.0) |
| Identifies people, places, orgs, dates, and more with salience scores |
| Categorizes text using Google's content taxonomy with confidence scores |
| Tokenizes text and labels parts-of-speech and dependency roles |
Related MCP server: Company MCP Server - Google Workspace Integration
๐ Prerequisites
Python 3.10+
A Google Cloud account
The Cloud Natural Language API enabled in your GCP project
A valid Google API Key
Claude Desktop installed
๐ Setup
1. Clone the repo
git clone https://github.com/YOUR_USERNAME/google-nl-mcp-server.git
cd google-nl-mcp-server2. Create a virtual environment
python -m venv venv
source venv/bin/activate # macOS/Linux
venv\Scripts\activate # Windows3. Install dependencies
pip install -r requirements.txt4. Add your API key to Claude Desktop config
Your API key is configured locally in Claude Desktop only โ not in this repo. This means it is never exposed on GitHub.
Open your Claude Desktop config file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Add the following block, replacing the path and key with your own:
{
"mcpServers": {
"google-nl": {
"command": "python",
"args": ["/absolute/path/to/google-nl-mcp-server/server.py"],
"env": {
"GOOGLE_API_KEY": "AIza..."
}
}
}
}๐ก Use the absolute path to
server.pyon your machine (e.g./Users/yourname/projects/google-nl-mcp-server/server.pyon macOS).
Then restart Claude Desktop. The tools will appear automatically in Claude's tool picker.
๐งช Example Usage with Claude
Once connected, you can ask Claude things like:
"Analyze the sentiment of this customer review: 'The product arrived late and was damaged. Very disappointing.'"
"Extract all the entities mentioned in this news article..."
"What category does this blog post belong to?"
"Break down the syntax of this sentence for me."
Claude will automatically call the appropriate tool and reason over the structured results.
๐ Project Structure
google-nl-mcp-server/
โโโ server.py # Main MCP server
โโโ requirements.txt # Python dependencies
โโโ .gitignore # Keeps secrets out of git
โโโ README.md # You are here๐ Security Notes
Your API key lives only in
claude_desktop_config.jsonon your local machine โ never in this repoRestrict your Google API key to the Natural Language API only via GCP Console
Consider adding API key IP restrictions for extra security
๐ Resources
๐ License
MIT License โ feel free to fork, modify, and use this in your own projects.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Pacamaraprogress/naturallanguageapimcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server