sample-kt-mcp-server
A plactice of MCP (Model Context Protocol) Server by kotlin.
Overview
The sample-kt-mcp-server is a practice implementation of a Model Context Protocol (MCP) server using the Kotlin programming language.
To use the sample-kt-mcp-server, clone the repository from GitHub, set up your Kotlin environment, and run the server according to the provided instructions in the repository.
- Implementation of the Model Context Protocol (MCP) in Kotlin. - Easy to set up and run for developers familiar with Kotlin. - Open-source project licensed under the MIT License.
- Learning about the Model Context Protocol (MCP) and its implementation.
- Developing applications that require a context-aware server.
- Contributing to open-source projects in Kotlin.
Add to your AI client
Use these steps to connect sample-kt-mcp-server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"sample-kt-mcp-server-nekorush14": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sample-kt-mcp-server-nekorush14"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"sample-kt-mcp-server-nekorush14": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sample-kt-mcp-server-nekorush14"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"sample-kt-mcp-server-nekorush14": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sample-kt-mcp-server-nekorush14"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"sample-kt-mcp-server-nekorush14": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sample-kt-mcp-server-nekorush14"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"sample-kt-mcp-server-nekorush14": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sample-kt-mcp-server-nekorush14"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"sample-kt-mcp-server-nekorush14": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sample-kt-mcp-server-nekorush14"
]
}
}
}FAQ
What is the Model Context Protocol (MCP)?
MCP is a protocol designed for context-aware applications, allowing them to understand and respond to user context.
Is this project suitable for beginners?
Yes! While some knowledge of Kotlin is beneficial, the project is designed to help users learn about MCP.
Can I contribute to this project?
Absolutely! Contributions are welcome, and you can find guidelines in the repository.