Monkeymcp

io.github.jamesmontemagno由 GitHub 帳號 jamesmontemagno 發布v2.0.3更新於 Oct 24, 2026

MCP server providing monkey data, journeys, and location services for various monkey species.

已驗證STDIO僅桌面

概覽

AI 產生的概覽

提供猴子資料與模擬旅程的 MCP 伺服器,讓助理查詢猴子清單、單一猴子資訊並產生旅程與活動。

可以做什麼
列出所有猴子,或依名稱查詢特定猴子的資料。為指定猴子產生模擬旅程,包含路徑點、活動與健康統計。為所有猴子一次產生旅程。
適用情境
適合示範或測試 MCP 工具呼叫、想取得猴子資料與模擬旅程的場合,例如教學、展示或實驗性專案。不適合需要真實動物追蹤或正式資料的用途。
執行需求
以本機 stdio 程序執行,需 Docker 或 .NET 9.0 SDK;README 另提供遠端 Azure Functions 端點作為替代。無宣告的驗證、環境變數或標頭。
安裝前請注意
旅程與活動為隨機模擬資料,並非真實觀測;猴子資料來自外部 API 端點,查詢內容會傳送給第三方。工具僅讀取與產生資料,未顯示寫入或刪除行為。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Monkeymcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Monkey - Model Context Protocol (MCP) Server

Overview

This is a Model Context Protocol (MCP) server implementation built with .NET 9.0. The MCP server provides a communication protocol for facilitating interactions between various components in a model-driven system. This implementation demonstrates how to set up a basic MCP server with custom tools and services.

Try it

Quick Install for VS Code & VS

[Install Remote Server in VS Code] [Install Remote Server in VS Code Insiders]

[Install Docker Container in VS Code] [Install Docker Container in VS Code Insiders]

[Install Remote Server in Visual Studio] [Install Docker Container in Visual Studio]

Configure in VS Code with GitHub Copilot, Claude Desktop, or other MCP clients:

Option 1: Remote Azure Functions Server (Recommended)

json
{    "servers": {        "monkeymcp": {            "url": "https://func-monkeymcp-3t4eixuap5dfm.azurewebsites.net/",            "type": "http"        }    },    "inputs": []}

Option 2: Docker Container

json
{    "inputs": [],    "servers": {        "monkeymcp": {            "command": "docker",            "args": [                "run",                "-i",                "--rm",                "jamesmontemagno/monkeymcp"            ],            "env": {}        }    }}

Features

Core Components

  • MCP Server: Built using the ModelContextProtocol library (version 0.1.0-preview.2)
  • Standard I/O Transport: Uses stdio for communication with clients
  • Custom Tool Integration: Includes examples of how to create and register MCP tools

Services

  • MonkeyService: A sample service that fetches monkey data from an API endpoint

    • Provides methods to retrieve a list of all monkeys or find a specific monkey by name
    • Caches results for better performance
  • MonkeyLocationService: A service that generates unique journeys and activities for monkeys

    • Creates randomized path points based on monkey species behavior
    • Generates species-specific activities (grooming, howling, hot spring bathing, etc.)
    • Provides health statistics and movement patterns
    • Each journey includes fun activities like eating bananas, cleaning other monkeys, and exploration

Available Tools

The server exposes several tools that can be invoked by clients:

Monkey Tools
  • GetMonkeys: Returns a JSON serialized list of all available monkeys
  • GetMonkey: Retrieves information about a specific monkey by name
  • GetMonkeyJourney: Creates a unique journey path with activities and health stats for a specific monkey
  • GetAllMonkeyJourneys: Generates journey paths for all available monkeys

Configuration Options

Hosting Configuration

The server uses Microsoft.Extensions.Hosting (version 9.0.3) which provides:

  • Configuration from multiple sources (JSON, environment variables, command line)
  • Dependency injection for services
  • Logging capabilities

Logging Options

