Token导航 LogoToken导航TokenDH.com
Moodle Plugin Db MCP logo
数据服务未说明官方级别未说明来源级核验

Moodle Plugin Db MCP

MCP Server

一个基于TypeScript的MCP服务器,用于查询Moodle插件数据库API,提供插件版本查找和缓存管理功能。

工具数

3

提示词数

0

GitHub Stars

0

资源数

0
版本管理TypeScriptClaudeClaude DesktopClaudeVS Code

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

micaherne

提供方

micaherne

最后核验

2026/5/17 20:19

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

Moodle Plugin DB MCP Server

This repository contains a TypeScript-based MCP (Model Context Protocol) server for querying the Moodle plugin database API at:

https://download.moodle.org/api/1.3/pluglist.php

What this provides

  • Proper MCP Server: Built with @modelcontextprotocol/sdk
  • Browser Testing: MCP Inspector integration for interactive testing
  • stdio Transport: Compatible with Claude Desktop and other MCP clients

Available Tools

ToolDescriptionParameters
get_raw_pluglistFetch raw JSON data from Moodle plugin database API (with caching)None
find_latest_plugin_versionFind the latest version of a plugin compatible with a Moodle version or releaseplugin_name (string): Name of the plugin component (e.g., mod_attendance)
moodle_identifier (string): Moodle identifier as 10-digit version number (e.g., "2022111500") or major release (e.g., "4.1")
get_cache_statusGet information about the current cache statusNone

Quick Start

Local Development

Install dependencies:

npm install

GitHub Codespaces (Recommended)

The easiest way to get started is using GitHub Codespaces:

  1. Create a GitHub repository from this code
  2. Open in Codespaces: Click the "Code" button → "Codespaces" → "Create codespace on main"
  3. Automatic setup: The devcontainer will automatically:

- Install Node.js 20 - Run npm install - Configure VS Code with recommended extensions - Forward the necessary ports (3000, 6274, 6277)

Testing with MCP Inspector (Browser)

The easiest way to test and develop your MCP server is using the MCP Inspector, which provides a web interface:

npm run inspector:dev

This will:

  1. Build the TypeScript code
  2. Launch the MCP Inspector
  3. Open your browser to an interactive testing interface (auto-forwarded in Codespaces)
  4. Show you all available tools and let you test them

You can also run the inspector against an already-built version:

npm run build
npm run inspector

Using with Claude Desktop

Add this to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "moodle-plugin-db": {
      "command": "node",
      "args": ["/absolute/path/to/moodle-plugin-db-mcp/dist/index.js"],
      "env": {
        "CACHE_DIR": "/path/to/your/cache/directory"
      }
    }
  }
}

Configuration Options

The server supports the following configuration options:

  • CACHE_DIR (environment variable): Directory to store cached plugin data (defaults to system temp directory)

- Example: CACHE_DIR=/Users/username/.cache/moodle-plugins npm start - The cache uses a 1-hour TTL with automatic fallback to fresh data if needed

Then restart Claude Desktop and you'll see the tools available in the interface.

Development

# Build TypeScript
npm run build

# Run the built server (stdio mode)
npm start

Codespaces Features

This repository is configured for GitHub Codespaces with:

  • Pre-configured environment: Node.js 20, TypeScript, and all dependencies
  • VS Code extensions: TypeScript, Prettier, Copilot, and JSON support
  • Port forwarding: MCP Inspector UI automatically opens in browser
  • Instant setup: Ready to code in seconds

Codespaces Port Configuration

  • Port 3000: MCP Server (for direct connections)
  • Port 6274: MCP Inspector UI (auto-opens in browser)
  • Port 6277: MCP Inspector Proxy (background service)

Completed Features

  • ✅ Parse the pluglist JSON response into typed structures
  • ✅ Implement real logic for find_plugin_latest_version tool with Moodle version/release filtering
  • ✅ Add filesystem caching layer for the pluglist data (1-hour TTL with fallback)
  • ✅ Basic error handling and input validation
  • ✅ MCP settings support for configurable cache directory

Contributing

  1. Fork this repository
  2. Open in GitHub Codespaces for instant development environment
  3. Make your changes and test with npm run inspector:dev
  4. Submit a pull request

目录标签

目录标签

版本管理TypeScriptClaudeMoodle插件本地部署数据库查询缓存服务

支持客户端

Claude DesktopClaudeVS Code

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

3

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明none部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP