AiryLark MCP server is a specialized translation service module that follows the Model Context Protocol (MCP), enabling AI assistants like Claude to access professional-grade translation capabilities through a standardized interface. It offers high-precision translations with advanced features like domain-specific terminology recognition and quality assessment.
cd mcp-server
npm install
.env
file with the following settings:# Translation API Configuration
TRANSLATION_API_KEY=your_api_key
TRANSLATION_MODEL=your_model_name
TRANSLATION_BASE_URL=your_api_base_url
# Server Configuration
PORT=3031 # MCP server port, optional, defaults to 3031
Start the development server with:
npm run dev
Build and start the server:
npm run build
npm start
# Pull the official image
docker pull wizdy/airylark-mcp-server
# Run the container
docker run -p 3031:3031 --env-file .env -d wizdy/airylark-mcp-server
Create a docker-compose.yml
file:
services:
mcp-server:
image: wizdy/airylark-mcp-server
ports:
- "${MCP_PORT}:${MCP_PORT}"
environment:
- NODE_ENV=production
- PORT=${MCP_PORT}
- TRANSLATION_API_KEY=${TRANSLATION_API_KEY}
- TRANSLATION_MODEL=${TRANSLATION_MODEL}
- TRANSLATION_BASE_URL=${TRANSLATION_BASE_URL}
restart: always
Then run:
# Set environment variables or create .env file
export MCP_PORT=3031
export TRANSLATION_API_KEY=your_api_key
export TRANSLATION_MODEL=your_model_name
export TRANSLATION_BASE_URL=your_api_base_url
# Start the service
docker-compose up -d
Provides professional-grade text translation that automatically adapts to different domains and styles.
Parameters:
text
: Source text to translatetarget_language
: Target language code (e.g., 'zh', 'en', 'ja')source_language
: (Optional) Source language codehigh_quality
: (Optional) Whether to enable high-precision translation process, defaults to trueUsage Scenarios:
high_quality=true
for professional documents, academic papers, etc.high_quality=false
for informal content or quick translationsEvaluates translation quality and provides detailed feedback.
Parameters:
original_text
: Original texttranslated_text
: Translated textdetailed_feedback
: (Optional) Whether to provide detailed feedback, defaults to falseEvaluation Metrics:
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { SSEClientTransport } from "@modelcontextprotocol/sdk/client/sse.js";
// Connect to the MCP server
const transport = new SSEClientTransport("http://localhost:3031");
const client = new Client(
{ name: "assistant-client", version: "1.0.0" },
{ capabilities: { tools: {} } }
);
await client.connect(transport);
// Call the professional translation tool
const result = await client.callTool({
name: "translate_text",
arguments: {
text: "The mitochondrion is the powerhouse of the cell.",
target_language: "zh",
high_quality: true
}
});
console.log(result.content[0].text);
Add the following MCP server configuration in Cursor settings:
{
"mcpServers": {
"airylark-translation": {
"url": "https://airylark-mcp.vcorp.ai/sse"
}
}
}
To enable MCP server connection in Claude Chat:
https://airylark-mcp.vcorp.ai/sse
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "airylark-translation" '{"url":"https://airylark-mcp.vcorp.ai/sse"}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"airylark-translation": {
"url": "https://airylark-mcp.vcorp.ai/sse"
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"airylark-translation": {
"url": "https://airylark-mcp.vcorp.ai/sse"
}
}
}
3. Restart Claude Desktop for the changes to take effect