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.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

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.

上游原版 README

在 GitHub 查看同一版本原文

README.md · f2aaaa296a8b · 采集于 2026-11-13 11:59:23 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

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.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

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