Skip to main content

OSMP MCP Server — Agentic AI instruction encoding. 86.8% byte reduction vs JSON. Inference-free decode. Any channel.

Project description

OSMP MCP Server

MCP server for the Octid Semantic Mesh Protocol (OSMP). Gives any MCP-compatible AI client native OSMP capability: encode, decode, and resolve agentic instructions by table lookup. No inference at decode.

86.8% byte reduction vs JSON. 70.5% vs compiled protobuf. 76.0% token reduction.

Measured on 29 real-world vectors from MCP, OpenAI, Google A2A, CrewAI, and AutoGen. Compiled .proto verification with protoc 3.21.12.

Install

pip install osmp-mcp

Tools

Tool What It Does
osmp_encode Encode structured fields into a SAL instruction
osmp_decode Decode SAL to structured fields (handles compound instructions)
osmp_compound_decode DAG topology analysis for compound multi-frame instructions
osmp_lookup Search the 341-opcode dictionary by namespace and/or keyword
osmp_resolve Resolve a domain code (ICD-10-CM, ISO 20022, MITRE ATT&CK)
osmp_batch_resolve Resolve multiple domain codes in one call
osmp_discover Keyword search across domain corpora
osmp_benchmark Run the 55-vector conformance benchmark

Resources

Resource Contents
osmp://system_prompt Agent system prompt with grammar and usage rules
osmp://about Protocol summary
osmp://dictionary Full 341-opcode ASD
osmp://grammar SAL formal grammar
osmp://corpora Available MDR corpora and stats
osmp://examples Worked examples across domains

Bundled Corpora

Corpus Entries Binary Size
ICD-10-CM FY2026 74,719 clinical codes 477 KB
ISO 20022 66,956 financial definitions 1.21 MB
MITRE ATT&CK v18.1 1,661 entries 20 KB

Links

Apache 2.0. Patent pending (Application #64/007,684).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

osmp_mcp-1.0.17.tar.gz (1.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

osmp_mcp-1.0.17-py3-none-any.whl (1.8 MB view details)

Uploaded Python 3

File details

Details for the file osmp_mcp-1.0.17.tar.gz.

File metadata

  • Download URL: osmp_mcp-1.0.17.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for osmp_mcp-1.0.17.tar.gz
Algorithm Hash digest
SHA256 7b7bbc85fe5f227c14150292b22e40a61fea9ce29be3bf1c3f3f89810f0b01f8
MD5 820d9f3752bc1904aae5e49b3cad5a14
BLAKE2b-256 613cb1b41b635cd44708794a676eecb68c9ac301ea368fd5e8833e365900fe7d

See more details on using hashes here.

File details

Details for the file osmp_mcp-1.0.17-py3-none-any.whl.

File metadata

  • Download URL: osmp_mcp-1.0.17-py3-none-any.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for osmp_mcp-1.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 d2bfa9466be6bc8dc46fc769dacd32dff6fca6d6b20cd963029d8f86c528ee52
MD5 2da95214ad7cfe57e9fa27ca54d2d833
BLAKE2b-256 abcf605c053d1c85569735e91bc22475e4927ed64a9993a42f37e9c2681189b2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page