ryaker_mcp_js_server_template

ryaker_mcp_js_server_template

by ryaker

1. about

Skip to content

You signed in with another tab or window. Reload
to refresh your session. You signed out in another tab or window. Reload
to refresh your session. You switched accounts on another tab or window. Reload
to refresh your session. Dismiss alert

ryaker / MCP-JS-Server-Template Public

Simplified MCP Server Template for Node.js

1 star
0 forks
Branches
Tags
Activity

Star

Notifications
You must be signed in to change notification settings

ryaker/MCP-JS-Server-Template

main

Branches
Tags


Go to file

Code

Folders and files

| Name | | Name | Last commit message | Last commit date |
| --- | --- | --- | --- |
| Latest commit
-------------

History
-------

2 Commits

| | |
| README.md | | README.md | | |
| simplified-template-mcp-server.js | | simplified-template-mcp-server.js | | |
| View all files | | |

Repository files navigation

MCP JS Server Template

Overview

This is a simplified template for creating Model Context Protocol (MCP) servers in JavaScript for integration with Claude Desktop. It provides a basic structure for developing custom MCP servers with minimal boilerplate code.

Features

  • Implements standard MCP server initialization
  • Provides two basic tools: about and hello
  • Follows MCP protocol version 2024-11-05
  • Uses @modelcontextprotocol/sdk for server implementation
  • Includes error handling and logging

Prerequisites

  • Node.js (v16 or later)
  • Claude Desktop
  • @modelcontextprotocol/sdk npm package

Installation

  1. Clone the repository
  2. Install dependencies:
npm install @modelcontextprotocol/sdk

Claude Desktop Configuration

Add to your Claude Desktop configuration file:

Location:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Configuration Example:

{
  "mcpServers": {
    "template-server": {
      "command": "node",
      "args": [\
        "/full/path/to/simplified-template-mcp-server.js"\
      ],
      "env": {
        "NODE_OPTIONS": "--no-deprecation"
      }
    }
  }
}

Available Tools

1. about

Returns information about the MCP server.

2. hello

Provides a greeting, with an optional name parameter.

Example Usage in Claude:

hello with name="Claude"

Extending the Template

To create your own MCP server:

  1. Copy this template
  2. Modify the TOOLS array
  3. Implement custom tool handlers in server.fallbackRequestHandler
  4. Update server name and version

Limitations

  • Minimal error handling
  • No advanced security features
  • Meant as a starting point for custom implementations

Contributing

Contributions are welcome! Please submit pull requests or open issues.

License

MIT License

About

Simplified MCP Server Template for Node.js

Resources

Readme

Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks

Report repository

Releases


No releases published

Packages 0


No packages published

Languages

You can’t perform that action at this time.

Features & Capabilities

Categories
mcp_server model_context_protocol

Implementation Details

Stats

0 Views
0 Favorites
1 GitHub Stars

Repository Info

ryaker Organization

Similar Servers

continuedev_continue by continuedev
0
0
0