Several logging providers are available:

  • Console: Logs to standard output
  • Debug: Logs for debugging purposes
  • EventLog: Logs to the system event log (when running on Windows)
  • EventSource: Provides ETW (Event Tracing for Windows) integration

Getting Started

Prerequisites

  • .NET 9.0 SDK or later
  • Basic understanding of the Model Context Protocol (MCP)

Running the Server

  1. Clone this repository
  2. Navigate to the project directory
  3. Build the project: dotnet build
  4. Configure with VS Code or other client:
json
"monkeyserver": {    "type": "stdio",    "command": "dotnet",    "args": [        "run",        "--project",        "/Users/jamesmontemagno/GitHub/TestMCP/MonkeyMCP/MonkeyMCP.csproj"    ]}

Update the path to the project

Extending the Server

To add custom tools:

  1. Create a class and mark it with the [McpServerToolType] attribute
  2. Add methods with the [McpServerTool] attribute
  3. Optionally add [Description] attributes to provide documentation

Example:

csharp
[McpServerToolType]public static class CustomTool{    [McpServerTool, Description("Description of what the tool does")]    public static string ToolMethod(string param) => $"Result: {param}";}

Server-Sent Events Implementation (MonkeyMCPSSE)

Overview

The MonkeyMCPSSE project provides an alternative implementation of the Monkey MCP server using Server-Sent Events (SSE) over HTTP instead of stdio transport. This implementation runs as a web server, making it ideal for web-based clients and scenarios requiring HTTP-based communication.

Read more about SSE best practices for security here

Features

  • HTTP-based Transport: Runs on http://localhost:3001 by default
  • Server-Sent Events: Enables real-time, one-way communication from server to client
  • ASP.NET Core Integration: Built using ASP.NET Core's web server capabilities
  • MCP over HTTP: Implements the Model Context Protocol over HTTP transport

Running the SSE Server

  1. Navigate to the MonkeyMCPSSE directory
  2. Build and run the project:
  3. Connect and run in VS Code or using MCP Inspector npx @modelcontextprotocol/inspector

Implementation Details

The SSE implementation uses ASP.NET Core's built-in web server capabilities while maintaining the same monkey data service and tools as the stdio version. This makes it easy to switch between transport methods while keeping the core functionality intact.

Project Structure

  • /MonkeyMCP: Main project directory
    • MonkeyService.cs: Implementation of the service to fetch monkey data
    • MonkeyTools.cs: MCP tools for accessing monkey data
    • Program.cs: Entry point that configures and starts the MCP server

Dependencies

  • Microsoft.Extensions.Hosting (9.0.3): Provides hosting infrastructure
  • ModelContextProtocol (0.1.0-preview.2): MCP server implementation
  • System.Text.Json (9.0.3): JSON serialization/deserialization

License

This project is available under the MIT License.

MonkeyLocationService Features

The MonkeyLocationService provides rich simulation capabilities:

Monkey Type Configurations

  • Baboons: Savanna dwellers with social grooming behaviors and root foraging
  • Howler Monkeys: Forest inhabitants known for territorial howling and leaf eating
  • Japanese Macaques: Mountain monkeys that enjoy hot springs and snow play
  • Proboscis Monkeys: Mangrove specialists that swim and show off their distinctive noses
  • Golden Snub-Nosed Monkeys: High-altitude acrobats that huddle for warmth

Journey Components

  • Path Points: GPS coordinates showing where the monkey traveled
  • Activities: Species-specific behaviors with energy costs/benefits
  • Health Stats: Energy, happiness, hunger, social, stress, and health metrics
  • Time Tracking: Start/end times and activity durations
  • Distance Calculation: Total journey distance using Haversine formula

Unique Activities Include

  • Banana finding and eating
  • Mutual grooming sessions
  • Territory marking
  • Hot spring bathing (macaques)
  • Swimming (proboscis monkeys)
  • Acrobatic displays
  • Social interactions
  • Foraging and exploration

來源:README.md,提交 c8aedc4

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v2.0.3最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分