Skip to main content
Glama
Connection Notes MCP

Connection Notes MCP

by pavelpadabed
README.md
# Connection Notes MCP

A small educational MCP server for saving information about people and
preparing for future conversations. It can support preparation for business,
personal, or romantic conversations by providing known notes and relationship
context to an LLM.

The project was built as hands-on practice after completing Anthropic's
[Introduction to Model Context Protocol](https://anthropic.skilljar.com/introduction-to-model-context-protocol)
course.

## MCP capabilities

- **Tool — `save_person_note`:** creates a person record from an alias and a
  note, with optional profile URL and relationship context.
- **Templated resource — `person://records/{person_id}`:** returns the saved
  record for a specific person.
- **Prompt — `prepare_for_conversation`:** creates an instruction for preparing
  the user for a conversation using the saved context.

## Technology

- Python 3.13
- MCP Python SDK
- Pydantic
- uv
- pytest

## Setup

Install the project and development dependencies:

```bash
uv sync
```

## Tests

```bash
uv run pytest
```

The test suite covers the domain model, in-memory repository, and MCP
capabilities through the SDK client.

## MCP Inspector

Start the server with MCP Inspector:

```bash
uv run mcp dev connection_notes_mcp/server.py
```

A typical workflow is:

1. Create a person record with `save_person_note`.
2. Read it through `person://records/{person_id}`.
3. Generate `prepare_for_conversation` for the returned person ID.

## Limitations

This is a deliberately small learning project, not a production service. Data
is stored only in memory and is lost when the server process stops. The project
does not include a database, authentication, or deployment configuration.

## License

This project is licensed under the MIT License. See [LICENSE](LICENSE).