Google Cloud Natural Language Server
FreeNot checkedEnables Claude to analyze sentiment, extract entities, classify content, and analyze syntax via Google Cloud Natural Language API.
About
Enables Claude to analyze sentiment, extract entities, classify content, and analyze syntax via Google Cloud Natural Language API.
README
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 |
|---|---|
analyze_sentiment |
Detects overall and per-sentence emotional tone (-1.0 to +1.0) |
extract_entities |
Identifies people, places, orgs, dates, and more with salience scores |
classify_content |
Categorizes text using Google's content taxonomy with confidence scores |
analyze_syntax |
Tokenizes text and labels parts-of-speech and dependency roles |
📋 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-server
2. Create a virtual environment
python -m venv venv
source venv/bin/activate # macOS/Linux
venv\Scripts\activate # Windows
3. Install dependencies
pip install -r requirements.txt
4. 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.json - Windows:
%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 repo - Restrict your Google API key to the Natural Language API only via GCP Console
- Consider adding API key IP restrictions for extra security
📚 Resources
- Google Cloud Natural Language API Docs
- MCP Protocol Specification
- Claude MCP Documentation
- Google Cloud Free Tier
📄 License
MIT License — feel free to fork, modify, and use this in your own projects.
Installing Google Cloud Natural Language Server
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/Pacamaraprogress/naturallanguageapimcpFAQ
Is Google Cloud Natural Language Server MCP free?
Yes, Google Cloud Natural Language Server MCP is free — one-click install via Unyly at no cost.
Does Google Cloud Natural Language Server need an API key?
No, Google Cloud Natural Language Server runs without API keys or environment variables.
Is Google Cloud Natural Language Server hosted or self-hosted?
A hosted option is available: Unyly runs the server in the cloud, no local setup required.
How do I install Google Cloud Natural Language Server in Claude Desktop, Claude Code or Cursor?
Open Google Cloud Natural Language Server on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzCompare Google Cloud Natural Language Server with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
