New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

@espanol/mcp

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@espanol/mcp

MCP adapter for Espanol — thin wrapper around CLI/core

latest
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

@espanol/mcp

MCP adapter for DialectOS — provides 16 Model Context Protocol tools for Spanish dialect translation, i18n management, and documentation translation.

Installation

pnpm add @espanol/mcp

Quick Start

Add to your MCP client configuration:

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "dialectos": {
      "command": "npx",
      "args": ["-y", "@espanol/mcp"],
      "env": {
        "ALLOWED_LOCALE_DIRS": "/path/to/your/locales"
      }
    }
  }
}

Cursor (.cursor/mcp.json):

{
  "mcpServers": {
    "dialectos": {
      "command": "npx",
      "args": ["-y", "@espanol/mcp"],
      "env": {}
    }
  }
}

16 Available Tools

Markdown Translation (4 tools)

ToolDescriptionKey Parameters
translate_markdownTranslate markdown preserving code blocks, links, tablesfilePath, dialect?, provider?
extract_translatableExtract translatable text from markdownfilePath
translate_api_docsTranslate API docs with table/list handlingfilePath, dialect?, provider?
create_bilingual_docCreate side-by-side bilingual documentfilePath, dialect?, provider?

i18n Operations (6 tools)

ToolDescriptionKey Parameters
detect_missing_keysCompare locale files, find missing keysbasePath, targetPath
translate_missing_keysTranslate missing keys to target localebasePath, targetPath, dialect?
batch_translate_localesBatch translate to multiple dialectsdirectory, targets[]
manage_dialect_variantsCreate dialect-specific variantssourcePath, variant
check_formalityCheck formality consistencylocalePath, register?
apply_gender_neutralApply gender-neutral languagelocalePath, strategy?

Translation (6 tools)

ToolDescriptionKey Parameters
translate_textTranslate text to Spanish dialecttext, dialect?, formal?
detect_dialectDetect Spanish dialect from texttext
translate_code_commentTranslate code commentscode, dialect?
translate_readmeTranslate README filesfilePath, dialect?
search_glossarySearch built-in glossary (500+ terms)query
list_dialectsList all 20 Spanish dialects(none)

Configuration

Environment Variables

VariableDescriptionDefault
DEEPL_AUTH_KEYDeepL API key(none)
LIBRETRANSLATE_URLLibreTranslate endpoint URL(none)
ALLOWED_LOCALE_DIRSComma-separated allowed directoriesprocess.cwd()
MYMEMORY_RATE_LIMITMyMemory provider requests/min60
ESPANOL_RATE_LIMITRate limit as max,windowMs60,60000
ESPANOL_LOG_LEVELLogging levelerror

Config File

espanol-mcp --config ./dialectos.config.json
{
  "rateLimit": { "maxRequests": 100, "windowMs": 60000 },
  "security": {
    "maxFileSize": 524288,
    "maxContentLength": 50000,
    "allowedDirs": ["/path/to/locales"]
  },
  "logging": { "level": "info" }
}

Security

  • Path traversal protection on all file operations
  • Symlink resolution via fs.realpathSync
  • Content length validation (512KB files, 50KB content)
  • Rate limiting (60 requests/minute default)
  • Input sanitization (no null bytes, no control chars)
  • Error message sanitization (no API keys, no stack traces)

Development

pnpm --filter @espanol/mcp test
pnpm --filter @espanol/mcp build

FAQs

Package last updated on 27 Mar 2026

Related posts