MCP.so
Sign In
Servers

Basic MCP Server Tool

@burrsutter

Overview

What is Basic MCP Server Tool?

Basic MCP Server Tool is a minimal MCP server implementation that can be packaged with Maven and executed via jbang. It is designed to be used with the mcp‑cli client and requires an OpenAI API key for LLM integration.

How to use Basic MCP Server Tool?

Clone the repository and run ./mvnw install to build. Install jbang (brew install jbang), then clone mcp‑cli, install uv (brew install uv), and run uv sync --reinstall in the mcp‑cli directory. Set the OPENAI_API_KEY environment variable, edit server_config.json to point to the jbang command, and finally run uv run mcp‑cli --server burrhello --provider openai --model gpt‑4o‑mini.

Key features of Basic MCP Server Tool

  • Packaged with Maven
  • Executed via jbang
  • Configured through server_config.json
  • Works with mcp‑cli client
  • Requires OpenAI API key

Use cases of Basic MCP Server Tool

FAQ from Basic MCP Server Tool

How to package the application?

Run ./mvnw install in the cloned repository.

How to install and run the server with jbang?

Install jbang via brew install jbang, then use the command jbang --java 21 --quiet org.acme:basic-tool:1.0.0-SNAPSHOT:runner.

How to configure the OpenAI API key?

Set the OPENAI_API_KEY environment variable using the key from the OpenAI platform.

How to start the server with mcp-cli?

Set up server_config.json with the correct jbang command and run uv run mcp-cli --server burrhello --provider openai --model gpt-4o-mini.

Tags

More from Other