@dennisk2025/sentence-to-title-case
v1.0.0
Published
Converts regular sentences into proper title case, capitalizing the first letter of all major words while leaving short conjunctions, articles, and prepositions in lowercase (unless they are the first or last word). Useful for formatting headlines, blog t
Readme
sentence-to-title-case
Converts regular sentences into proper title case, capitalizing the first letter of all major words while leaving short conjunctions, articles, and prepositions in lowercase (unless they are the first or last word).
Perfect for formatting headlines, blog titles, and editorial content to professional publishing standards.
Installation
You can run this MCP server directly without installation using npx:
npx @dennisk2025/sentence-to-title-caseOr install it locally:
npm install @dennisk2025/sentence-to-title-caseThen run via command line:
npx sentence-to-title-caseAdding to Claude Desktop
To use this server with Claude Desktop, add the following to your config file:
{
"mcpServers": {
"titlecase": {
"command": "npx",
"args": ["@dennisk2025/sentence-to-title-case"]
}
}
}Add this to your Claude Desktop config file at:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Usage & Examples
Available tool:
to_title_case: Converts a sentence to correct title case.
Tool: to_title_case
Parameters:
sentence(string, required): The sentence to format into title case.
Example call:
Input:
{ "name": "to_title_case", "arguments": { "sentence": "the quick brown fox jumps over the lazy dog" } }Output:
{ "result": "The Quick Brown Fox Jumps over the Lazy Dog" }Input:
{ "name": "to_title_case", "arguments": { "sentence": "learning and practicing on your own is the best way to master a skill." } }Output:
{ "result": "Learning and Practicing on Your Own Is the Best Way to Master a Skill." }
Error Handling:
- If the
sentenceparameter is missing or empty, an error will be returned. - If an unknown tool name is provided, an error will be returned.
List of Tools
1. to_title_case
- Description: Transforms a given sentence into correct title case according to standard English capitalization rules.
- Input:
sentence(string, required): The sentence to format into title case.
- Output:
{ "result": <transformed title-case sentence> }
For more details about the Model Context Protocol (MCP), visit modelcontextprotocol.com
