Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PFC_MCP_BRIDGE_URLNoThe URL of the active PFC bridge service (e.g., ws://localhost:9002). This is required for execution tools to connect to a running PFC process.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tasks
{
  "list": {},
  "cancel": {},
  "requests": {
    "tools": {
      "call": {}
    },
    "prompts": {
      "get": {}
    },
    "resources": {
      "read": {}
    }
  }
}
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
pfc_browse_commands

Browse PFC command documentation by path (like glob + cat).

Navigation levels:

  • No command: All 7 categories overview

  • Category only (e.g., "ball"): List commands in category

  • Full command (e.g., "ball create"): Full documentation

When to use:

  • You know the command category or exact command

  • You want to explore available commands

Related tools:

  • pfc_query_command: Search commands by keywords (when path unknown)

  • pfc_browse_reference: Browse reference docs (e.g., "contact-models linear")

pfc_browse_python_api

Browse PFC Python SDK documentation by path (like glob + cat).

pfc_browse_reference

Browse PFC reference documentation (syntax elements, model properties).

References are language elements used within commands, not standalone commands.

Navigation levels:

  • No topic: All reference categories

  • Category (e.g., "contact-models"): List items in category

  • Full path (e.g., "contact-models linear"): Full documentation

When to use:

  • Need contact model property names (kn, ks, fric, pb_*)

  • Need range filtering syntax (position, cylinder, group, id)

  • Setting up "contact cmat add model ... property ..." commands

  • Using range filters in any PFC command

Related tools:

  • pfc_browse_commands: Command syntax (e.g., "ball create")

  • pfc_query_command: Search commands by keywords

pfc_query_command

Search PFC command documentation by keywords (like grep).

Returns matching command paths. Use pfc_browse_commands for full documentation.

When to use:

  • You have keywords but don't know exact command path

  • Example: "ball create", "contact property", "model solve"

Related tools:

  • pfc_browse_commands: Get full documentation for a known command path

  • pfc_browse_reference: Browse reference docs (e.g., "contact-models linear")

  • pfc_query_python_api: Search Python SDK by keywords

pfc_query_python_api

Search PFC Python SDK documentation by keywords (like grep).

Returns matching API paths with signatures. Use pfc_browse_python_api for full documentation.

When to use:

  • You have keywords but don't know exact API path

  • Example: "ball velocity", "create", "contact force"

Related tools:

  • pfc_browse_python_api: Get full documentation for a known API path

  • pfc_query_command: Search PFC commands by keywords

pfc_execute_task

Submit a PFC script task for asynchronous execution.

This MCP tool is stateless and optimized for background execution. Use pfc_check_task_status to monitor progress.

pfc_check_task_status

Check status and output for a submitted PFC task.

pfc_list_tasks

List tracked PFC tasks with pagination.

pfc_interrupt_task

Request graceful interruption of a running PFC task.

pfc_capture_plot

Capture a PFC plot image. The image is saved to output_path and returned for visual inspection.

ALWAYS use this tool for plot visualization. Do NOT write PFC plot commands manually via pfc_execute_task — the PFC plot command syntax is complex and error-prone. This tool handles all plot setup, camera, coloring, and export internally.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yusong652/pfc-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server