Google Cloud Natural Language Server
БесплатноНе проверенEnables Claude to analyze sentiment, extract entities, classify content, and analyze syntax via Google Cloud Natural Language API.
Описание
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.
Установка Google Cloud Natural Language Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/Pacamaraprogress/naturallanguageapimcpFAQ
Google Cloud Natural Language Server MCP бесплатный?
Да, Google Cloud Natural Language Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Google Cloud Natural Language Server?
Нет, Google Cloud Natural Language Server работает без API-ключей и переменных окружения.
Google Cloud Natural Language Server — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить Google Cloud Natural Language Server в Claude Desktop, Claude Code или Cursor?
Открой Google Cloud Natural Language Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: 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
автор: xuzexin-hzCompare Google Cloud Natural Language Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
