demo-mcp-server logo

demo-mcp-server

by xu1211

A TypeScript-based MCP server demonstrating core concepts through a project management system. It allows querying projects via URIs and hierarchical paths and programmatically creating and opening projects.

View on GitHub

Last updated: N/A

What is demo-mcp-server?

This is a Model Context Protocol (MCP) server built with TypeScript. It simulates a project management system to demonstrate how MCP can be used to interact with resources and tools.

How to use demo-mcp-server?

To use this server, you need to install the dependencies, build the server, and then configure it with a client like Claude Desktop. You can also use the MCP Inspector for debugging. The provided JSON configuration snippet shows how to integrate it with Claude Desktop.

Key features of demo-mcp-server

  • Resources: List and access projects via project:// URIs.

  • Each project has a project name, path, and metadata.

  • Tools: create_project to create new text projects.

  • Tools: open_project to open existing projects.

Use cases of demo-mcp-server

  • Allow AI to open projects programmatically.

  • Manage projects through a standardized protocol.

  • Integrate with AI tools like Claude for project interaction.

  • Demonstrate core MCP concepts with a practical example.

FAQ from demo-mcp-server

How do I install dependencies?

Run npm install in the server's directory.

How do I build the server?

Run npm run build.

How do I debug the server?

Use the MCP Inspector with the command npx @modelcontextprotocol/inspector node .../demo-mcp-server/build/index.js.

How do I integrate this with Claude Desktop?

Add the provided server configuration to claude_desktop_config.json.

What are the required parameters for create_project?

create_project requires title and content as parameters.