MCP Server (Go)

MCP Server (Go)

mcp_server_go•bypyljain

A Go Model Context Protocol server that exposes SQLite database querying as MCP tools over a JSON-RPC interface with SSE.

License: Not specified•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Executes SQL queries against a SQLite database and returns results in tabular format.
  • •Lists all available tables in the database.
  • •Implements the JSON-RPC 2.0 protocol with Server-Sent Events for real-time communication.
  • •Supports token-based authentication requiring a Bearer token on requests.

BEST FOR

  • •Allowing an AI client to explore a SQLite database by listing its tables.
  • •Running ad-hoc SQL queries against a SQLite database through MCP.

ABOUT MCP_SERVER_GO

MCP Server (Go) is cataloged as an MCP server attributed to pyljain. A Go Model Context Protocol server that exposes SQLite database querying as MCP tools over a JSON-RPC interface with SSE. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP Server (Go) are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What endpoints does the server expose?

A root GET endpoint that establishes an SSE connection and returns a message URL, plus a messages POST endpoint per session for handling requests.

Upstream README

View this exact version on GitHub

README.md · f2aaaa296a8b · Fetched 2026-11-13 11:59:23 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

MCP Server (Go)

A Go implementation of a Model Context Protocol (MCP) server that provides database querying capabilities through a JSON-RPC interface.

Features

  • JSON-RPC 2.0 protocol implementation
  • Server-Sent Events (SSE) for real-time communication
  • SQLite database integration
  • Tool-based architecture for extensible functionality
  • Authentication support

Available Tools

  1. Query Tool

    • Execute SQL queries against the database
    • Returns results in tabular format
  2. List Tables Tool

    • List all available tables in the database

Getting Started

Prerequisites

  • Go 1.x
  • SQLite3

Installation

  1. Clone the repository:
git clone <repository-url>
cd mcp_server_go
  1. Install dependencies:
go mod download

Configuration

The server uses a simple token-based authentication system. The expected token is hardcoded as "abcd" in the server configuration.

Running the Server

go run main.go

The server will start on port 8777.

API Documentation

Authentication

All requests must include an Authorization header with the format:

Authorization: Bearer <token>

Endpoints

1. Root Endpoint (/)

  • Method: GET
  • Purpose: Establishes a Server-Sent Events (SSE) connection
  • Response: Returns an endpoint URL for message communication

2. Messages Endpoint (/messages/{sessionID})

  • Method: POST
  • Purpose: Handle client requests
  • Supported Methods:
    • initialize: Initialize the connection
    • tools/list: List available tools
    • tools/call: Execute a specific tool

Example Usage

  1. Initialize connection:
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "initialize",
  "params": {}
}
  1. List available tools:
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/list",
  "params": {}
}
  1. Execute a query:
{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "tools/call",
  "params": {
    "name": "query",
    "arguments": {
      "query": "SELECT * FROM your_table"
    }
  }
}

Project Structure

mcp_server_go/
├── main.go              # Main server implementation
├── pkg/
│   ├── messages/        # Message structures
│   ├── methods/         # Request handling methods
│   └── tools/           # Tool implementations
└── mcp.db              # SQLite database file

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP Server (Go) from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp_server_go)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.

Repository stats unavailable
Databases & Storage