Skip to main content
Glama

Kobold MCP Server

Kobold MCP Server

A Model Context Protocol (MCP) server implementation for interfacing with KoboldAI. This server enables integration between KoboldAI's text generation capabilities and MCP-compatible applications.

Features

  • Text generation with KoboldAI
  • Chat completion with persistent memory
  • OpenAI-compatible API endpoints
  • Stable Diffusion integration
  • Built on the official MCP SDK
  • TypeScript implementation

Installation

npm install kobold-mcp-server

Prerequisites

  • Node.js (v16 or higher)
  • npm or yarn package manager
  • Running KoboldAI instance

Usage

import { KoboldMCPServer } from 'kobold-mcp-server'; // Initialize the server const server = new KoboldMCPServer(); // Start the server server.start();

Configuration

The server can be configured through environment variables or a configuration object:

const config = { apiUrl: 'http://localhost:5001' // KoboldAI API endpoint }; const server = new KoboldMCPServer(config);

Supported APIs

  • Core KoboldAI API (text generation, model info)
  • Chat completion with conversation memory
  • Text completion (OpenAI-compatible)
  • Stable Diffusion integration (txt2img, img2img)
  • Audio transcription and text-to-speech
  • Web search capabilities

Development

  1. Clone the repository:
git clone https://github.com/yourusername/kobold-mcp-server.git cd kobold-mcp-server
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

Dependencies

  • @modelcontextprotocol/sdk: ^1.0.1
  • node-fetch: ^2.6.1
  • zod: ^3.20.0
  • zod-to-json-schema: ^3.23.5

Contributing

Contributions welcome! Please feel free to submit a Pull Request.

License

MIT License - see LICENSE file for details.

Support

For issues and feature requests, please use the GitHub issue tracker.

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

A server enabling integration between KoboldAI's text generation capabilities and MCP-compatible applications, with features like chat completion, Stable Diffusion, and OpenAI-compatible API endpoints.

  1. Features
    1. Installation
      1. Prerequisites
        1. Usage
          1. Configuration
            1. Supported APIs
              1. Development
                1. Dependencies
                  1. Contributing
                    1. License
                      1. Support

                        Related MCP Servers

                        • -
                          security
                          F
                          license
                          -
                          quality
                          An auto-generated MCP server that enables interaction with the OpenAI API, allowing users to access OpenAI's models and capabilities through the Multi-Agent Conversation Protocol.
                          Last updated -
                          Python
                        • A
                          security
                          A
                          license
                          A
                          quality
                          An MCP server that enables AI applications to access 20+ model providers (including OpenAI, Anthropic, Google) through a unified interface for text and image generation.
                          Last updated -
                          2
                          10
                          Python
                          MIT License
                        • -
                          security
                          F
                          license
                          -
                          quality
                          An MCP server that provides user dialogue capabilities for AI code editors, allowing AI to interact with users through dialog boxes when needing input during the coding process.
                          Last updated -
                          Python
                        • -
                          security
                          A
                          license
                          -
                          quality
                          An MCP server that provides deep knowledge about OpenAI APIs and SDKs, enabling users to query technical information through various MCP clients including ChatGPT Deep Research, Cursor, and OpenAI Responses API.
                          Last updated -
                          9
                          TypeScript
                          MIT License

                        View all related MCP servers

                        MCP directory API

                        We provide all the information about MCP servers via our MCP API.

                        curl -X GET 'https://glama.ai/api/mcp/v1/servers/PhialsBasement/KoboldCPP-MCP-Server'

                        If you have feedback or need assistance with the MCP directory API, please join our Discord server