ndajiya/context-server-template
If you are the rightful owner of context-server-template and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
This is a lightweight, generic Context server implementation written in Node.js, designed to work with any LLM that supports the Context tool calling interface.
context-server-template
LLM-agnostic Context Server- node
This is a lightweight, generic Context server implementation written in Node.js. It defines a few simple tools and can be used with any LLM that supports the Context tool calling interface — including Claude, ChatGPT (via wrappers), OpenDevin, or open-source LLMs.
🛠 Features
- Supports Context Server over stdio
- Defines two example tools:
about— returns information about the serverhello— returns a friendly greeting
- Built with the official @modelcontextprotocol/sdk
📦 Installation
git clone https://github.com/yourusername/cs-generic-server.git
cd cs-generic-server
npm install
🚀 Running the Server
node index.js
This will start the server and connect it via stdio (e.g., for use in Claude Desktop or similar tool-calling environments).
🔧 Tool Definitions
- about Description: Returns information about the MCP server.
Input Schema: {}
- hello Description: Returns a greeting.
Input Schema:
json
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name to greet (optional)"
}
},
"required": []
}
💡 Customization
To add your own tools, modify the TOOLS array in index.js and extend the "tools/call" logic to handle them.
🧪 Testing
You can test the server using:
Claude Desktop (via stdio plugin)
A custom LLM tool-caller that supports MCP over stdio
Manual calls using tools like ncat, jq, or a test harness
🛠 CS Methods Supported
initialize
tools/list
tools/call
resources/list (returns empty array)
prompts/list (returns empty array)
🛡 License
This project is licensed under the MIT License. Please retain attribution in derivative works.
🙌 Credits
Built using the Model Context Protocol SDK.