Basic information
About 🧠Simple MCP Server with Node.js
# 🧠Simple MCP Server with Node.js
🧠Simple MCP Server with Node.js is a MCP server in the Other category listed in the AddMCP.net directory, published by takehisa10098. Supported transport: stdio. Runtime: node. The repository has 1 GitHub stars. Source code is hosted on github.com.
Setup
{
"mcpServers": {
"plot-mcp-server": {
"command": "node",
"args": [
"server.js"
]
}
}
}
{
"mcpServers": {
"plot-mcp-server": {
"command": "node",
"args": [
"server.js"
]
}
}
}
{
"servers": {
"plot-mcp-server": {
"command": "node",
"args": [
"server.js"
]
}
}
}
🧠Simple MCP Server with Node.js config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"plot-mcp-server": {
"command": "node",
"args": [
"server.js"
]
}
}
}
🧠Simple MCP Server with Node.js tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is 🧠Simple MCP Server with Node.js?
A prototype MCP (Model Context Protocol) server built with Node.js and Express that interacts with the OpenAI API to simulate a context‑aware assistant, such as one that helps write stories. It allows structuring context with system, user, steps, and resources, and modifying that context via API to affect LLM responses.
How to use 🧠Simple MCP Server with Node.js?
Clone the repository, install dependencies with npm install, create a .env file with your OpenAI API key, and create a context.json file with initial context. Then create server.js and openai.js as provided, start the server with node server.js, and use curl commands to get context, generate a plot, or add characters.
Key features of 🧠Simple MCP Server with Node.js
- Structure context with system, user, steps, and resources
- Generate story plots via OpenAI API using current context
- Add characters dynamically through an API endpoint
- Modify context to see how it affects LLM responses
Use cases of 🧠Simple MCP Server with Node.js
- Prototyping an LLM‑powered story writing assistant
- Experimenting with structured context for LLM interactions
- Teaching how MCP can be implemented with Node.js and Express
Frequently asked questions
1 What dependencies are required?
Node.js v18+, npm, and an OpenAI API key.
2 How does the server store context?
Context is stored in a local context.json file, read from and written to by the server via fs.readFileSync and fs.writeFileSync.
3 What API endpoints are available?
GET /context returns the current context; POST /step/plot generates a plot using OpenAI; POST /update/characters adds a new character.
4 What transport does the server use?
The server runs on HTTP via Express, listening on port 3000 by default.
5 Is there any authentication?
The server itself has no authentication; the OpenAI API key is stored in the .env file and used only when calling the OpenAI API.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In