StaticFrame MCP Server

The StaticFrame Model Context Protocol (MCP) server provides AI assistants with access to the StaticFrame API documentation, enabling intelligent code completion and assistance. The MCP server is available at:

https://static-frame.dev/api/mcp
Server Information
  • Name: staticframe-api
  • Version: 1.0.0
  • Protocol: Model Context Protocol (MCP)
  • Transport: Streamable HTTP with JSON-RPC 2.0
Available Tools

1. search

Search StaticFrame API signatures by method name or pattern.

Parameters

  • query (string, required): The search query (method name, class name, or pattern)
  • fullSigSearch (boolean, optional): Include parameter names in search (default: false)
  • reSearch (boolean, optional): Use regular expression matching (default: false)

Example Request

{
  "name": "search",
  "arguments": {
    "query": "Frame.from_dict"
  }
}

Example Response

{
  "count": 4,
  "signatures": [
    "Frame.from_dict()",
    "Frame.from_dict_fields()",
    "Frame.from_dict_records()",
    "Frame.from_dict_records_items()"
  ]
}

2. get_doc

Get documentation for a StaticFrame API signature.

Parameters

  • sig (string, required): The signature to get documentation for (e.g., 'Frame.from_dict()')

Example Request

{
  "name": "get_doc",
  "arguments": {
    "sig": "Frame.from_dict()"
  }
}

Example Response

Create a Frame from a dictionary (or any object that has an items() method) where keys are column labels and values are columns values (either sequence types or Series). Args: mapping: a dictionary or similar mapping interface. index: fill_value: dtypes: Optionally provide an iterable of dtypes, equal in length to the length of each row, or a mapping by column name (where overspecied labels is not an error). If a dtype is given as None, element-wise type determination will be used. name: A hashable object to label the container. index_constructor: columns_constructor: consolidate_blocks: Optionally consolidate adjacent same-typed columns into contiguous arrays.

3. get_example

Get code example for a StaticFrame API signature.

Parameters

  • sig (string, required): The signature to get example for (e.g., 'Frame.from_dict()')

Example Request

{
  "name": "get_example",
  "arguments": {
    "sig": "Frame.from_dict()"
  }
}

Example Response

>>> import static_frame as sf
>>> sf.Frame.from_dict(dict(a=(1,2), b=(3,4)))
<Frame>
<Index> a       b       <<U1>
<Index>
0       1       3
1       2       4
<int64> <int64> <int64>

StaticFrame site v2.0.2. Report issues or feature requests at the static-frame-www GitHub repository.