McpServer

McpServer

3.3

McpServer is a project focused on building a Model Context Protocol (MCP) server that facilitates the management of notes through custom tools and resources.

McpServer is designed to enhance note management by providing a server that supports adding, reading, and summarizing notes. It leverages custom tools and resources to interact with a local notes.txt file, allowing users to efficiently manage their notes. The server includes functionalities such as adding new notes, reading existing notes, and generating summaries of all saved notes. These features are implemented and tested within the Anthropic Claude desktop app, enabling seamless note management through Claude's interface. The project aims to streamline the process of note-taking and retrieval, making it easier for users to organize and access their information.

Features

  • Add Note: Allows users to add new notes to the local notes.txt file.
  • Read Notes: Enables users to read existing notes from the notes.txt file.
  • Note Summary: Generates a summary of all saved notes using a custom prompt.
  • Latest Note Resource: Provides access to the most recent note through a specific resource URL.
  • Integration with Claude: Tested and implemented within the Anthropic Claude desktop app for easy note management.

MCP Tools

  • {'add_note': 'A tool to add new notes to the local notes.txt file.'}
  • {'read_notes': 'A tool to read existing notes from the notes.txt file.'}

MCP Resources

  • {'notes://latest': 'A resource to access the most recent note.'}

Usage with Different Platforms

Anthropic Claude

python
# Example script to add a note using the MCP server in Anthropic Claude
add_note('This is a new note added through Claude.')

# Example script to read notes using the MCP server in Anthropic Claude
notes = read_notes()
print(notes)

# Example script to generate a summary of notes using the MCP server in Anthropic Claude
summary = note_summary_prompt()
print(summary)