1. Conduid
  2. AI
  3. Js Server
MCP server · AI

Js Server

A simple boilerplate for building Model Context Protocol (MCP) servers in Node.js

Unclaimed ai
34Low

Scored 15 days ago · breakdown

About Js Server

Js Server is an MCP server in the AI category: a simple boilerplate for building Model Context Protocol (MCP) servers in Node.js.

The repository has 1 stars and 0 forks.

Install

From source
git clone https://github.com/davlgd/mcp-js-server

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Js Server

Powered by Claude · Grounded in docs

I know everything about Js Server. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

MCP Server - JavaScript SDK

This is an unofficial JavaScript SDK for Model Context Protocol.

Usage

Import the package to your project:

npm install mcp-js-server

Create files to define the server's prompts, resources, and tools. See mcp-clever-demo, or the examples below:

Prompts

// prompts.js
export const prompts = {
    hello_world: {
        description: 'A simple prompt that says hello.',
        arguments: [],
        messages: [{
            role: 'assistant',
            content: {
                type: 'text',
                text: 'Hello, world!'
            }
        }]
    }
};

Resources

// resources.js
export const resources = {
    apiReference: {
        uri: 'https://api.example.com/openapi.json',
        mimeType: 'application/json'
    }
};

Tools

// tools.js
export const tools = {
    simple_tool: {
        description: 'A simple tool',
        handler: async () => new Date().toLocaleString(),
        schema: {
            type: 'object',
            properties: {},
            required: []
        }
    },
    complex_tool: {
        description: 'A complex tool',
        handler: async ({ param1, param2 }) => {
            return `param1: ${param1}, param2: ${param2}`;
        },
        schema: {
            type: 'object',
            properties: {
                param1: { type: 'string' },
                param2: { type: 'string' }
            },
            required: ['param1', 'param2']
        }
    }
};

Server

Then create a server instance with the following code:

// server.js
import { MCP } from 'mcp-server';
import { tools } from './tools.js';
import { prompts } from './prompts.js';
import { resources } from './resources.js';

const infos = {
    name: 'mcp-demo-server',
    version: '0.1.0'
};

const server = new MCP(infos, prompts, resources, tools);

Debugging

You can find logs of the server in your user system logs directory:

Linux:   ~/.local/share/logs
macOS:   ~/Library/Logs
Windows: %USERPROFILE%\AppData\Local\Logs

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Js Server

How do I install Js Server?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Js Server safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Js Server still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.