# scope_profiler.mcp_server.server

*module*

MCP server exposing scope-profiler to AI coding agents (e.g. Claude Code).

This module is a thin adapter: every tool below immediately delegates to a
plain function in :mod:`scope_profiler.mcp_server.tools`, which in turn
delegates to the existing ``scope_profiler`` Python API (the same functions
``inspect``/``plot``/``diff``/``run`` use). No profiling, HDF5-parsing,
summary or comparison logic lives here.

Run directly::

    scope-profiler-mcp

or::

    python -m scope_profiler.mcp_server

Requires the optional ``mcp`` extra: ``pip install "scope-profiler[mcp]"``.

[View source](https://github.com/max-models/scope-profiler/blob/devel/src/scope_profiler/mcp_server/server.py#L1-L1)

## scope_profiler.mcp_server.server.create_server

*function*

```python
def create_server() -> FastMCP
```

Build the MCP server and register every tool. Does not start it.

[View source](https://github.com/max-models/scope-profiler/blob/devel/src/scope_profiler/mcp_server/server.py#L27-L278)

## scope_profiler.mcp_server.server.main

*function*

```python
def main() -> None
```

Entry point for the ``scope-profiler-mcp`` console script.

[View source](https://github.com/max-models/scope-profiler/blob/devel/src/scope_profiler/mcp_server/server.py#L281-L283)
