mcp-tools

mcp-tools

Collection of MCP servers for Forgejo, NetBox, Authentik, and CouchDB, enabling issue tracking, device management, authentication, and database operations via MCP and CLI.

Category
访问服务器

README

mcp-tools

MCP (Model Context Protocol) servers for Forgejo and NetBox, packaged as standalone tools for any MCP-compatible client (Kiro, Cursor, Claude Desktop, etc.) and as CLI utilities for scripting and automation.

Packages

Package Description
@mcp-tools/core Shared library — credential providers, config loading, HTTP client, write guard, logging
forgejo-mcp-server MCP server + CLI for Forgejo/Gitea API (issues, PRs, branches, releases, webhooks, project boards)
netbox-mcp-server MCP server + CLI for NetBox API (devices, IPs, VMs, services, cables, journals)
authentik-mcp-server MCP server for Authentik API (users, groups, applications, providers, tokens)
couchdb-mcp-server MCP server for CouchDB API (databases, users, permissions, replication, compaction)

Quick Start

Install

# Run directly with npx (no install required)
npx forgejo-mcp-server --config ./forgejo-config.yaml
npx netbox-mcp-server --config ./netbox-config.yaml

# Or install globally
npm install -g forgejo-mcp-server netbox-mcp-server

Configure

Create a config file (YAML or JSON):

# forgejo-config.yaml
baseUrl: "https://your-forgejo-instance.example.com/api/v1"
credentialProvider:
  type: keepassxc       # or: env, file
  settings:
    databasePath: "/path/to/your.kdbx"
    keyfilePath: "/path/to/keyfile"
credentialId: "path/to/api-token"
logLevel: error
defaultOwner: "myorg"
defaultRepo: "myrepo"

Environment variables can override config file values:

Variable Overrides
MCP_CONFIG_PATH Config file location
MCP_BASE_URL baseUrl
MCP_CREDENTIAL_PROVIDER credentialProvider.type
MCP_CREDENTIAL_ID credentialId
MCP_LOG_LEVEL logLevel

Register with an MCP Client

Kiro / Claude Desktop (mcp.json):

{
  "mcpServers": {
    "forgejo": {
      "command": "npx",
      "args": ["forgejo-mcp-server", "--config", "/path/to/forgejo-config.yaml"]
    },
    "netbox": {
      "command": "npx",
      "args": ["netbox-mcp-server", "--config", "/path/to/netbox-config.yaml"]
    }
  }
}

CLI Mode

Each server doubles as a standalone CLI tool:

# List open issues
forgejo-mcp-server cli list_issues --state open

# Get a device from NetBox
netbox-mcp-server cli get_device --id 42

# Human-readable table output
forgejo-mcp-server cli list_repos --format table

# Write operations require --allow-write
forgejo-mcp-server cli create_issue --title "New issue" --allow-write

Non-Destructive Mode

All write operations are blocked by default. Each write tool requires an explicit allow_write: true parameter (MCP) or --allow-write flag (CLI) per call. There is no global override — this ensures safety even in shared agent environments.

Credential Providers

Provider Config type How it resolves credentials
KeePassXC keepassxc Spawns keepassxc-cli with configured DB and keyfile/password
Environment env Maps credential ID to uppercase env var
File file Reads basePath/<credentialId> from disk
macOS Keychain keychain Uses security find-generic-password
Docker Secrets docker-secrets Reads from /run/secrets/
Bitwarden bitwarden Uses bw get password <item>

Providers can be chained with priority ordering — first successful resolve wins:

credentialProvider:
  - type: env
    settings: { prefix: "FORGEJO_" }
  - type: keepassxc
    settings: { databasePath: "~/secrets.kdbx", keyfilePath: "~/.key" }

Platform Support

  • Runtime: Node.js 20+
  • OS: macOS, Linux, Windows
  • MCP Clients: Any client supporting stdio transport (Kiro, Cursor, Claude Desktop, etc.)

Development

# Install dependencies
npm install

# Build all packages
npm run build

# Run tests
npm test

# Type-check without emitting
npm run lint

Alternatives

If you only need one of these services, consider these dedicated MCP servers:

Forgejo / Gitea

This project adds: web session support for project board operations, credential provider chain, CLI mode.

NetBox

This project adds: bulk operations, available-IP finder, cable management, journal entries, CLI mode.

Authentik

No dedicated Authentik MCP server exists in the community (as of 2026). This project provides the first one.

CouchDB

This project adds: user/permission management, replication status, database compaction.

AI Disclosure

This project's code and documentation were written with the assistance of LLMs:

  • Perplexity and Abacus — requirements research and API evaluation
  • Kiro (Claude) — spec authoring, implementation, testing, and documentation

All generated code was reviewed, tested (259 tests), and validated against live service instances by the project maintainer.

License

GPL-3.0-or-later

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选