Gitea MCP server for AI agents and assistants

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Gitea MCP or direct API to list repositories, create issues, manage pull requests, and search code through natural language.

Gitea logoGitea
Api Key

Gitea is a lightweight, community-managed code hosting solution written in Go. It offers simple, fast, and self-hosted Git repository management for teams and individuals.

47 Tools

Try Gitea now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
Gitea
Try asking
TOOLS

Supported Tools

Every Gitea action and event your agent gets out of the box.

Get ActivityPub Person Actor

Tool to retrieve the ActivityPub Person actor for a Gitea user.

Add Issue Dependency

Make one repository issue depend on another issue.

Cancel Workflow Run

Cancel an active Actions workflow run and return its resulting state.

Change Repository Files

Create, update, upload, rename, or delete files in one repository commit.

Create Branch

Create a repository branch from a branch, tag, or commit reference.

Create Issue

Create an issue with optional assignments and repository relationships.

Create Pull Request

Open a pull request between repository branches.

Create Repository Label

Create a repository label with configurable display and behavior settings.

Dispatch Workflow

Trigger a workflow_dispatch event and return the created run details.

Get Branch

Retrieve a repository branch, its commit, and effective protection state.

Get Commit

Retrieve one repository commit by Git ref or SHA.

Get Commit Status

Get the combined status and individual checks for a commit reference.

Get Current User

Return the Gitea user authenticated by the connected API token.

Get General API Settings

Retrieve the Gitea instance's global API settings, including pagination limits and response size constraints.

Get General Attachment Settings

Tool to retrieve the Gitea instance's global settings for file attachments including enabled status, allowed file types, size limits, and file count limits.

Get General Repository Settings

Tool to retrieve the Gitea instance's global settings for repositories including feature flags for mirroring, HTTP Git, migrations, stars, time tracking, and LFS.

Get General UI Settings

Tool to retrieve the Gitea instance's global settings for UI including default theme, allowed reactions, and custom emojis.

Get Gitignore Template Info

Tool to retrieve information about a specific gitignore template.

Get Git Object

Retrieve a repository Git tree or blob by object SHA.

Get Label Template Info

Tool to retrieve all labels from a specific label template.

Get License Template Info

Tool to retrieve information about a specific license template.

Get Node Info

Tool to retrieve the nodeinfo of the Gitea application.

Get Pull Request

Retrieve one pull request and its current merge state and references.

Get Release by Tag

Retrieve a repository release by its exact tag name.

Get Repository

Retrieve metadata and capabilities for one repository.

Get Repository Contents

Retrieve file content or directory entries from a repository path.

Get Signing Key

Tool to retrieve the default GPG signing key used by Gitea to sign commits.

Get Version

Tool to retrieve the version of the Gitea application.

Get Workflow Job

Get structured status and step details for one Gitea Actions job.

Get Workflow Job Logs

Retrieve the plain-text diagnostic log for a repository Actions job.

List Branches

List branches and their head commits for a Gitea repository.

List Commits

List and filter commits in a repository.

List Gitignore Templates

Tool to retrieve all available gitignore templates.

List Issue Comments

List comments on a repository issue, optionally bounded by update time.

List Label Templates

Tool to retrieve all available label templates.

List License Templates

Tool to retrieve all available license templates.

List Pull Request Files

List files changed by a pull request.

List Pull Requests

Filter and list pull requests in a repository.

List Workflow Run Jobs

List jobs and step outcomes for one repository Actions workflow run.

List Workflow Runs

List and filter Actions workflow runs for a repository.

Merge Pull Request

Merge now or after checks using a selected strategy, with optional requirement bypass and source-branch deletion.

Get All Organizations

Tool to retrieve a paginated list of all organizations in the Gitea instance.

List Organization Actions Secrets

List a page of an organization's Actions secrets, with optional pagination.

Render Markdown

Tool to render a markdown document as HTML with configurable rendering modes and context.

Render Markdown Raw

Tool to render raw markdown text as HTML.

Render Markup

Tool to render a markup document as HTML with support for multiple markup formats.

Upsert Repository File

Create, update, move, or rename a file, optionally on a new branch with force-push.

SETUP GUIDE

Connect Gitea MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
Install the Composio SDK and your agent framework
2

Create a session with MCP enabled

typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["gitea"],
  mcp: true,
});
Create a session scoped to Gitea and read its MCP URL and headers
3

Connect your agent to the MCP server

typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "List all open issues in my repository",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
Pass the session's MCP URL and headers to your agent and run a Gitea request
SETUP GUIDE

Connect Gitea API Tool with your Agent

1

Install Composio

typescript
npm install @composio/core @composio/openai openai
Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
2

Create a Composio session

typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["gitea"] });
const tools = await session.tools();
Initialize Composio with the OpenAI Responses provider and create a session scoped to Gitea
3

Run Gitea tools with your agent

typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "List all open issues in my repository" }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
Send a request, execute the Gitea tool calls through the session, and print the final answer

Why Use Composio?

AI Native Gitea Integration

  • Supports both Gitea MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for reading, writing, and querying your Gitea data

Managed Auth

  • Built-in API key handling with secure storage
  • Central place to manage, scope, and revoke Gitea access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Gitea
  • Scoped, least privilege access to Gitea resources
  • Full audit trail of agent actions to support review and compliance

Rolling this out across your team?

Give your team centralized access control across every framework with Composio’s MCP Gateway.

EXPLORE MCP GATEWAY
FAQ

Frequently asked questions

Start with Gitea.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Gitea tool your agent needs.Free to start.

Start building