Nlp
FreeNot checkedMCP-NLP is a FastMCP application designed to provide NLP (Natural Language Processing) capabilities using the Model Context Protocol (MCP)
About
MCP-NLP is a FastMCP application designed to provide NLP (Natural Language Processing) capabilities using the Model Context Protocol (MCP)
README
MCP-NLP is a FastMCP application designed to provide NLP (Natural Language Processing) capabilities using the Model Context Protocol (MCP).
- FastMCP Framework v2: A modern framework for fast, Pythonic way to build MCP servers.
- Model Context Protocol (MCP): A protocol that allows for the management and control of LLM contexts.
- NLP-modules
textdistance: A module for calculating text distance metrics
Prerequisites
Before you begin, ensure you have the following installed:
Installation
Clone the repository:
git clone https://github.com/tivaliy/mcp-nlp.git cd mcp-nlpInstall dependencies (using
uv):uv sync
Configuration
Authentication Modes
The MCP-NLP server supports two authentication modes:
Unauthenticated Mode (default):
- No API key required to access the server
- Set environment variable
API_KEY_ENABLED=False
API Key Authentication:
- Requires a valid API key in the request header
- Set environment variable
API_KEY_ENABLED=TrueandAPI_KEY=your-secret-key - By default, the header name is
X-API-Key(can be customized withAPI_KEY_NAME)
Example .env file:
# Authentication configuration
API_KEY_ENABLED=True
API_KEY=not-a-secret
# API_KEY_NAME=X-API-Key # Optional: customize header name
Available Tools
The MCP-NLP server currently provides the following MCP tools:
Text Distance Module
Calculate similarity/distance between text sequences using various algorithms:
#textdistance_measure:- Purpose: Measures text distance between two sequences of strings
- Parameters:
source(required): The source text stringreference(required): The reference text string to compare againstalgorithm(optional): The algorithm to use (default:levenshtein)metric(optional): The metric to use (default:normalized_similarity)
- Returns: A float value representing the calculated distance/similarity
#textdistance_list_metrics:- Purpose: Lists all supported metrics for text distance algorithms
- Parameters: None
- Returns: A list of available metrics:
distance,similarity,normalized_distance,normalized_similarity,maximum
Supported Metrics:
distance: Raw distance scoresimilarity: Raw similarity scorenormalized_distance: Distance normalized to a 0-1 scalenormalized_similarity: Similarity normalized to a 0-1 scale (default)maximum: Maximum possible value for the algorithm
Default Algorithm:
Levenshtein
Usage
Local Running
To run the application locally:
Start the FastMCP application:
mcp-nlp --transport streamable-httpAccess the MCP server endpoint at
http://127.0.0.1:8000/mcp(in case ofstreamable-httptransport)
Run MCP Server Using Docker
To run the MCP server in a Docker container:
Build the Docker image:
docker build -t mcp-nlp .Run the Docker container:
docker run --rm -e TRANSPORT=streamable-http -p 8000:8000 mcp-nlpAccess the MCP server endpoint at
http://127.0.0.1:8000/mcp(in case ofstreamable-httptransport)
Make sure to set the TRANSPORT environment variable to streamable-http or sse when running the Docker container.
VS Code Integration
To use the MCP-NLP server with VS Code:
Make sure your MCP-NLP server is running
Add the server configuration to your VS Code
settings.json(usingstdiotransport):{ "servers": { "mcp-nlp": { "type": "stdio", "command": "${workspaceFolder}/.venv/bin/mcp-nlp", "env": { "API_KEY_ENABLED": "false" } } } }Enable MCP in VS Code:
"chat.mcp.enabled": true, "github.copilot.advanced": { "mcp.enabled": true }You can now use the MCP-NLP tools directly in VS Code through GitHub Copilot
MCP | Model Context Protocol | FastMCP | NLP
License
This project is licensed under the MIT License. See the LICENSE file for details.
Install Nlp in Claude Desktop, Claude Code & Cursor
unyly install nlpInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add nlp -- uvx mcp-nlpStep-by-step: how to install Nlp
FAQ
Is Nlp MCP free?
Yes, Nlp MCP is free — one-click install via Unyly at no cost.
Does Nlp need an API key?
No, Nlp runs without API keys or environment variables.
Is Nlp hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Nlp in Claude Desktop, Claude Code or Cursor?
Open Nlp 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
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectAmap Maps Mcp Server
MCP server for using the AMap Maps API
by duxiaohuiSupabase
Database, auth and storage
by SupabaseEverything
Reference / test server with prompts, resources, and tools.
Git
Tools to read, search, and manipulate Git repositories.
Sequential Thinking
Dynamic and reflective problem-solving through thought sequences.
Time
Time and timezone conversion capabilities.
Compare Nlp with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
