MonkeyMCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MonkeyMCPGenerate a journey for a spider monkey"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
Related MCP server: Glama MCP Server Search
Try it
Quick Install for VS Code & VS
Configure in VS Code with GitHub Copilot, Claude Desktop, or other MCP clients:
Option 1: Remote Azure Functions Server (Recommended)
{
"servers": {
"monkeymcp": {
"url": "https://func-monkeymcp-3t4eixuap5dfm.azurewebsites.net/",
"type": "http"
}
},
"inputs": []
}Option 2: Docker Container
{
"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
Clone this repository
Navigate to the project directory
Build the project:
dotnet buildConfigure with VS Code or other client:
"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:
Create a class and mark it with the
[McpServerToolType]attributeAdd methods with the
[McpServerTool]attributeOptionally add
[Description]attributes to provide documentation
Example:
[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:3001by defaultServer-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
Navigate to the MonkeyMCPSSE directory
Build and run the project:
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
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseBqualityDmaintenanceAn MCP server that provides detailed Pokémon information by integrating with the PokeAPI, allowing users to fetch comprehensive data about Pokémon and simulate battles.22
- AlicenseAqualityDmaintenanceAn MCP server for searching and exploring MCP servers from the Glama MCP directory. This server provides tools to search for MCP servers, get detailed information about specific servers, and explore available server attributes using the Glama MCP API.33MIT
- Alicense-qualityCmaintenanceEnables to perform mathematical calculations, retrieve weather information, and manage files through a standardized MCP interface, showcasing best practices for building MCP servers.1MIT
- Alicense-qualityCmaintenanceAn MCP server implementing the Wildlife Insights GraphQL API, providing natural language tools for wildlife management and species identification.17MIT
Related MCP Connectors
This MCP server provides seamless access to Malaysia's government open data, including datasets, w…
MCP server for NanoBanana AI image generation and editing
MCP server for Grok Imagine AI video generation
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jamesmontemagno/MonkeyMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server