techknowlogick f2b1bfdc7f fix typo
2025-03-21 06:57:35 +00:00
2025-03-18 07:03:59 +00:00
2025-03-20 23:12:37 +08:00
2025-03-16 00:21:29 +08:00
2025-03-16 00:21:29 +08:00
2025-03-19 02:59:18 +00:00
2025-03-16 00:21:29 +08:00
2025-03-16 15:22:57 +08:00
2025-03-21 06:57:35 +00:00

Gitea MCP Server

Gitea MCP Server is an integration plugin designed to connect Gitea with Model Context Protocol (MCP) systems. This allows for seamless command execution and repository management through an MCP-compatible chat interface.

🚧 Installation

There is currently no official release. You will need to build the Gitea MCP Server from source.

🔧 Build from Source

You can download the source code by cloning the repository using Git:

git clone https://gitea.com/gitea/gitea-mcp.git

Before building, make sure you have the following installed:

  • make
  • Golang (Go 1.24 or later recommended)

Then run:

make build

🛠️ Add to PATH

After building, copy the binary gitea-mcp to a directory included in your system's PATH. For example:

cp gitea-mcp /usr/local/bin/

🚀 Usage

This example is for Cursor, you can also use plugins in VSCode. To configure the MCP server for Gitea, add the following to your MCP configuration file:

  • stdio mode
{
  "mcpServers": {
    "gitea": {
      "command": "gitea-mcp",
      "args": [
        "-t", "stdio",
        "--host", "https://gitea.com"
        // "--token", "<your personal access token>"
      ],
      "env": {
        // "GITEA_HOST": "https://gitea.com",
        "GITEA_ACCESS_TOKEN": "<your personal access token>"
      }
    }
  }
}
  • sse mode
{
  "mcpServers": {
    "gitea": {
      "url": "http://localhost:8080/sse"
    }
  }
}

Note

You can provide your Gitea host and access token either as command-line arguments or environment variables. Command-line arguments have the highest priority

Once everything is set up, try typing the following in your MCP-compatible chatbox:

list all my repositories

Enjoy exploring and managing your Gitea repositories via chat!

Description
Interactive with Gitea instances with MCP
Readme MIT 13 MiB
Languages
Go 97.5%
Makefile 1.7%
Dockerfile 0.8%