party-time-mcp
A simple MCP server that responds with 'It's Party Time' when asked about the current time.
The Party Time MCP Server is a straightforward implementation of a Model Context Protocol (MCP) server. It reads from stdin and writes to stdout, handling JSON-RPC messages. The server registers a single tool called 'get-time' and always responds with 'It's Party Time' when this tool is called. It is designed to comply with the MCP protocol, handling initialization, tool discovery, and tool execution requests. The server includes robust error handling and is tested for compatibility with the Hermes client. It is built using Elixir and can be executed as an escript.
Features
- Simple MCP server implementation
- Handles JSON-RPC messages
- Registers a single tool 'get-time'
- Complies with MCP protocol
- Robust error handling
MCP Tools
- {'get-time': "Responds with 'It's Party Time' when called."}
Usage with Different Platforms
macOS
bash
mix deps.get
mix escript.build
chmod +x ./party_time_mcp
Claude Desktop
{
"mcpServers": {
"partytime": {
"command": "/path/to/your/party_time_mcp",
"args": []
}
}
}
Testing
bash
./party_time_mcp
echo '{"jsonrpc":"2.0","id":"test-1","method":"tools/list"}' | ./party_time_mcp
echo '{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test-client","version":"0.1.0"}}}' | ./party_time_mcp
echo '{"jsonrpc":"2.0","method":"notifications/initialized"}' | ./party_time_mcp
echo '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"get-time","arguments":{}}}' | ./party_time_mcp
Frequently Asked Questions
What should I do if Claude Desktop cannot find the tool?
Ensure the path in your configuration is correct and that the file has execute permissions.
How do I fix JSON parsing errors?
Ensure the server outputs only clean, properly formatted JSON to stdout and check Claude Desktop logs for more details.
What if I encounter a Mix.env() error?
Rebuild the executable with the latest code that fixes this issue, as Mix is not available at runtime in an escript.
Related MCP Servers
View all developer_tools servers →context7
by upstash
Context7 MCP provides up-to-date, version-specific documentation and code examples directly into your prompt, enhancing the capabilities of LLMs by ensuring they use the latest information.
Sequential Thinking
by modelcontextprotocol
An MCP server implementation that provides a tool for dynamic and reflective problem-solving through a structured thinking process.
git-mcp
by idosal
GitMCP is a free, open-source, remote Model Context Protocol (MCP) server that transforms GitHub projects into documentation hubs, enabling AI tools to access up-to-date documentation and code.
Everything MCP Server
by modelcontextprotocol
The Everything MCP Server is a comprehensive test server designed to demonstrate the full capabilities of the Model Context Protocol (MCP). It is not intended for production use but serves as a valuable tool for developers building MCP clients.
exa-mcp-server
by exa-labs
A Model Context Protocol (MCP) server allows AI assistants to use the Exa AI Search API for real-time web searches in a secure manner.
repomix
by yamadashy
Repomix is a tool that packs your codebase into AI-friendly formats, making it easier to use with AI tools like LLMs.
mcpdoc
by langchain-ai
MCP LLMS-TXT Documentation Server provides a structured way to manage and retrieve LLM documentation using the Model Context Protocol.