MCP-scala

by windymelt

Not rated
GitHub

About

A Model Context Protocol server implementation written in Scala 3.

Details

Author
windymelt
Categories
Developer Tools

Setup

Install MCP-scala in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/windymelt/mcp-scala

Follow the installation instructions in the repository README, then restart your MCP client.

Model Context Protocol server written in Scala 3

- Automatic derivation of JSON Schema
- Define your tool
- Text content part
- Other content parts
- Notification handling
- Capability handling
- stdio transport
- HTTP transport
- Authorization feature

This implementation needs your attention and contribution.

Feel free to open Issue / PR to contribute this project.

Then, utilize server in your MCP client:

// Example for Cline { "mcpServers": { "mcpscala": { "disabled": false, "timeout": 30, "command": "sh", "args": ["/path/to/run.sh"], "transportType": "stdio" } } }

- randomNumber

- generate random number betweenmintomax.

- generate a sequence of numbers frommintomax.

- calculate the sum of a sequence of numbers.

//> using scala 3 //> using toolkit typelevel:default //> using dep dev.capslock::mcpscala:0.1.0 package dev.capslock.mcpscala import cats.effect.IO import cats.effect.IOApp import dev.capslock.mcpscala.transport.StdioServer import dev.capslock.mcpscala.mcp.ContentPart import sttp.tapir.Schema.annotations.description case class RandomNumberInput( @description("Minimum value (inclusive)") min: Int, @description("Maximum value (exclusive)") max: Int ) derives io.circe.Decoder, sttp.tapir.Schema def randomNumber(input: RandomNumberInput): IO[Seq[ContentPart]] = IO { val random = scala.util.Random.between(input.min, input.max) Seq(ContentPart.TextContentPart(random.toString)) } /* Entry point for the Stdio server. / object StdioMain extends McpIOApp( name = "random-number", header = "Generate a random number", ): val handlers = Handler.methodHandlers( Map( "randomNumber" -> server.Tool(randomNumber), ) )

This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.

Create crafted UI components inspired by the best 21st.dev design engineers.

Bring agent evaluations, observability, and synthetic test set generation directly into your IDE for free with Galileo's new MCP server

An MCP server to help AI assistants to answer questions and generate AccelByte Extend SDK code more effectively .

MCP server for AI Diagram Maker — generate beautiful software engineering diagrams directly inside Cursor, Claude Desktop, Claude Code, or any MCP-compatible AI agent

ALAPI MCP Tools,Call hundreds of API interfaces via MCP

AI-powered SVG animation generator that transforms static files into animated SVG components using the Allyson platform

MCP server that gives AI assistants on-demand access to 1,500+ amCharts docs, ~300 code examples, and 1000+ class API references.

APIMatic MCP Server is used to validate OpenAPI specifications using APIMatic. The server processes OpenAPI files and returns validation summaries by leveraging APIMatic’s API.

One shared context layer for AI agents and humans — live API specs, DB schemas, and versioned contracts across repos so every agent and teammate works from the same source of truth.

Build and deploy full-stack Next.js apps with 98 tools for React, AWS, and MongoDB

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.